JustATourist
Lost in Translation
At the moment I am working on a modular mod, which does add a new religion to the game. Everything worked absolutly fine with that so far (tested, absolutly no problem), until I had the idea "Well a new religion will also need new sounds." So I took the audio xmls from BTS and copied them into the mod. No problem yet. But as soon as I add my new religion sounds the game crashed every time on startup. (After the loading sequence and right in the moment I would eppect the main game menu to appear. And of course with many many errors in the audio log. It reports that he even can't find the files originally in the game.) I moved the files into my custom assets and later into the original assets... Same thing. I am quite sure, there can't be much, want can be done wrong when adding a new sound.
One example of a sound I have added, which alone causes a crash is:
Audio2DScripts.xml:
" <Script2DSound>
<ScriptID>AS2D_BUILD_OLYMP</ScriptID>
<SoundID>SND_BUILD_OLYMP</SoundID>
<SoundType>GAME_SFX</SoundType>
<iMinVolume>90</iMinVolume>
<iMaxVolume>90</iMaxVolume>
<iPitchChangeDown>0</iPitchChangeDown>
<iPitchChangeUp>0</iPitchChangeUp>
<iMinLeftPan>-1</iMinLeftPan>
<iMaxLeftPan>-1</iMaxLeftPan>
<iMinRightPan>-1</iMinRightPan>
<iMaxRightPan>-1</iMaxRightPan>
<bLooping>0</bLooping>
<iMinTimeDelay>0</iMinTimeDelay>
<iMaxTimeDelay>0</iMaxTimeDelay>
<bTaperForSoundtracks>0</bTaperForSoundtracks>
<iLengthOfSound>0</iLengthOfSound>
<fMinDryLevel>1.0</fMinDryLevel>
<fMaxDryLevel>1.0</fMaxDryLevel>
<fMinWetLevel>0.0</fMinWetLevel>
<fMaxWetLevel>0.0</fMaxWetLevel>
</Script2DSound>"
and AudioDefines.xml:
" <SoundData>
<SoundID>SND_BUILD_OLYMP</SoundID>
<Filename>Sounds/OlympDink</Filename>
<LoadType>DYNAMIC_RES</LoadType>
<bIsCompressed>1</bIsCompressed>
<bInGeneric>1</bInGeneric>
</SoundData>"
The other 4 xml file are in the same folder but left unmodified. The lines in the defines are definitivly in the SoundDatas area of the file. I really can't see anything wrong about these lines.
Can anybody help?
One example of a sound I have added, which alone causes a crash is:
Audio2DScripts.xml:
" <Script2DSound>
<ScriptID>AS2D_BUILD_OLYMP</ScriptID>
<SoundID>SND_BUILD_OLYMP</SoundID>
<SoundType>GAME_SFX</SoundType>
<iMinVolume>90</iMinVolume>
<iMaxVolume>90</iMaxVolume>
<iPitchChangeDown>0</iPitchChangeDown>
<iPitchChangeUp>0</iPitchChangeUp>
<iMinLeftPan>-1</iMinLeftPan>
<iMaxLeftPan>-1</iMaxLeftPan>
<iMinRightPan>-1</iMinRightPan>
<iMaxRightPan>-1</iMaxRightPan>
<bLooping>0</bLooping>
<iMinTimeDelay>0</iMinTimeDelay>
<iMaxTimeDelay>0</iMaxTimeDelay>
<bTaperForSoundtracks>0</bTaperForSoundtracks>
<iLengthOfSound>0</iLengthOfSound>
<fMinDryLevel>1.0</fMinDryLevel>
<fMaxDryLevel>1.0</fMaxDryLevel>
<fMinWetLevel>0.0</fMinWetLevel>
<fMaxWetLevel>0.0</fMaxWetLevel>
</Script2DSound>"
and AudioDefines.xml:
" <SoundData>
<SoundID>SND_BUILD_OLYMP</SoundID>
<Filename>Sounds/OlympDink</Filename>
<LoadType>DYNAMIC_RES</LoadType>
<bIsCompressed>1</bIsCompressed>
<bInGeneric>1</bInGeneric>
</SoundData>"
The other 4 xml file are in the same folder but left unmodified. The lines in the defines are definitivly in the SoundDatas area of the file. I really can't see anything wrong about these lines.
Can anybody help?