View Full Version : BtS Modding Help


Saim
Nov 22, 2007, 10:26 PM
Whenever I edit Civ4GameTextObjectInfos (or whatever, something like that) in my mod I get an error that says that </TEXT> at the end does not match <Civ4GameTextInfos>, even though the last tag is </Civ4GameTextInfos>.

When I add cities to the civs I make in the CivilizationInfos file, it says that the earliest added city in the file is incorrect for some reason. I remove it, and it does it for the next one.

Wtf?

CXDamian
Nov 22, 2007, 11:34 PM
Sounds like your missing <TEXT> at the beginning of an entry, if you can't find it try opening it in your web browser(right click, open with...). Firefox will give you a line and column number, IE will just post the same error.

Post the excerpt from <Cities> to </Cities> (there should only be one <Cities> per civ)

Saim
Nov 23, 2007, 02:53 AM
Well, I've actually deleted and remade the TEXT file multiple times.

The Civ file I deleted too, but I didn't remake it.

Saim
Nov 24, 2007, 12:26 AM
Here are the two files:

http://forums.civfanatics.com/uploads/108043/Copy_of_CIV4GameText_Objects_BTS.zip

CXDamian
Nov 24, 2007, 12:47 AM
Duplicate end tag(</TEXT>) on Magadha:
<TEXT>
<Tag>TXT_KEY_CIV_MAGADHA_ADJECTIVE</Tag>
<English>Magadhi</English>
<French>
<Text>Rathaus</Text>
<Gender>Male</Gender>
<Plural>0</Plural>
</French>
<German>
<Text>Rathaus</Text>
<Gender>Neuter</Gender>
<Plural>0</Plural>
</German>
<Italian>
<Text>Rathaus:Rathaus</Text>
<Gender>Male</Gender>
<Plural>0:1</Plural>
</Italian>
<Spanish>
<Text>Rathaus:Rathaus</Text>
<Gender>Male</Gender>
<Plural>0:1</Plural>
</Spanish>
</TEXT>
</TEXT>
<TEXT>
<Tag>TXT_KEY_CIV_MAGADHA_SHORT_DESC</Tag>


Missing start tag(<TEXT>) on Hellenism:
<Tag>TXT_KEY_RELIGION_JUDAISM_ADJECTIVE</Tag>
<English>
<Text>Jewish</Text>
<Gender>Male</Gender>
<Plural>0</Plural>
</English>
<French>
<Text>juif:juive:juifs:juives</Text>
<Gender>Male:Female:Male:Female</Gender>
<Plural>0:0:1:1</Plural>
</French>
<German>
<Text>Jüdisch:jüdischen:jüdische</Text>
<Gender>Neuter:Neuter:Neuter</Gender>
<Plural>0:0:0</Plural>
</German>
<Italian>
<Text>dei giudei</Text>
<Gender>Male</Gender>
<Plural>0</Plural>
</Italian>
<Spanish>
<Text>judío:judía:judíos:judías</Text>
<Gender>Male:Female:Male:Female</Gender>
<Plural>0:0:1:1</Plural>
</Spanish>
</TEXT>
<Tag>TXT_KEY_RELIGION_HELLENISM_ADJECTIVE</Tag>


CIV4CivilizationInfos: try changing each <city></city> to <City></City>

Saim
Nov 24, 2007, 12:57 AM
Ah... thankyou!

EDIT: I fixed it, but it the TEXT file doesn't seem to work.

Saim
Nov 24, 2007, 01:38 AM
http://forums.civfanatics.com/uploads/108043/CIV4GameText_Objects_BTS.zip

The error is the same thing about </TEXT> not equaling the opening tag for the file.

EDIT: Nvm, I fixed it.

Saim
Nov 24, 2007, 08:59 PM
OK, there are no xml errors now, but when I start playing the mod the game times out.

http://forums.civfanatics.com/uploads/108043/Copy_of_Civ_Saim.zip

CXDamian
Nov 24, 2007, 09:58 PM
Delete Assets/XML/Interface/CIV4InterfaceInfos.xml or add the following to the end of it:
<InterfaceModeInfo>
<Type>INTERFACEMODE_SAVE_PLOT_NIFS</Type>
<Description></Description>
<Help/>
<CursorType>CURSOR_PING</CursorType>
<Mission>NONE</Mission>
<bVisible>0</bVisible>
<bGotoPlot>0</bGotoPlot>
<bHighlightPlot>1</bHighlightPlot>
<bSelectType>0</bSelectType>
<bSelectAll>0</bSelectAll>
</InterfaceModeInfo>

mine is dated 8/30/2007, yours was june. Changing the above loaded the mod without problems.

You shouldn't need to include any files that are not modifications of the main game.

Saim
Nov 24, 2007, 10:55 PM
I can't find Civ4InterfaceInfos... I'll assume that you're talking about Civ4InterfaceModeInfos.

EDIT: Yep, it worked.