It's admittedly been a while since I've been here, but I've come because I need help.
I'm currently in the process of making unique City-States for my mods and I've been trying to add custom music for when the player greets them in-game; however, whenever I visit the City-States in-game, it will only ever play the music tag for Almaty (the default tag). I've scoured the base files for Civ 5 to try and locate the problem and how to fix it, but to not avail, so that's where I need the help.
Below are examples of how I've set up my audio files for the Minor Civs, if you know how to fix any of my problems, please chime in. Any amount of input could be useful to me.
The code for the SoundDefine:
The code for the AudioDefine:
The code for the Aduio2DScripts:
I've checked the Database file numerous times and it keeps giving me errors such as: "no such tables as MinorCivSound" or "Expected 'Row' or 'Delete' but got 'ID' instead." I've even tried replacing many of these "tables" and "Tags" or adding Row to them, but it has always come bearing the same rotten fruit. This has lead me to believe that Firaxis has intentionally programmed their code to be as confusing as possible (why have tags defined in your files if they don't work when re-created?)
If anyone could help me determine the correct table names and attributes for these files, that'd be great and I'd really appreciate it!
I'm currently in the process of making unique City-States for my mods and I've been trying to add custom music for when the player greets them in-game; however, whenever I visit the City-States in-game, it will only ever play the music tag for Almaty (the default tag). I've scoured the base files for Civ 5 to try and locate the problem and how to fix it, but to not avail, so that's where I need the help.
Below are examples of how I've set up my audio files for the Minor Civs, if you know how to fix any of my problems, please chime in. Any amount of input could be useful to me.
The code for the SoundDefine:
Code:
<MinorCivsSounds>
<MinorCivSound>
<ID>MINOR_CIV_HK_CUSTOM_CITY_STATE</ID>
<AudioScript>AS2D_MINOR_CIV_HK_CUSTOM_CITY_STATE</AudioScript>
</MinorCivSound>
</MinorCivsSounds>
The code for the AudioDefine:
Code:
<AudioDefinesFile>
<SoundDatas>
<SoundData>
<SoundID>SND_MINOR_CIV_HK_CUSTOM_CITY_STATE</SoundID>
<Filename>MinorCiv_Custom</Filename>
<LoadType>DynamicResident</LoadType>
</SoundData>
</SoundDatas>
</AudioDefinesFile>
The code for the Aduio2DScripts:
Code:
<Script2DFile>
<Script2DSounds>
<Script2DSound>
<ScriptID>AS2D_MINOR_CIV_HK_CUSTOM_CITY_STATE</ScriptID>
<SoundID>SND_MINOR_CIV_HK_CUSTOM_CITY_STATE</SoundID>
<SoundType>GAME_MUSIC_STINGS</SoundType>
<iMinVolume>50</iMinVolume>
<iMaxVolume>50</iMaxVolume>
<iMinTimeDelay>0</iMinTimeDelay>
<iDontPlayMoreThan>1</iDontPlayMoreThan>
<bDontTriggerDuplicates>True</bDontTriggerDuplicates>
<iMinTimeMustNotPlayAgain>0</iMinTimeMustNotPlayAgain>
<fTaperSoundtrackVolume>0.0</fTaperSoundtrackVolume>
</Script2DSound>
</Script2DSounds>
</Script2DFile>
I've checked the Database file numerous times and it keeps giving me errors such as: "no such tables as MinorCivSound" or "Expected 'Row' or 'Delete' but got 'ID' instead." I've even tried replacing many of these "tables" and "Tags" or adding Row to them, but it has always come bearing the same rotten fruit. This has lead me to believe that Firaxis has intentionally programmed their code to be as confusing as possible (why have tags defined in your files if they don't work when re-created?)
If anyone could help me determine the correct table names and attributes for these files, that'd be great and I'd really appreciate it!