RPGDXThe center of Indie-RPG gaming
Not logged in. [log in] [register]
 
 
Post new topic Reply to topic Goto page Previous  1, 2 
View previous topic - View next topic  
Author Message
akOOma
Wandering Minstrel


Joined: 20 Jun 2002
Posts: 113
Location: Germany

PostPosted: Mon May 12, 2003 7:05 pm    Post subject: [quote]

Hey Tenshi...I would be cool to see a tutorial about such a kind of scripting (if it doesn't already exist....)...would you like to write one?
_________________
Keep on codin'
-----------------

-----------------
Just another post to increase my rank...
Back to top  
ThousandKnives
Guest





PostPosted: Wed May 14, 2003 2:56 am    Post subject: [quote]

My current project uses XML for all non-tile map data, including event scripts. The XML is parsed when the map is loaded and converted into generic "event" data objects (arrays of numbers and characters), each containing an ID as to how the data should be read. It's obviously not the most compact or efficient way to store it, but it makes creating map data remarkably easy to manage.

Of course, XML is SO easy to edit that it also leaves a huge back-door for players to make the game easier.

I'm storing item and magic data in this same way, so I can create online data for players simply by writing some XML-DTD.

I'm not claiming that this is a good way to do the job, but I thought I'd report my method since it hadn't been mentioned.
Back to top  
DrunkenCoder
Demon Hunter


Joined: 29 May 2002
Posts: 559

PostPosted: Wed May 14, 2003 10:34 am    Post subject: [quote]

hmm... actually the only thing I think went wrong here is that you distribute everything in plaintext... why not just add a precompile step that way you can move the XML parsing out of the game itself and into its own app, and also the most blunt hacking attempts will be thwarted
_________________
If there's life after death there is no death, if there's no death we never live. | ENTP
Back to top  
Tenshi
Everyone's Peachy Lil' Bitch


Joined: 31 May 2002
Posts: 386
Location: Newport News

PostPosted: Wed May 14, 2003 4:39 pm    Post subject: [quote]

- I guess I could write one...
_________________
- Jaeda
Back to top  
mandrake*rpgdx
Guest





PostPosted: Wed May 14, 2003 5:00 pm    Post subject: [quote]

Quote:

Of course, XML is SO easy to edit that it also leaves a huge back-door for players to make the game easier


I use an XML parser too, for almost all data. You can always encrypt it, and zip it (XML makes for fantastic zipping...using LZOP is what I use, and since it has an extremely high redundency rate, it compresses almost more than 70%). Of course I use XML like a database, and it's quick, fast and works very well. With an encryption/compression wrapper, of course :)
Back to top  
Post new topic Reply to topic Page 2 of 2 All times are GMT
Goto page Previous  1, 2 



Display posts from previous:   
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum