This is development thread for mass XML changer that I and TB now work on.
It will allow us to simply mass add/edit tags to existing units( and in future to buildings) that fits to defined categories.
Just a reminder that since we use the WoC standard that modules may contain minimum XML. For example the XML for a building in a module may contain 3 tags the BuildingClass and Type tags plus the tag of the value being changed.
Just a reminder that since we use the WoC standard that modules may contain minimum XML. For example the XML for a building in a module may contain 3 tags the BuildingClass and Type tags plus the tag of the value being changed.
This is true, BUT i would like it better IF "we" ever move stuff to the CORE, then its better to have stuff "always" consistent with the core, no offense to the WoC stuff. But if its regular core stuff in the modules it really doesnt matter, does it? Infact it might help out alot more also, maybe IMPO.
Well... imo this is something we should clean up anyhow.Also having all the null tags in the core files slows down the initial loading into cache.
I don't agree. If you have all the tags in there it is difficult to see what is changed. Also having all the null tags in the core files slows down the initial loading into cache.
One thing that we could perhaps improve is for the pedia to get its information from the cache. It is very slow at the moment. Or maybe we need to have a pedia cache.
I develop this parser to support XML combat mod work but if you need to clean up buildings tags at the first place. Please let me know.
I think that i will take a While before TB add all subcomkbat classes to all units and its new values like rel, knoback etc.
@TB
NOw subcombat structure looks like this
<subCombatTypes>
<subcombatType>value</subcombatTYpe>
<subcombatType>value</subcombatTYpe>
</subCombatTypes>
Maybe something like that will be more accurate from programmer perspective.
<Combat>Primary combat value here<Combat> (combatants, hunters, explorers, spy, civilian etc)
<subCombatTypes>
<speed>value</speed>
<motility>value</motility>
.....
</subCombatTypes>
I can simple do what you want with parser
Ok
Here you have my XML Reader
http://seoexperts.pl/civ4/
Now it reads CivUnits xml file. Next step is allowing to upload own xml file
@SO
After you select Combat Type parser take first matched unit and makes label array from it. So tags are listed in order as it is in XML file.
If you want any tags to be listed first please give me correct order as you want. I can force it.
Note hydro about this reader. It is very useful in finding bugs.
I can't see any .xsd files. Is the format of XMLs stored in some other way?
Btw, wouldn't be easier to just use XML transformations? For our needs Xalan would be probably more then enough.
Sorry for lazy-assing.The schemas are named <prefix>schema.xml and are in the same folders as the XML files they act as schemas for