Using Modbuddy, I figured out how to add city states to the game but without music, however. When I tried to add music to a certain city-state, the mod itself still shows up on the mod list in Civ5 but when activated, the city state does not appear in the Civilopedia nor does it spawn.
The code I have pasted below is what is being used in my mod.
CityStateReplacements.xml (NOTE: data entries unrelated to sound have being omitted.)
2D Audio Scripts.xml
audioDefines.xml
The sound referenced in the above XML (MinorCivLuxembourg.mp3) has being set to "Import into VFS: True" so I don't know what could be causing the mod to not work.
Any help would be greatly appreciated.
The code I have pasted below is what is being used in my mod.
CityStateReplacements.xml (NOTE: data entries unrelated to sound have being omitted.)
Code:
<GameData>
<!-- Adding a new CityState entry. -->
<MinorCivilizations>
<MinorCivsSounds>
<MinorCivSound>
<ScriptID>AS2D_MINOR_CIV_LUXEMBOURG</ScriptID>
<SoundID>SND_MINOR_CIV_LUXEMBOURG</SoundID>
</MinorCivSound>
</MinorCivsSounds>
</Row>
</Language_en_US>
</GameData>
2D Audio Scripts.xml
Code:
<Script2DFile>
<Script2DSounds>
<Script2DSound>
<ScriptID>AS2D_MINOR_CIV_LUXEMBOURG</ScriptID>
<SoundID>SND_MINOR_CIV_LUXEMBOURG</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>
audioDefines.xml
Code:
<AudioDefinesFile>
<SoundDatas>
<SoundData>
<SoundID>SND_MINOR_CIV_LUXEMBOURG</SoundID>
<Filename>MinorCiv_Luxembourg</Filename>
<bDontCache />
<bOnlyLoadOneVariationEachTime />
<LoadType>DYNAMIC_RES</LoadType>
</SoundData>
</SoundDatas>
</AudioDefinesFile>
The sound referenced in the above XML (MinorCivLuxembourg.mp3) has being set to "Import into VFS: True" so I don't know what could be causing the mod to not work.
Any help would be greatly appreciated.