XML downside

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

Moderator: Oberlus

Current FO XML vs SE4 TXT techs: who wins?

FO XML are ok, I understand them.
17
77%
KISS. Go for TXT.
5
23%
 
Total votes: 22

Message
Author
muxec
Space Kraken
Posts: 152
Joined: Tue Jun 15, 2004 7:55 pm

#31 Post by muxec »

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

Ablaze
Creative Contributor
Posts: 314
Joined: Tue Aug 26, 2003 6:10 pm
Location: Amidst the Inferno.

#32 Post by Ablaze »

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