Page 1 of 1
XML Reference Discussion
Posted: Wed Mar 21, 2007 11:56 pm
by Dr Frag
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
Posted: Thu Mar 22, 2007 5:52 am
by snoopy55
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:
Code: Select all
<Good>
<szName>Livestock</szName>
</Good>
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
Posted: Thu Mar 22, 2007 2:59 pm
by choobacca
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.
Posted: Thu Mar 22, 2007 4:41 pm
by snoopy55
I knew there was an easier way to say it
Another thing that has to be watched for is the same map names in 2 different maps.
Posted: Thu Mar 22, 2007 9:47 pm
by Dr Frag
So multiple files with the same name are a No-No.
I guess we could use a good find duplicate file names program.
Thanx guys,
DF
Posted: Fri Mar 23, 2007 12:58 am
by snoopy55
As long as mappers use a name for their XMLs that matches or is close to the map name, you only have to make sure your map name is different, along with your XMLs.