XML downside

For what's not in 'Top Priority Game Design'. Post your ideas, visions, suggestions for the game, rules, modifications, etc.

Moderators:Oberlus, Oberlus

Current FO XML vs SE4 TXT techs: who wins?

FO XML are ok, I understand them.
KISS. Go for TXT.
Total votes: 22

Space Kraken
Joined:Tue Jun 15, 2004 7:55 pm

#31 Post by muxec » Wed Jun 29, 2005 3:43 pm

Another stupid idea... Shared libraries for effect functions. See my thread in programming for details.

User avatar
Creative Contributor
Joined:Tue Aug 26, 2003 6:10 pm
Location:Amidst the Inferno.

#32 Post by Ablaze » Fri Jul 01, 2005 9:30 pm

XML can be interpreted by the program any number of different ways and I’m not sure exactly how freeorion does it, but most programs I know of use tinyXML which does a very good job. It converts the entire document into a tree of XML elements and portions of that tree can be passed around. So you can have a function like this:

bool loadPlanet(TiXmlElement planetData);

and have a loadSystem function that calls loadPlanet for every planet element, ad nauseam.
Time flies like the wind, fruit flies like bananas.

Post Reply