1. Supporting many formats at once.
Code: Select all
If version.txt exsists then use parser_{version};
else use old_parser;2. Best format.
There is many human readable formats for contains data: csv, json, xml, ...
But then I get data from outside (for example mods) I prefer xml. It has many disadvantiges but one thing is awesome:
Validation by scheme.
You forced to write self documented data. (I can convert to html to show in wiki.)
You validate in one string. Some value checks from code will be moved to schema.
Speed and memory usage:
SAX xml parsers propably will work with same memory usage and speed.
3.Convering data from old to new format
I can write python scripts what do it. (it is more easy when writing it on c(c++))
Some other Ideas:
Names should be included inside files. name.txt should not be edited manualy (some script should extract all names there, and after that you just run you gettext script). It make stats more human readable.
My veiw to armor:
One armor - one element:
hard: ap=10, antitank=20, antibunker=30, antifire=40, .....
soft: ap=10, antitank=20, antibunker=30, antifire=40, .....
bunker: ap=10, antitank=20, antibunker=30, antifire=40, .....
Research:
research components and research structures can be merged (add type STRUCTURE and make less files.)
Reusage of stats:
I dont know how works cam1, cam2, cam3 swithcing. But propably mod can be counstructed by some parts:
mod_descriptor.txt:
Code: Select all
research = cam1
units = base
strings = cam1
images = base
templates= multiplayer
.... //not in list use baseCode: Select all
base/
base/research
base/units
...
cam1/
cam1/research
cam1/strings/ base and mp will be moved to mods folder.





