View Full Version : My mod keeps crashing!


Farsight
Aug 20, 2009, 09:39 AM
As you probably know, I'm working on a mod converting TETurkhan Test of Time to Civilization IV. I have fixed the problem of the lack of interface and a map that actually loads, but I have a new problem: every time I try to load the mod so I can add cities to the map, it just crashes when it loads the mod: there's no 'file not found' message, it just crashes and then I get the standard Windows Vista "Civilization IV: Beyond the Sword has stopped working" message! Can anyone help me with this?

TC01
Aug 20, 2009, 10:18 AM
At what point does it crash? While loading a game or while starting up?

If while starting up... at what point? Initializing XML? Python? Engine?

You might get a crash while initializing XML if your art defines are incorrect, I think.

Farsight
Aug 20, 2009, 10:49 AM
It apparently crashed on Init Audio.

civ editor11
Aug 20, 2009, 10:57 AM
Have you checked all the audio defines?
Do you have all of the audios in your mod in the right place?

Farsight
Aug 20, 2009, 11:10 AM
Can you please elaborate on your post?

TC01
Aug 20, 2009, 11:18 AM
For instance:

<SoundData>
<SoundID>SND_ERROR</SoundID>
<Filename>Sounds/Error</Filename>
<LoadType>RESIDENT</LoadType>
<bIsCompressed>1</bIsCompressed>
<bInGeneric>1</bInGeneric>
</SoundData>

Is from AudioDefines.xml in XML\Audio. If the Sounds/Error was not a correct file (in Assets\Sounds) you might get a crash.

civ editor11
Aug 20, 2009, 11:19 AM
Did you change any of the sounds in the game or are they the generic ones?
If you did change any did you do it with XML or just put one in with the same name?
If you didn't define the sounds right in the sound files the game might crash.
My last question was asking if you defined the audio to the wrong place where it couldn't find it. I'm not sure if that'll crash the game but it might?
Basically the same thing TC01 was saying just now

Farsight
Aug 20, 2009, 11:46 AM
Never mind, I fixed the problem. The only problem I currently have is the lack of unit orders and selection. But I'll have that problem fixed.