XML for a map file?

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
Tyn
Posts: 932
Joined: Thu Nov 20, 2003 7:53 pm
Location: England
Contact:

XML for a map file?

Post by Tyn »

I'm getting together a tech demo and ( proving the point of a tech demo :D ) I ran into an interesting question. Should I use XML for creating and displaying maps? On the face of it to me it seems good, I am doing a tile based game and so I would need texture, items on specific tiles ( 40 x 40 map, each individual scene node ), model files for tiles when I do elevation etc. Having a built in XML reader seems perfect so I thought I'd try it.

So far I only put in texture file locations for every tile and the file is 100kb's :o
To me that means by the end the files are going to be storing a lot of information and I am worried that they could be very large. Is this the best I can hope for to get a map file down to ( they will be random, probably be able to save them and d/l them over the net, could be a lot of files on someone's computer ) or should I be looking at some other format?
schick
Posts: 230
Joined: Tue Oct 07, 2003 3:55 pm
Location: Germany
Contact:

Post by schick »

I would create a zip file with a specific extension ".rpg". Then put in a xml file that describes your scene and all the textures and other data which is needed for the scene.
Please send me an e-mail instead of a private message.
Tyn
Posts: 932
Joined: Thu Nov 20, 2003 7:53 pm
Location: England
Contact:

Post by Tyn »

That sounds good, does you know if irrlicht is funny about ZIP extensions?
Robomaniac
Posts: 602
Joined: Sat Aug 23, 2003 2:03 am
Location: Pottstown, PA
Contact:

Post by Robomaniac »

Nope, that's the glory of irrlicht's zips, they can be any extension, as long as their compresseds as a zip file. :-)
The Robomaniac
Project Head / Lead Programmer
Centaur Force
disanti
Posts: 367
Joined: Sat Jan 17, 2004 1:36 am
Location: California, US
Contact:

Post by disanti »

Irrlicht crashes when I use zips! :P
________
Ford Motor Company Of New Zealand
Post Reply