How to add more songs the ingame soundtrack?

BrazilianSpacer

Chieftain
Joined
Oct 1, 2012
Messages
32
Location
São Paulo, Brazil
Well, the title says everything. I want to add a song to game that plays while I'm playing the game with any civilization.

Additional details: I want to know how to do this for Civilization V with the Gods & Kings expansion pack.
 
Well, with my method here you can do that... But it requires some fancy editing...

I was actually toying around with the AmericaRegions Audio Script files and I managed to create my own soundtrack! I was about to do a tutorial tomorrow actually hehe, so...

Do you want to add only one new music to... say, European Civs' music? Or create a whole new soundtracck with your own music?

If it's the first case, it is quite an easy thing to do, pretty much like the tutorial I linked. You need a mod with the music file set to VFS=true; and then edit the right files (If it's Europe, first open "EuropeAudioDefines" on your Assets\Sounds\XML\ folder). Then add the following code after the last <SoundData> tag:

Code:
<SoundData>
			<SoundID>[I]SND_EUROPE_EITHER_14[/I]</SoundID>
			<Filename>[B]NameofyourFilewithoutExtension[/B]</Filename>
			<LoadType>STREAMED</LoadType>
		</SoundData>

Note that, you don't need to call the SoundID like that necessarily, you can put it the name you wish; but I like following Firaxis' pattern... After that you need to open an AudioScriptFile of the Soundtrack you want to edit, like, say, France's (FranceAudio2DScripts on the same directory)... You'll see the scripts for all the music, this time the name does matter and so does the numeration... so, if you want to add a new Peace music search for the last Peace one, and (in this case) add the following after it:

Code:
<Script2DSound>
      <ScriptID>[B]SONG_FRANCE_PEACE_41[/B]</ScriptID>
      <SoundID>[B][I]Your New Sound ID from the last code[/I][/B]</SoundID>
      <SoundType>GAME_MUSIC</SoundType>
      <iMinVolume>40</iMinVolume>
      <bIsMusic>True</bIsMusic>
      <iMaxVolume>40</iMaxVolume>
    </Script2DSound>

The numeration is very important, and so is the name and the PEACE\WAR on the ID, because that's how the game automatically manages the new sound...

NOW, if you want to make a whole new soundtrack... it is doing that a lot, but instead of "FRANCE_" on the script ID you may use, say "CUSTOM_", and on the <Civilization> table you must add a <SoundtrackTag>Custom</SoundtrackTag> thing... I'll cover this up on the tutorial tomorrow more detailed, but I hope this is enough for now...
 
Back
Top Bottom