[TUTORIAL]How to get your music/sound in!

Snaker8

Warlord
Joined
Sep 9, 2006
Messages
118
Since this is my first tutorial, please feel free to add things you think I missed. Anyways to get on with my tutorial...
So you are wanting to get your sound/music in Civ4? Well look no further, because here are the answers!
STEP 1
Before you can do anything, you have to find those files! Go into the Firaxis folder within your Program Files, and then open up your Assets folder (for Warlords, go into Warlords and open up its Assets folder). Then go into the XML foldor, and then Audio. You will find a few files. Notice that there is a Audio2DScripts file and a Audio3DScripts file. The Audio3DScripts file is meant for ambience, such as birds, as well as unit commands. If you are wanting to do something with this file, you will have to combine it with the Civ4 one, as only the edited/added Warlords files seem to be in it. This file will also interact with the soundscapes file which gets a bit more complicated. But we will be talking mostly about the Audio2DScripts XML file. You will also notice a file named AudioDefines. Copy the files you need to your own mod folder.

STEP 2
Open up the AudioDefines2D XML file. You can use XMLSpy, or just plain ol' Notepad if you want. Notice it has a lot of techy writing. This is because these files are XML encoded and will tell Civ4 what to do. You should copy this:
Spoiler :
<Script2DSound>
<ScriptID>AS2D_(YOURSOUNDHERE)</ScriptID>
<SoundID>SND_(YOURSOUNDHERE)</SoundID>
<SoundType>GAME_SFX</SoundType>
<iMinVolume>80</iMinVolume>
<iMaxVolume>80</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>

Most of this code is basically already there, but you will need to fill in the (YOURSOUNDHERE) spots, and change the <SoundType>. These are the following sound types:
GAME_SFX = For various sound effects. Usually used with errors, movies, and ambience.
GAME_MUSIC = Used with music for the game, including Opening Menu Themes and diplomacy themes.
GAME_SPEECH = Used with technologies, and other things involving speech like the tutorials sound files.

STEP 3
Now that your audio tags are basically done, you will need to define them. Go into the AudioDefines XML file. You should copy this:
Spoiler :
<SoundData>
<SoundID>SONG_(YOURSOUNDHERE)</SoundID>
<Filename>(YOURSOUNDSLOCATION)</Filename>
<LoadType>STREAMED</LoadType>
<bIsCompressed>1</bIsCompressed>
<bInGeneric>1</bInGeneric>
</SoundData>

Again, fill in the (YOURSOUNDHERE)s. You will notice that in the second column it is asking for a destination. In your mod folder place your sound file wherever. As long as you define the destination (ex:Sounds/Soundtrack/OpeningMenu), then your sound should work. Remember that you only need to start from within your assets, so make sure NOT to put something like "C:/Program Files/Firaxis Games/Sid Meier's Civilization 4/Warlords/Assets/Sounds/Soundtrack/OpeningMenu". And remember that you don't need to label it as a mp3, or wav, you just need to label its name! Remember to make sure your sound file is the same name as what you labeled it as.

STEP 4
Now you have to decide what you want your sound for. If you want it for a diplomacy theme, let's say Louis, then you will have to add more files to your mod folder. For diplomacy themes, the music integration is located in the XML file called CIV4LeaderHeadInfos. For a technology quote you will have to go into CIV4TechInfos, and so on. Remember not to edit the original XML files, as this will ruin the original game for you!
If you have questions please post.
 
Snaker, great thread, thx for the information.

I was attempting to create my own music mod, but I ran into some problems. I created a mod folder, and under Assets/Sound/Soundtrack put music into different era folders. I only used Medieval music folder to try out the mod. I modified both AudioDefnies and Audio2DScripts as per your instructions and included all the songs on the Medieval folder with the correct location/source.

Additionally, I added an XML folder to my Assets folder, which included a "GameInfo" subfolder. I edited the CIV4EraInfos and put that file under my GameInfo folder. When I tried to launch the mod, however, I received several XML errors at the loading screen. SO, I figure, something must be fundamentally wrong, which doesn't suprise me considering I'm new to modding. In any case, I was wondering whether you could spot the problem, and/or show me how to correct it/them.

Here is the relevant (and solely modified) piece of my CIV4EraInfos file (this is under the "Medieval" Era):

<EraInfoSoundtracks>
<EraInfoSoundtrack>AS2D_ALLEGRI_MISERERE</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_ANONYMOUS_AY_SANTA_MARIA</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_ANONYMOUS_LA_GAMBA</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_BRUMEL_GLORIA</EraInfoSoundtrack>
EraInfoSoundtrack>AS2D_CHANT_DEUS</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_CHANT_LAUDATE</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_CHANT_REGEN</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_DE_LA_TORRE_ALTA</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_DESPREZ_EL_GRILLO</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_DESPREZ_LAMENT</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_LASSUS_ALMA_REDEMPTORIS</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_OCKEGHEM_INTEMERATA</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_OCKEGHEM_KYRIE</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_ORTIZ_RECERCADA</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_PALESTRINA_CREDO</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_PALESTRINA_GLORIA</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_PRAETORIUS_BALLET</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_PRAETORIUS_BRANSLE</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_PRAETORIUS_VOLTE</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_SHEPPARD_MEDIA_VITA</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_BTMY</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_BZVS</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_HQNY</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_IEEG</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_IFGS</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_IURC</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_NNYL</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_PLWT</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_PQRO</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_XXXH</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_ZCEE</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_ZCYJ</EraInfoSoundtrack>

Here is my edited AudioDefines file, which is located under (MYMOD)/:

</SoundData>
<SoundData>
<SoundID>SONG_BTMY</SoundID>
<Filename>Sounds/Soundtrack/Medieval/BTMY</Filename>
<LoadType>DYNAMIC_RES</LoadType>
<bIsCompressed>1</bIsCompressed>
<bInGeneric>1</bInGeneric>
</SoundData>

<SoundData>
<SoundID>SONG_BZVS</SoundID>
<Filename>Sounds/Soundtrack/Medieval/BZVS</Filename>
<LoadType>DYNAMIC_RES</LoadType>
<bIsCompressed>1</bIsCompressed>
<bInGeneric>1</bInGeneric>
</SoundData>

<SoundData>
<SoundID>SONG_HQNY</SoundID>
<Filename>Sounds/Soundtrack/Medieval/HQNY</Filename>
<LoadType>DYNAMIC_RES</LoadType>
<bIsCompressed>1</bIsCompressed>
<bInGeneric>1</bInGeneric>
</SoundData>

<SoundData>
<SoundID>SONG_IEEG</SoundID>
<Filename>Sounds/Soundtrack/Medieval/IEEG</Filename>
<LoadType>DYNAMIC_RES</LoadType>
<bIsCompressed>1</bIsCompressed>
<bInGeneric>1</bInGeneric>
</SoundData>

<SoundData>
<SoundID>SONG_IFGS</SoundID>
<Filename>Sounds/Soundtrack/Medieval/IFGS</Filename>
<LoadType>DYNAMIC_RES</LoadType>
<bIsCompressed>1</bIsCompressed>
<bInGeneric>1</bInGeneric>
</SoundData>

<SoundData>
<SoundID>SONG_IURC</SoundID>
<Filename>Sounds/Soundtrack/Medieval/IURC</Filename>
<LoadType>DYNAMIC_RES</LoadType>
<bIsCompressed>1</bIsCompressed>
<bInGeneric>1</bInGeneric>
</SoundData>

<SoundData>
<SoundID>SONG_NNYL</SoundID>
<Filename>Sounds/Soundtrack/Medieval/NNYL</Filename>
<LoadType>DYNAMIC_RES</LoadType>
<bIsCompressed>1</bIsCompressed>
<bInGeneric>1</bInGeneric>
</SoundData>

<SoundData>
<SoundID>SONG_PLWT</SoundID>
<Filename>Sounds/Soundtrack/Medieval/PLWT</Filename>
<LoadType>DYNAMIC_RES</LoadType>
<bIsCompressed>1</bIsCompressed>
<bInGeneric>1</bInGeneric>
</SoundData>

<SoundData>
<SoundID>SONG_PQRO</SoundID>
<Filename>Sounds/Soundtrack/Medieval/PQRO</Filename>
<LoadType>DYNAMIC_RES</LoadType>
<bIsCompressed>1</bIsCompressed>
<bInGeneric>1</bInGeneric>
</SoundData>

<SoundData>
<SoundID>SONG_XXXH</SoundID>
<Filename>Sounds/Soundtrack/Medieval/XXXH</Filename>
<LoadType>DYNAMIC_RES</LoadType>
<bIsCompressed>1</bIsCompressed>
<bInGeneric>1</bInGeneric>
</SoundData>

<SoundData>
<SoundID>SONG_ZCEE</SoundID>
<Filename>Sounds/Soundtrack/Medieval/ZCEE</Filename>
<LoadType>DYNAMIC_RES</LoadType>
<bIsCompressed>1</bIsCompressed>
<bInGeneric>1</bInGeneric>
</SoundData>

<SoundData>
<SoundID>SONG_ZCYJ</SoundID>
<Filename>Sounds/Soundtrack/Medieval/ZCYJ</Filename>
<LoadType>DYNAMIC_RES</LoadType>
<bIsCompressed>1</bIsCompressed>
<bInGeneric>1</bInGeneric>
</SoundData>

And lastly, here is (the relevant part of) my edited Audio2DScripts file:

</Script2DSound>
<Script2DSound>
<ScriptID>AS2D_BTMY</ScriptID>
<SoundID>SONG_BTMY</SoundID>
<SoundType>GAME_MUSIC</SoundType>
<iMinVolume>80</iMinVolume>
<iMaxVolume>80</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>

<Script2DSound>
<ScriptID>AS2D_BZVS</ScriptID>
<SoundID>SONG_BZVS</SoundID>
<SoundType>GAME_MUSIC</SoundType>
<iMinVolume>80</iMinVolume>
<iMaxVolume>80</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>

<Script2DSound>
<ScriptID>AS2D_HQNY</ScriptID>
<SoundID>SONG_HQNY</SoundID>
<SoundType>GAME_MUSIC</SoundType>
<iMinVolume>80</iMinVolume>
<iMaxVolume>80</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>

<Script2DSound>
<ScriptID>AS2D_IEEG</ScriptID>
<SoundID>SONG_IEEG</SoundID>
<SoundType>GAME_MUSIC</SoundType>
<iMinVolume>80</iMinVolume>
<iMaxVolume>80</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>

<Script2DSound>
<ScriptID>AS2D_IFGS</ScriptID>
<SoundID>SONG_IFGS</SoundID>
<SoundType>GAME_MUSIC</SoundType>
<iMinVolume>80</iMinVolume>
<iMaxVolume>80</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>

<Script2DSound>
<ScriptID>AS2D_IURC</ScriptID>
<SoundID>SONG_IURC</SoundID>
<SoundType>GAME_MUSIC</SoundType>
<iMinVolume>80</iMinVolume>
<iMaxVolume>80</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>

<Script2DSound>
<ScriptID>AS2D_NNYL</ScriptID>
<SoundID>SONG_NNYL</SoundID>
<SoundType>GAME_MUSIC</SoundType>
<iMinVolume>80</iMinVolume>
<iMaxVolume>80</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>

<Script2DSound>
<ScriptID>AS2D_PLWT</ScriptID>
<SoundID>SONG_PLWT</SoundID>
<SoundType>GAME_MUSIC</SoundType>
<iMinVolume>80</iMinVolume>
<iMaxVolume>80</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>

<Script2DSound>
<ScriptID>AS2D_PQRO</ScriptID>
<SoundID>SONG_PQRO</SoundID>
<SoundType>GAME_MUSIC</SoundType>
<iMinVolume>80</iMinVolume>
<iMaxVolume>80</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>

<Script2DSound>
<ScriptID>AS2D_XXXH</ScriptID>
<SoundID>SONG_XXXH</SoundID>
<SoundType>GAME_MUSIC</SoundType>
<iMinVolume>80</iMinVolume>
<iMaxVolume>80</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>

<Script2DSound>
<ScriptID>AS2D_ZCEE</ScriptID>
<SoundID>SONG_ZCEE</SoundID>
<SoundType>GAME_MUSIC</SoundType>
<iMinVolume>80</iMinVolume>
<iMaxVolume>80</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>

<Script2DSound>
<ScriptID>AS2D_ZCYJ</ScriptID>
<SoundID>SONG_ZCYJ</SoundID>
<SoundType>GAME_MUSIC</SoundType>
<iMinVolume>80</iMinVolume>
<iMaxVolume>80</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>
</Script2DSounds>

All files open on the Windows XML editor. And the Mod is in the proper /Mod folder as well. I'm stumped though, if you could lend me a hand it would be great.

Thanks for reading this far,

Thom.
 
I was just skimming it and found 1 error. (There may be more.)

Code:
[B]EraInfoSoundtrack>AS2D_CHANT_DEUS</EraInfoSoundtrack>[/B]

That line should read:

Code:
[B]<[/B]EraInfoSoundtrack>AS2D_CHANT_DEUS</EraInfoSoundtrack>

You just missed a < sign.
 
I've been looking for a guide to adding additional/different music tracks to the game, and this seems the closest i've found, however i'm not looking to make mod specific music but change the games default music playlist a bit. I'm not looking to change Diplomacy music or anything other than the background music that plays in the respective era's as you go through the games timeline. Just the music in the \Assets\Sounds\Soundtrack folder covering Classical, Renaissance, Medieval, Industrial and Modern.

So far i've just added additional 'AncientSoundtrack' mp3's named 'AncientSountrack5' to 'AncientSoundtrack11' and made the (seemingly) relevant changes to the files below for those (simply copy/pasting the info from the original code block for 'AncientSoundtrack4' and changing the number to match the new tracks).

I've identified (and made a backup before hand) these files that should seem to be involved:

CIV4EraInfos.xml

This is in the default (CivIV)\Assets\XML\GameInfo folder, where my (CivIV) is specifically 'Sid Meier's Civilization 4 Complete' (yours will vary).

AudioDefines.xml
Audio2DScripts.xml

Both are in the default (CivIV)\Assets\XML\Audio\ path.

The music files (MP3 type) are all in the default (CivIV)\Assets\Sounds directory and in the required 'era' folder, in this case 'Classical' for my test run, but if i can get it working i will look to then modify the other era folders.

This game loads and runs fine, no errors reported but i still get just the default original 4 'AncientSoundtrack' music files playing and not the additional 5-11 that i've tried to 'mod' into the game.

So while this guide did have some advice, it has not helped me work out my specific problem, that off changing/adding more game music files to the game. Any suggestions or pointers to other threads that have worked it out very much appreciated.
 
Top Bottom