• What Are You Working On? V13
    5,003 replies, posted
[QUOTE=AtomiC0l;25289514]What JSON parser do you recommend for C++?[/QUOTE] [url]http://stackoverflow.com/questions/245973/whats-the-best-c-json-parser[/url] => [url]http://jsoncpp.sourceforge.net/[/url]
[QUOTE=high;25289553][url]http://stackoverflow.com/questions/245973/whats-the-best-c-json-parser[/url] => [url]http://jsoncpp.sourceforge.net/[/url][/QUOTE] JsonCpp looks really nice :smile: I'll definitively use that whenever I need JSON in a C++ application.
[QUOTE=thomasfn;25287271][code] <Format>PNG</Format>[/code][/QUOTE] Why do you specify the format? The file header should point that out already.
[QUOTE=i300;25283432]AnyHub 1.4 for iOS [media]http://www.youtube.com/watch?v=xr-CAbnm9bo[/media] Changelog: [code]+ Share via SMS/MMS + Take picture from in-app + Progress bar to track how much of your file has been uploaded + Fast app switching support + Facebook and Website link in credits/info - Lots of bug fixes -- Network connectivity monitoring -- Failed file upload monitoring -- Retina display background image fix (iOS 4) [/code] Any comments, ideas, or suggestions? [editline]09:23PM[/editline] I am a tool.[/QUOTE] I see what you did there.
Hexxeh has been slashdotted! [url]http://news.slashdot.org/story/10/10/06/1235235/Chrome-OS-Arrives-On-the-iPad---No-Seriously[/url]
[img]http://i54.tinypic.com/2rvy45u.png[/img] Now have a list of valid world items, which are made by the user from a text file(as expected). Mostly just debugging it right now, gonna start with more interactive commands soon, such as finding new items in the world, and crafting(finally). :buddy:
[QUOTE=Dj-J3;25290675][img]http://i54.tinypic.com/2rvy45u.png[/img] Now have a list of valid world items, which are made by the user from a text file(as expected). Mostly just debugging it right now, gonna start with more interactive commands soon, such as finding new items in the world, and crafting(finally). :buddy:[/QUOTE] What would be cool is if you made the backend inventory system into a library, which can be reused for different projects, or even released publicly. [editline]05:18PM[/editline] Also, you should totally use xml for that item list! [sp]Joking, JSON would suit better here[/sp]
[QUOTE=thomasfn;25291160]What would be cool is if you made the backend inventory system into a library, which can be reused for different projects, or even released publicly.[/QUOTE] That sounds cool, but i have never done anything like that before. :sigh: [editline]07:03PM[/editline] What's the best way of encrypting files with saved information? Aswell as decrypting it. (In C#, data is normal text)
If you are going to encrypt it, why not use something that's not human readable in the first place. Maybe a simple binary format?
[QUOTE=Dj-J3;25291705]That sounds cool, but i have never done anything like that before. :sigh: [editline]07:03PM[/editline] What's the best way of encrypting files with saved information? Aswell as decrypting it. (In C#, data is normal text)[/QUOTE] You could do a simple ROT13 of the data contained within. If you want to be super secret, you can use ROT26 :v: [sp]DO NOT TAKE THIS POST SERIOUSLY D:<[/sp]
Pfft. ROT&#8730;1&#773;3&#772; is superior. "Facepunch" in ROT&#8730;1&#773;3&#772;: [img]http://img685.imageshack.us/img685/6817/facepunchrotsqrt13.png[/img]
Started writing a Skype Bot for me and my friends. I call it OverLord. It currently has votekick and chat logging features. There's nothing much I can screencap for content, but I'll see what I can do. Ideas for commands and features welcome.
For Encryption, use Rjindael... It's a beast.
[QUOTE=Loli;25293194]For Encryption, use Rjindael... It's a beast.[/QUOTE] Thanks, it works well :buddy: [editline].[/editline] -snip-
No Prob. You broke it :saddowns:
Either use some easy encryption (like ROT47) or no encryption at all. Using some advanced form of encryption is senseless. There are users, who want to modify the file and will not understand a thing and there are users, who want to modify the file and will simply decompile your binary to find the encryption-method used. Oh, and there will probably also be some who don't want to modify the file and won't care.
[QUOTE=ZeekyHBomb;25294288]Either use some easy encryption (like ROT47) or no encryption at all. Using some advanced form of encryption is senseless. There are users, who want to modify the file and will not understand a thing and there are users, who want to modify the file and will simply decompile your binary to find the encryption-method used. Oh, and there will probably also be some who don't want to modify the file and won't care.[/QUOTE] That's what i thought initially, but then i thought, what the hell, why not. :downs: [editline].[/editline] Decided not to encrypt it, because as ZeekyHBomb said, i probably won't stop anyone that might want to edit their saves. If they do, it won't really matter since it only affects themselves.
[QUOTE=turb__;25286365]Same here but with C# :buddy: [editline]07:14PM[/editline] omg leaking gmf content ban[/QUOTE] How would you know what's in the GMF.
[img]http://i53.tinypic.com/2h3pfg5.png[/img] Starting to get somewhere. :3: [editline].[/editline] If anyone can come up with a better way to find new items, please tell me, because my current way is boring.
Added scriptable AI to the enemies! Things left to do: Score, shooting bubbles, drops and powerups, some additions to the mechanic from the original game and then I need to fill the rest of the game with textures and make levels. 3-4 weeks I'd say since I don't have much time to work currently.
[QUOTE=Dj-J3;25295471]*IMG of Something some lurkers don't quite understand* Starting to get somewhere. :3: [editline].[/editline] If anyone can come up with a better way to find new items, please tell me, because my current way is boring.[/QUOTE] I'd say have a clock at the top, which updates in real time, and then use a command like... "Search 2" Which will search for 2 Hours... After this add 2 Hours to the clock, then you can spawn creepers and shit accordingly. Make sure you put some code to stop them searching like 9001 Hours...
[img]http://www.fortfn.co.uk/images/ue2/ue2_13.png[/img] Progress is being made. Next thing on the list, have it stream terrain from the server. That's a 8x8 tile terrain, and each tile is subdivided 8 times (any less looks ugly, maybe I'll make it a setting). Don't say anything about lack of AA, I haven't got that far yet. And besides, my laptop probably can't handle it. Lights and stuff are controllable from Lua.
[QUOTE=Loli;25296541]I'd say have a clock at the top, which updates in real time, and then use a command like... "Search 2" Which will search for 2 Hours... After this add 2 Hours to the clock, then you can spawn creepers and shit accordingly. Make sure you put some code to stop them searching like 9001 Hours...[/QUOTE] I don't know if i've said this yet, but i'm not going for a 100% minecraft text clone, just the basic "find materials and craft them for new materials" gameplay. Also, i don't know how i could make monsters work in a textbased game, other than "* attacks you! what do you do?" etc... But i like that time idea! gonna implement that, and make an option scriptable to allow items to only spawn during certain time periods. (although that doesn't really make sense... hmm. I'll still implement time though)
Also, when I say "make it into a library", I just mean make the code that prints stuff into the console as seperate from the code which handles all the items and stuff as seperate as possible. The console should just be a front end, it should call stuff like Item1->Combine( Item2 ); and stuff.
Xerios how is your RTS coming along?
[QUOTE=thomasfn;25296907]Also, when I say "make it into a library", I just mean make the code that prints stuff into the console as seperate from the code which handles all the items and stuff as seperate as possible. The console should just be a front end, it should call stuff like Item1->Combine( Item2 ); and stuff.[/QUOTE] That's pretty much how it is right now. :3: Also, maybe i exaggerated on the time part :buddy: [img_thumb]http://i54.tinypic.com/2u8cink.png[/img_thumb] 1 hour = 1 minute. Going to make time matter as soon as i'm done with some other, more important things. [editline].[/editline] Adjustments to time: [img]http://i56.tinypic.com/1fgsc7.png[/img] 1 minute in-game = 0.5 sec in real life. Gives a total time of 12(i think) real minutes in one game day.
JSONCPP has no tutorials :(
[QUOTE=WTF Nuke;25298159]JSONCPP has no tutorials :([/QUOTE] [url]http://jsoncpp.sourceforge.net/annotated.html[/url] It's not just raw code files.
[img]http://anyhub.net/file/29capture.png[/img] Nothing special, I'm rolling my own so I can throw it into my engine.
Turns out the name I had chosen for my language is taken, so now I'm trying to come up with a new "clever" one. Right now I'm either going with Huxley or Bentus. I am not good with names :(. (I've also decided to change from being source -> source and generating LLVM IR instead). [editline] I'm going with bentus [/editline]
Sorry, you need to Log In to post a reply to this thread.