• What are you working on? v19
    6,590 replies, posted
[QUOTE=Map in a box;31340008]Simple answer: Never EVER use XML! Make your own level format.[/QUOTE] why?
[QUOTE=TheCloak;31340599]why?[/QUOTE] It is a huge and bulky format. Its usually a mess to work with. When you can have a smaller and simpler format made by you. That also loads faster. Because it has less data to parse. </invalid grammar>
Writing your own format can take loads of valuable time. I'd go with something that .NET has built-in support for, like JSON.
[QUOTE=DarKSunrise;31340889]Writing your own format can take loads of valuable time. I'd go with something that .NET has built-in support for, like JSON.[/QUOTE] As far as I know .NET doesn't have built-in support for JSON, but XML. ( Don't quote me on this ). CarlBooth, whatever happened to [url=http://www.facepunch.com/threads/1040457-Octree-The-Anti-Social-Networking-Site?highlight=]Octree[/url]?
It does, but the implementation could be a bit better. It works though if you don't have anything too complex. If you don't mind external dependencies, [url=http://json.codeplex.com/]Json.NET[/url] is a good alternative.
[QUOTE=DarKSunrise;31340889]Writing your own format can take loads of valuable time. I'd go with something that .NET has built-in support for, like JSON.[/QUOTE] And you have fun doing it, while being much more efficient about it. You shouldn't go "Oh this is easier so it is definitely the way to go!"
[QUOTE=DarKSunrise;31340975]It does, but the implementation could be a bit better. It works though if you don't have anything too complex. If you don't mind external dependencies, [url=http://json.codeplex.com/]Json.NET[/url] is a good alternative.[/QUOTE] I used this library a few months ago when I made a Google Translate API. I couldn't find any built in JSON libraries, unfortunately.
[QUOTE=Quark:;31335952]I'm confused..is that just a skin for steam..or..?[/QUOTE] NorthernGate is correct, this is Desura. It's modDB's service that distributes games and free mods with an emphasis on hassle-free installation of mods, and can work with Steam (i.e it can install mods on Steam-installed games and stuff). There's a linux client in the works too. [QUOTE=TheCloak;31335626][editline]26th July 2011[/editline] Everyone like the Facebook page! [url]http://www.facebook.com/pages/Rotion-Game/163062023752251?sk=wall[/url][/QUOTE] Thanks. Got enough people to give it a [url=facebook.com/rotiongame]custom url now.[/url]
[img]http://i.imgur.com/Jg3Bh.png[/img] Added castles that you can peek inside by hovering the mouse over. I'm gonna get some coffee. That should fix the NullEnergyException I'm getting every thirty seconds, right? [editline]26th July 2011[/editline] aah oh god i forgot to pixelate them
[QUOTE=NovembrDobby;31341805]There's a linux client in the works too.[/QUOTE] Does Rotion run on Mac/Linux?
[QUOTE=thelinx;31342314]Does Rotion run on Mac/Linux?[/QUOTE] No, this has been asked several times. It's .NET or something IIRC. Maybe it could work on wine.
Damn, I was hoping he hinted at something by saying Desura's coming to Linux. Shouldn't have read too much into it.
[QUOTE=GranPC;31342494]No, this has been asked several times. It's .NET or something IIRC. Maybe it could work on wine.[/QUOTE] .NET which runs on Mac/Linux. XNA doesn't.
[QUOTE=Darwin226;31342572].NET which runs on Mac/Linux. XNA doesn't.[/QUOTE] which is why I learned OpenGL and use OpenTK. Because OpenTK runs on all implementations of .NET, including Mono.
Ah yeah XNA.
[QUOTE=TheCloak;31341514]I used this library a few months ago when I made a Google Translate API. I couldn't find any built in JSON libraries, unfortunately.[/QUOTE] [url=http://msdn.microsoft.com/en-us/library/system.runtime.serialization.json.datacontractjsonserializer.aspx]System.Runtime.Serialization.Json.DataContractJsonSerializer[/url]
Since my graphics card died I can't do any OpenGL stuff until the new one arrives. In the mean time I made a program that will remind me to stretch every hour. [img]http://dl.dropbox.com/u/35032740/ZScreen/Stretch%21-2011-07-26_11.50.37.png[/img] You can set a custom message. When you click Done, it goes to tray and waits there and when the set time is over it beeps and opens the message bubble. You have to click it, which brings the form back, do the stretching and click Done again. If you don't it will beep and open the message bubble every minute. [editline]26th July 2011[/editline] Meh, I'll upload it. Maybe someone will find it useful. [url]http://dl.dropbox.com/u/35032740/Stretch.rar[/url]
[QUOTE=DarKSunrise;31342819][url=http://msdn.microsoft.com/en-us/library/system.runtime.serialization.json.datacontractjsonserializer.aspx]System.Runtime.Serialization.Json.DataContractJsonSerializer[/url][/QUOTE] There's also System.Web.Script.Serialization.JavascriptSerializer
[QUOTE=Darwin226;31343147]Since my graphics card died I can't do any OpenGL stuff until the new one arrives. In the mean time I made a program that will remind me to stretch every hour. [img]http://dl.dropbox.com/u/35032740/ZScreen/Stretch%21-2011-07-26_11.50.37.png[/img] You can set a custom message. When you click Done, it goes to tray and waits there and when the set time is over it beeps and opens the message bubble. You have to click it, which brings the form back, do the stretching and click Done again. If you don't it will beep and open the message bubble every minute. [editline]26th July 2011[/editline] Meh, I'll upload it. Maybe someone will find it useful. [url]http://dl.dropbox.com/u/35032740/Stretch.rar[/url][/QUOTE] Thanks [img]http://i.imgur.com/iuFUI.png[/img]
[QUOTE=tagnara;31343234]There's also System.Web.Script.Serialization.JavascriptSerializer[/QUOTE] Not supported in the client profile version though. Also I recommend against using the built in json parsers if you want it being human readable as they don't format it nicely (everything is put on 1 line).
[QUOTE=Chris220;31343264]Thanks [img]http://i.imgur.com/iuFUI.png[/img][/QUOTE] [img]http://i.imgur.com/KmE1o.png[/img]
My and LonelyTimeLord worked on a small game for a bit just to see how much we could get done in a few hours work. Here, she took a screenshot (small eyes on dat creeper) [img]http://i.imgur.com/xl3Id.png[/img]
[QUOTE=Chris220;31344347]My and LonelyTimeLord worked on a small game for a bit just to see how much we could get done in a few hours work. Here, she took a screenshot (small eyes on dat creeper) [img]http://i.imgur.com/xl3Id.png[/img][/QUOTE] What language did you use?
Not anything visual, but just fixed a design thing that halted my work on my game for months: I was doing a large amount of unnecessary copying of a large vector<string> and I was unable to return an error code on a function as it returned a vector<string>. So while I was pissing yesterday I thought it'd be a good idea if I just took a pointer (a reference now) as an argument to the method that returns a vector<string> and directly added to it, and returned an error code from the function. The end result is that I didn't create a vector<string> in the function, then return it and have it copied in to another vector<string>.
[QUOTE=Jookia;31346039]Not anything visual, but just fixed a design thing that halted my work on my game for months: I was doing a large amount of unnecessary copying of a large vector<string> and I was unable to return an error code on a function as it returned a vector<string>. So while I was pissing yesterday I thought it'd be a good idea if I just took a pointer (a reference now) as an argument to the method that returns a vector<string> and directly added to it, and returned an error code from the function. The end result is that I didn't create a vector<string> in the function, then return it and have it copied in to another vector<string>.[/QUOTE] Rated artistic because I can only follow you halfway through.
Meh, it's goobly woobly (holy crap did I just say that?) low level C++ stuff that I dislike dealing with, but it's the price for portability.
It's not that low-level really.
Does Python have to deal with object copying problems?
[QUOTE=czmate10;31345880]What language did you use?[/QUOTE] C++.
[QUOTE=Chris220;31344347]My and LonelyTimeLord worked on a small game for a bit just to see how much we could get done in a few hours work. Here, she took a screenshot (small eyes on dat creeper) [img]http://i.imgur.com/xl3Id.png[/img][/QUOTE] That's pretty damn good for just a few hours of work.
Sorry, you need to Log In to post a reply to this thread.