Okay dudes, I am working on the XML Reference in the Wiki and I have a question. When you guys are mucking about with the XMLs do you always go back and make sure the Global XML files have the newest date? I remember reading that if the Local XMLs have a newer date than the Global XMLs there could be a problem with how information is loaded. I looked around and found a small utility called Touch that modifies the date of a file so I wrote a batch file and put it in my CustomAssets\XML folder (along with touch.exe) that I can execute anytime I change the Globals. I made the batch file set the file date to Jan 1, 2010 so I should have no trouble for awhile if I continue to muck about with the Local XMLs.
DF
XML Reference Discussion
XML Reference Discussion
Gigabyte GA-EX58-UD3R mobo - Core i7 920
G.SKILL 3x1GB PC3 10666
MSI 8800GT Graphics Card
WD 150GB Raptor System Drive
WinXP Pro SP2 (LANfest Old Gamer Prize)
G.SKILL 3x1GB PC3 10666
MSI 8800GT Graphics Card
WD 150GB Raptor System Drive
WinXP Pro SP2 (LANfest Old Gamer Prize)
Unless I'm sadly mistaken, and I guess that is possible, the problem you skeak of only happens if say you save the RRT_Goods.xml (GLOBAL) one day, then later you save, in a map, RRT_Goods.xml. The game will go after the XML in the map first, then the GLOBAL if it can't find what it seeks. If you second file is called say RRT_Goods_England.xml, it will have no ewffect on other maps. This is the reason we got people to stop making non map specific XMLs in their maps and started using the GLOBALS. You map files give minimum information:
A few maps still have full info for new items, which could be fixed, but doesn't cause a problem.
Did I make that clear![Shocked :shock:](./images/smilies/icon_eek.gif)
Code: Select all
<Good>
<szName>Livestock</szName>
</Good>
Did I make that clear
![Shocked :shock:](./images/smilies/icon_eek.gif)
I'm correct 97% of the time..... who cares about the other 4%....
Snoopy is correct. There is only a problem when there are more than 1 occurance of a global XML file (RRT_Goods.xml for example) in the entire CustomAssets tree. Then the game loads the newest one.
This applies to any file that has 2 occurances. If you have 2 Coal_car.nif files in 2 different directories or FPK files in CustomAssets, the game will use the newest one.
This applies to any file that has 2 occurances. If you have 2 Coal_car.nif files in 2 different directories or FPK files in CustomAssets, the game will use the newest one.