View Full Version : Marathon speed TXT messed up in XML


Maxor127
Jan 01, 2006, 04:50 AM
I recently downloaded the patch and I was about to start a singleplayer game when I noticed a txt string in XML in the game speeds. I figured it was a new game speed that was added with the patch and that it was probably called Marathon, but I wasn't sure at first why it wasn't showing up right. Then I removed my custom XML files for my leaderhead from My Documents and the txt started showing up correctly after that. So then I figured out that Marathon was referenced in CIV4GameTextInfos_Objects.xml, so I copied that part of the main file into my custom file and it was showing up fine after that.

The thing I'm worried about now though is other XML changes through patching that I may have missed or will miss in the future. Is there an easy way to have custom xml files and not have to worry about patching problems? I don't want to have to search the XML files for my leaderhead info and then copy and paste them into the new xml files every time a new patch comes out.

Is there some sort of installation/patching program I can use to add my leaderhead info into the updated XML files everytime a patch comes out?

Kael
Jan 01, 2006, 09:41 AM
I recently downloaded the patch and I was about to start a singleplayer game when I noticed a txt string in XML in the game speeds. I figured it was a new game speed that was added with the patch and that it was probably called Marathon, but I wasn't sure at first why it wasn't showing up right. Then I removed my custom XML files for my leaderhead from My Documents and the txt started showing up correctly after that. So then I figured out that Marathon was referenced in CIV4GameTextInfos_Objects.xml, so I copied that part of the main file into my custom file and it was showing up fine after that.

The thing I'm worried about now though is other XML changes through patching that I may have missed or will miss in the future. Is there an easy way to have custom xml files and not have to worry about patching problems? I don't want to have to search the XML files for my leaderhead info and then copy and paste them into the new xml files every time a new patch comes out.

Is there some sort of installation/patching program I can use to add my leaderhead info into the updated XML files everytime a patch comes out?

Unfortunatly not.

Exavier
Jan 01, 2006, 10:55 AM
I think all modders get this problem when the 1.52 patch came out lol.

I use a program called Compare It (you can get it from pretty muc anywhere) and it lets me open up any text based file and compare it with another. When that patch came out it took me a whole 20min to go through every file in my mod and verify what the patch had changed and change it for my mod.

Maxor127
Jan 01, 2006, 12:07 PM
I think I'm just going to make txt files with just my special code in them and have the beginning tag of whatever is after it at the end so I can just do a Find for that tag and then I'll just copy and paste above it. That should work fine unless they create some extra civilization tags that I'll need.

joelzhl
Jan 01, 2006, 12:44 PM
You need to merge the Marathon entry in xml/text/CIV4GameText_Help.xml and xml/text/CIV4GameTextInfos_Objects.xml in the patch with files you modified.