Trying to get Thailand Civ to work

cathyy

Chieftain
Joined
Mar 2, 2008
Messages
18
I am trying to get this mod to work in my game. I have the most recent patches for both the vanilla game and Warlords. I am trying to get it to run under Warlords.

I fixed the first xml error in thailand.xml by changing the encoding from utf-8 to iso-8859-1. I zapped Gremlins but there didn't seem to be any.

I now get a tag error on the LeaderheadInfos.xml. I ran a diff against the same file from Alexander the Great, but no luck as all the values were different so that virtually all the lines were different. I think I'll look at it in GoLive and see what happens. Any and all help is appreciated.

If anybody can teach me where to look for a given error type, or what tools to use to find the errors I would be happy to "fix" civs to work on Macs.
 
Well done on the iso-8859-1 encoding definition :goodjob:

I suspect the next problem is that you can't just transplant a mod from Civ4 vanilla (which Thailand is designed for) to Warlords without doing some work. The error you are getting is that there is no setting defined for a tag that's needed in Warlords, to do with Vassalization.

For info, the clue was in the xml.log file, which records all the details as the XML files are loaded up. You can monitor that log file in real time by opening it in the /Applications/Utilities/Console application, or you can open it in TextEdit or BBEdit/TextWrangler after the event. You'll see that when it gets to that Leaderheads file there are 16 error messages "info type NONE not found", which don't seem to matter, but the next message is "info type not found", which is apparently complaining about an empty tag. If you scan down the actual Leaderheads file you find 16 instances of tags containing 'NONE'. If you look at a Leaderheads file that works, there are a couple more tags after those, and that are missing from the Thailand file, because they are Warlords-only data.

It's beyond my feeble efforts to try to adapt the mod for Warlords :eek:

I tried loading the mod up in vanilla version 1.74, and found the following problems:

1. Changing the encoding on Thailand.xml was not enough - you have to zap the gremlins in it. I just deleted them. I suspect vanilla doesn't take due notice of the encoding definition.

2. The mod was built for an older version of Civ4 and still refers to COMMUNISM and the FORBIDDEN PALACE in its Units and Civilizations files. These were changed to accommodate Chinese market sensitivities in the later versions of Civ4. You can spot the differences by comparing with the corresponding xml files in the Civ4 application's Assets folder. COMMUNISM becomes UTOPIA and the FORBIDDEN PALACE becomes the GREAT PALACE. I'm not sure why, but the THREE GORGES DAM also changed to the GREAT DAM. If you make these changes then the mod will load in vanilla.
 
Dude, I suck. I had it working fine -I had to uncomment out some fonts in a .thm file to make it work in addition to doing what you said. But the display in the bottom right corner of the screen for other leaders was showing Mao Zedong as TEXT_KEY_LEADER_MAO_ZEDONG instead of just his name so I went mucking about in the ArtDefines xml files and now it won't load again.

Where do I find the xml log file? All I can find is a ThemeParseLog.txt. That gave me the font errors, down to the line numbers.

EDIT: I still suck. Loading the vanilla game gets a couple XML errors, but it loads. Loading the mod gives no errors. And the name of the Chinese Leader is still showing up funny.
 
I think MAO_ZEDONG's name changed as well in 1.74, so you'll need to track that difference down and apply it to the appropriate mod file. Here ... let's look ...

Yes, in CIV4CivilizationInfos.xml in the mod there are two Chinese leaders:
<LeaderName>QIN_SHI_HUANG</LeaderName>
<LeaderName>MAO ZEDONG</LeaderName>

In the standard 1.74 version of this file they are:
<LeaderName>QIN_SHI_HUANG</LeaderName>
<LeaderName>CHINESE_LEADER</LeaderName>

This difference doesn't cause a load-time error, but results in a run-time failure to load up the display text for that leader name.

I did a quick search across the entire mod XML folder (BBEdit's multi-file search/replace is magic), and it looks as if you need to make changes in several places to make the mod fully compatible with 1.74:

Change MAO_ZEDONG to CHINESE_LEADER in:
CIV4ArtDefines_Leaderhead.xml
CIV4CivilizationInfos.xml
CIV4LeaderheadInfos.xml
CIV4DiplomacyInfos.xml
CIV4DiplomacyText.xml

Did you find the xml.log file? It's in ~/Documents/Civilization IV/Logs/
 
Alan, you're a wonder. I can't thank you enough. I could not have done it without your help, me being a noob at Civ 4 mods. The Thai civ is now working in the vanilla 1.74 game with no error messages. I haven't played a full game with it; I'd sure be happy if somebody else would play it as well to see if any unexpected gotchas pop up.

Anyway, I have attached the altered files.
 

Attachments

Back
Top Bottom