8832
- XML clean/tidy-up. Saved 2.5 MB.
+1
Finally someone hat the guts to remove those useless tags with default values in them.
How do you know what is useless and what isn't?
JosEPh
The schema fully lists all the tags and the proper formatting if you know how to read it. I'm surprised you would have difficulty with that.Anything like <xxx/> or <xxx>0</xxx> or <xxx>NONE</xxx>. There are a couple of others. I have been removing them as I edit a particular object but it does mean I need one with all the tags in when I add a new object. For that I often have to go to other mods!
Some tags have been set to be required that perhaps shouldn't be. iAdjacentHeal for example is required if you've set a healing tag but can be changed in the schema to be unnecessary (and probably should be if it causes issues.)We could add a readme.txt with a full set of correctly formatted blocks and tags as an example for each different schema.
Edit: @Joe: there are a couple of tags that behave differently though; error messages are thrown if one removes certain seemingly useless tags; e.g. <iRangedWaveSize>0</iRangedWaveSize> OR <iAdjacentHeal>0</iAdjacentHeal>.
Others have a non 0 default value, e.g. it is harmless to remove this tag from improvements: <bActAsCity>1</bActAsCity>; while it causes problems to remove <bActAsCity>0</bActAsCity>.
Edit: @Sparth: Noted.
Can you show us the adjustments so I can adjust my documents here? (Hoping it's not TOO severely adjusted without full discussion.)Sparth said:Side note: Im starting to implement my current project and its take few days. Please dont edit CIV4TechInfos.xml until I upload this project ok?
Side note: Im starting to implement my current project and its take few days. Please dont edit CIV4TechInfos.xml until I upload this project ok?
Remember not all technologies are defined in that file. Some are defined in the optional modules they belong to.
It can take 20 minutes to sort out what is what using the schema. With an example less than a minute. I am old and life is too short to be wasting timeThe schema fully lists all the tags and the proper formatting if you know how to read it. I'm surprised you would have difficulty with that.
Which means its easy to accidentally cause an overlap on the tech tree.
Being a tag builder I suppose I've developed a degree of familiarity such that it takes less than a minute now. F5 is my friend.It can take 20 minutes to sort out what is what using the schema. With an example less than a minute. I am old and life is too short to be wasting time
Is that at the start of the core tech info file or the modular ones? I wasn't saying we shouldn't have modular techs... just that we need to be careful of them when adjusting the tree.Not if you read the documentation at the start of the file
8833
- units captured by hidden nationality units become hidden nationality
. I am old and life is too short to be wasting time
Which means its easy to accidentally cause an overlap on the tech tree.
Im changing tech buttons and for that I need to change file path to 200+ techs.
- (grouped animals alphabetically in categories at the bottom of the xml;
Just use Notepad++ or other such program to identify the changes and apply them to your files as painlessly as possible.