View Full Version : MAO_ZEDONG bug corrected


Salamandre
Apr 19, 2006, 08:37 PM
Here it comes, hard to catch every glitch but it is done. Now everything related to Mao Zedong displays properly, the name, the civlopedia, the head. Enjoy!

After so many questions about the bug, am I alone to have "key_text_leader_CHINESE_LEADER" in game instead of mao_zedong??!!

All the files in XML regarding Mao were messed up with the 1.61 patch. Everywhere it was "Chinese_Leader' instead the correct name.That was signaled many times(http://forums.civfanatics.com/showthread.php?t=167000), or maybe you guys never had Mao in yours games with 1.61 yet. Try it and see! And I reinstalled the game 3 times so it was not due to 1.52 MODS.

Due to 500kb limit it comes in 2 files.

Willem
Apr 19, 2006, 09:32 PM
What bug? There was only a script change in the XML files that modders need to update.

InFlux5
Apr 19, 2006, 10:04 PM
What are you two talking about?

Chieftess
Apr 19, 2006, 10:10 PM
You can use the upload link at the bottom of the page - that has more space. Anyway, I moved this to Creation & Customization. What exactly does it fix? And what version did you see this bug in? What is the bug, too?

Kael
Apr 20, 2006, 05:24 AM
Here it comes, hard to catch every glitch but it is done. Now everything related to Mao Zedong displays properly, the name, the civlopedia, the head. Enjoy!

After so many questions about the bug, am I alone to have "key_text_leader_CHINESE_LEADER" in game instead of mao_zedong??!!

All the files in XML regarding Mao were messed up with the 1.61 patch. Everywhere it was "Chinese_Leader' instead the correct name.That was signaled many times(http://forums.civfanatics.com/showthread.php?t=167000), or maybe you guys never had Mao in yours games with 1.61 yet. Try it and see! And I reinstalled the game 3 times so it was not due to 1.52 MODS.

Due to 500kb limit it comes in 2 files.

You probably have some files in your custom assets folder that are referring to Mao by his old name (KEY_TEXT_LEADER_MAO_TSEDONG). Hence the need to go through and change all references of CHINESE_LEADER to MAO_TSEDONG. I suspect you had a custom CIV4LeaderHeadsInfo.xml.

Firaxis switched all of the references so as long as you weren't using any custom files (mods, etc) you would have been okay.

Willem
Apr 20, 2006, 07:32 AM
What are you two talking about?

In the new patch, any reference to Mao in the XML files was changed to Chinese_Leader. So any mods that uses old XML files that includes the previous entry will have problems.

Salamandre
Apr 20, 2006, 01:51 PM
Look people, I dont know what you are talking about:confused:


I installed the game after deleting EVERYTHING related to it, custom assets, everything, then installed the 1.61 patch. I open a new game and I have "text_key_chinese_leader" on the scores screen, in huge caracters, so it covers half of the map. Mao_zedong doesnt exist anymore in the new patch, instead we have a huge mess up.

I dont care if Mao Zedong is called "Chinese Leader" for x reasons, but I care when I get "TEXT_KEY_CHINESE_LEADER" in a "tested patch".


There is nothing to do with old mods, am I living on another planet to be the only one with this problem?:confused:


So the files I submitted are corrected, I changed some 70 entries about the so called "chinese leader" so now it shows Mao Zedong, as previously.

Gunner
Apr 20, 2006, 03:12 PM
I think you might try reinstalling again, because I don't think anyone else has that problem. I know I don't.

Willem
Apr 20, 2006, 07:46 PM
There is nothing to do with old mods, am I living on another planet to be the only one with this problem?:confused:


It seems so, it's the first time I've read about it.

Red Door
Apr 20, 2006, 09:12 PM
The Chinese Leader thing is so that Firaxis and Take-Two can sell Civ 4 in China. It's also why Communism changed to Utopia.

Salamandre
Apr 20, 2006, 10:49 PM
I dont see the point to change the name of Mao Zedong in a "patch" for selling the vanilla game with mao zedong inside in China. Is this a joke?

Dual
Apr 20, 2006, 11:21 PM
I dont see the point to change the name of Mao Zedong in a "patch" for selling the vanilla game with mao zedong inside in China. Is this a joke?

It seems China has some strict laws about using certain names in games. So Firaxis had to change some of them to get past the red tape and legally sell the game there.

It's part of the patch for us so that we have the same version as the newly made game cds destined for China. That way Firaxis only has to make one patch for everybody in the future. Otherwise they would have to keep two sets of code, and make a special patch just for China everytime they released one.

Salamandre
Apr 22, 2006, 02:22 AM
So they are ready to censorship all of us for a bunch of retarded chinese gouvernement?

Firaxis chickened with religions, now chickens with politic, do we have to agree? It seems to me unapropriate to live in Europe and play a game where I have Napoleon, Washington, etc., and CHINESE_LEADER. Ridiculous.

Dusty4prez
Apr 22, 2006, 02:29 AM
Or y'know they could just sell the copies with the patch already in the game...

Dual
Apr 22, 2006, 03:38 AM
So they are ready to censorship all of us for a bunch of retarded chinese gouvernement?

Firaxis chickened with religions, now chickens with politic, do we have to agree? It seems to me unapropriate to live in Europe and play a game where I have Napoleon, Washington, etc., and CHINESE_LEADER. Ridiculous.

I don't know if I would really call it censorship for us. The only way to tell they changed anything is to go into the XML files. Which the vast majority of Civ4 players are never going to do. ;)

Firaxis just changed the key names in the XML. With the way things are set up in there the actual name displayed in the game can be different from the key name, and different for every language. The Chinese leader's name should still be showing up as Mao Zedong in the game for everybody but the Chinese players. If it's not for you, I would doublecheck to make sure you're not using any old modified files from before the patch. Maybe you have something in your custom assets folder?

If all else fails, you can try re-installing the game and patching it again.

Willem
Apr 22, 2006, 10:51 AM
So they are ready to censorship all of us for a bunch of retarded chinese gouvernement?

No, a potential future market of 2 billion people.

Firaxis chickened with religions, now chickens with politic, do we have to agree? It seems to me unapropriate to live in Europe and play a game where I have Napoleon, Washington, etc., and CHINESE_LEADER. Ridiculous.

It wouldn't be Firaxis that would be concerned about all of this, it would be Take 2. They're the ones that are trying to sell the game, so they'd be the ones concerned about the Chinese reaction.

Lord Olleus
Apr 22, 2006, 11:01 AM
1.2 billion not 2 billion. Actually its a lot less as china has relatively few people rich enough to afford a computer. I wouldn't be suprised if their were more pc in the US than in china.

Willem
Apr 22, 2006, 11:28 AM
1.2 billion not 2 billion. Actually its a lot less as china has relatively few people rich enough to afford a computer. I wouldn't be suprised if their were more pc in the US than in china.

Well I guess my population numbers are a bit outdated, it was close to 2 billion at one time. And you'll notice I said "future" in regards to the market potential. More and more Chinese are becoming affluent enough to be able to afford PC's. You may be right that there's more of them in the US right now, but that will not always be the case. Right now would be a good time for a gaming company to get their foot in the door, so they can establish a name for themselves in the future. And appeasing the current government is just one step in that process.

Teg_Navanis
Apr 22, 2006, 01:29 PM
I installed the game after deleting EVERYTHING related to it, custom assets, everything, then installed the 1.61 patch. I open a new game and I have "text_key_chinese_leader" on the scores screen, in huge caracters, so it covers half of the map. Mao_zedong doesnt exist anymore in the new patch, instead we have a huge mess up.

There is nothing to do with old mods, am I living on another planet to be the only one with this problem?:confused:


What language are you playing in? This kind of thing happens when a text key isn't defined for a language, thus it seems to me as if the bug was language-specific.

Rathelon
Apr 22, 2006, 02:06 PM
1.2 billion not 2 billion. Actually its a lot less as china has relatively few people rich enough to afford a computer. I wouldn't be suprised if their were more pc in the US than in china.

You would be wrong. China is a huge, modern nation with cities as large, or larger, than most other nations in the world. And, more population than any other country. They probably have more millionaires and billionaires than most other countries, as well. They are not just a billion rice farmers.

And, as far as the original topic, there was no Mao Zedong bug, and Communism was not changed to Utopia. I did a clean reinstall and patch to 1.61 and both are still in the game, just like before. It is a problem with old modded files that creates the text_key_chinese_leader thing.

Dusty4prez
Apr 22, 2006, 03:35 PM
You would be wrong. China is a huge, modern nation with cities as large, or larger, than most other nations in the world. And, more population than any other country. They probably have more millionaires and billionaires than most other countries, as well. They are not just a billion rice farmers.

And, as far as the original topic, there was no Mao Zedong bug, and Communism was not changed to Utopia. I did a clean reinstall and patch to 1.61 and both are still in the game, just like before. It is a problem with old modded files that creates the text_key_chinese_leader thing.


Yes, communism was changed to Utopia because I had to change the unit XML file to say that Spys require UTOPIA and not COMMUNISM.

Rathelon
Apr 22, 2006, 04:50 PM
That's because you were using an old xml file. If you patched to 1.61 cleanly, it made those changes for you in all the appropriate places, and in game it is still COMMUNISM, even if the xml files reference it as utopia.

Trust me, I had the same text_key_chinese_leader problem, along with communism and Three Gorges Dam not displaying properly at first also. To fix it I uninstalled Civ IV as well as completely deleted the MyGames/SidMeier's CivilizationIV directory (mods and all). Then reinstalled the game and patched to 1.61, and everything was back to normal. Communism and Mao still there.

Wyz_sub10
Apr 23, 2006, 03:36 AM
The only lingering problem I got was that Mao wasn't changed to CHINESE_LEADER in the Diplomacy files.

Lord Olleus
Apr 23, 2006, 02:00 PM
the only thing that happened was that every line containing
LEADER_MAO_ZEDONG
was replaced to
LEADER_CHINESE_LEADER

and

TECH_COMMUNISM
to
TECH_UTOPIA

Kahkonen
Apr 23, 2006, 08:27 PM
It seems China has some strict laws about using certain names in games. So Firaxis had to change some of them to get past the red tape and legally sell the game there.


Such as:
communism (to utopia)
forbidden_palace (to great_palace)
threegorgesdam (to great_dam)
mao_zedong (to chinese_leader)

Hmm... that makes sense. :) :traderoute::traderoute::traderoute:

Salamandre
Apr 24, 2006, 08:25 PM
Well, some people say the text stays same with 1.61. Others say it changed. I am from those ones. I installed CIV from scratch, patched to 1.61, then had weird text as Chinese leader etc.


Maybe it is different for my french version.


Anyway, the "patch" I posted here adressed this issue for those who experienced same problems as I did. I think there is no need to debate anymore if I am right or wrong. It seems I am not alone with this problem, so it was fixed:mischief:

Kahkonen
Apr 25, 2006, 04:14 AM
Trust me, I had the same text_key_chinese_leader problem, along with communism and Three Gorges Dam not displaying properly at first also. To fix it I uninstalled Civ IV as well as completely deleted the MyGames/SidMeier's CivilizationIV directory (mods and all). Then reinstalled the game and patched to 1.61, and everything was back to normal. Communism and Mao still there.

Did you delete also cache?

Ernei
Apr 25, 2006, 05:22 AM
Great job, Salamandre!!:goodjob:
That bug was really bothering me. Do you know how can I fix the problem
of the TECH_COMMUNISM, BUILDINGCLASS_FORBIDDEN_PALACE and the
BUILDINGCLASS_THREEGORGESDAM??
Yours,

Rathelon
Apr 25, 2006, 05:22 AM
Did you delete also cache?

Yep. Everything.

Kahkonen
Apr 25, 2006, 07:02 AM
Great job, Salamandre!!:goodjob:
That bug was really bothering me. Do you know how can I fix the problem
of the TECH_COMMUNISM, BUILDINGCLASS_FORBIDDEN_PALACE and the
BUILDINGCLASS_THREEGORGESDAM??
Yours,

With some text editor change all _COMMUNISM to _UTOPIA, _FORBIDDEN_PALACE to _GREAT_PALACE, _THREEGORGESDAM to _GREAT_DAM (and _MAO_ZEDONG to _CHINESE_LEADER) in Mods\ and Customassets\

Use editors "change in files" function.

Ernei
Apr 25, 2006, 10:38 PM
With some text editor change all _COMMUNISM to _UTOPIA, _FORBIDDEN_PALACE to _GREAT_PALACE, _THREEGORGESDAM to _GREAT_DAM in Mods\ and Customassets\

Use editors "change in files" function.
Thank you very much, Kahkonen. :thanx:

Willem
Apr 26, 2006, 07:50 AM
the only thing that happened was that every line containing
LEADER_MAO_ZEDONG
was replaced to
LEADER_CHINESE_LEADER

and

TECH_COMMUNISM
to
TECH_UTOPIA

Forbidden Palace was also changed to Great Palace, and the Three Gorges Dam was changed to Great Dam.

Kahkonen
Apr 26, 2006, 09:19 AM
Forbidden Palace was also changed to Great Palace, and the Three Gorges Dam was changed to Great Dam.

The names changed also? When I patched, it only changed XML-tags not the strings. In the game it still reads Mao, Three Gorges, Forbidden and Communism.

Kahkonen
Apr 27, 2006, 10:45 AM
Well, some people say the text stays same with 1.61. Others say it changed.

With my edition there is of course still Mao Zedong (which is in files CHINESE_LEADER tag). In your zip there are only six files, but I can find CHINESE_LEADER in seven files:
Assets\XML\Art\CIV4ArtDefines_Leaderhead.xml
Assets\XML\Civilizations\CIV4CivilizationInfos.xml
Assets\XML\Civilizations\CIV4LeaderHeadInfos.xml
Assets\XML\GameInfo\CIV4DiplomacyInfos.xml
Assets\XML\Text\CIV4DiplomacyText.xml
Assets\XML\Text\CIV4GameTextInfos_Objects.xml (this is not in your zip)
Assets\XML\Text\CIV4GameText_Civilopedia_CivLeader s.xml

How can your fixes work when there is CHINESE_LEADER in CIV4GameTextInfos_Objects.xml and MAO_ZEDONG in other files?

Salamandre
Apr 27, 2006, 01:45 PM
I didnt find it in gametextinfos . But I already played with MAO till the end and everything shows properly. While before I had weird caracters. My fix is OK. If any finds any error let me know.

Kahkonen
Apr 27, 2006, 01:59 PM
I didnt find it in gametextinfos .

That's weird. It is in line 13390:

<TEXT>
<Tag>TXT_KEY_LEADER_CHINESE_LEADER</Tag>
<English>Mao Zedong</English>
<French>
<Text>Mao Tsé-Tung</Text>
<Gender>Male</Gender>
<Plural>0</Plural>
</French>
<German>
<Text>Mao Tse-tung</Text>
<Gender>Male</Gender>
<Plural>0</Plural>
</German>
<Italian>
<Text>Mao Tse Tung</Text>
<Gender>Male</Gender>
<Plural>0</Plural>
</Italian>
<Spanish>
<Text>Mao Zedong</Text>
<Gender>Male</Gender>
<Plural>0</Plural>
</Spanish>
</TEXT>

Salamandre
Apr 29, 2006, 02:49 AM
Thank you, got it. I added to the second ZIP . Not sure it is necessary, because I had no errors, but just in case, may affect translations. I should expect from a guy who translated whole game to find my error :blush: