How Do I change music?

rcoutme

Emperor
Joined
Jan 3, 2004
Messages
1,792
Location
Massachusetts
I have found that I kind of like the classical music sections from the Industrial and Renessance era, but the modern era stuff really grates. Does anyone know
1. Where the control to the music selections is?
2. How to modify it (please be specific, such as "Use Notepad to modify xx..."?
3. How to add music into the files from cd's?
 
Here's what you do:
  • Open (C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Assets\XML\GameInfo)
  • Then, Open (CIV4EraInfos.xml) with an xml editor or notepad.
  • Now find <EraInfoSoundtracks> Look at the values under neath this for Example: (This is Under Anceint Era)
<EraInfoSoundtrack>AS2D_ANCIENT_SOUNDTRACK_1</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_ANCIENT_SOUNDTRACK_2</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_ANCIENT_SOUNDTRACK_3</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_ANCIENT_SOUNDTRACK_4</EraInfoSoundtrack>

  • To change the soundtracks change the <EraInfoSoundtrack> for Example I'll change the first ancient soundtrack to something from Renaissance:
<EraInfoSoundtrack>AS2D_BACH_ALLEGRO</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_ANCIENT_SOUNDTRACK_2</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_ANCIENT_SOUNDTRACK_3</EraInfoSoundtrack>
<EraInfoSoundtrack>AS2D_ANCIENT_SOUNDTRACK_4</EraInfoSoundtrack>

:goodjob: To get a full idea of all the music goto. (C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Assets\Sounds\Soundtrack)

I hope that helps dude! Cheers!:beer:
 
What a pain. They already have the different era music in separate folders, so why not just have the main exe access whatever is in the appropriate folder instead of the cumbersome extra coding in the xml file?
 
In the XML\Audio folder, there's the file called AudioDefines.xml, in which you need to add the definitions and paths (as far as I can see, without the .mp3 or .wav extentions) of the songs that you actually ADD to the folder.

Otherwise, you can probably just put the path instead of the name in the erainfos file...
 
Well....as it turns out...the buggers must have done something with line quantities, because you can only replace the lines listed. If you add any extras (like wanting to hear ALL the music that you like each era) you get all sorts of errors by adding more music lines than were originally there.
 
I don't think so rcoutme, I'll test it now though. I've already successfully added 2 ancient era songs (from another game's soundtrack hehe) and they play just fine...
 
Nope, it should work...
 
Hi Everyone,

Out of curiosity, how would I go about changing the diplomacy music for certain civs?

Thanks!

PS. Does it matter what order you place your song in the AudioDefines.xml? As in can I just stick it into the middle, or do I need to add each new entry at the bottom?
 
Order shouldn't matter in there.

And you don't change music for civs, you change it for leaderheads -> leaderheadInfos.xml ;).

Oh ok! :)
So let me clarify this, because I'm currently having trouble with getting just one song into my mod:
Files to Change:
Soundtrack:
- AudioDefines.xml
- CIV4EraInfos.xml

Diplomacy Music:
- AudioDefines.xml
- leaderheadInfos.xml

Is this it? Also for my soundtrack music I place it in my Assets/Sounds/Soundtrack folder? Or do I need to place it in my Assets/Sounds/Soundtrack/Classical (or Medieval) folder?

Thanks Again!
 
In which folder you put the mp3 file doesn't matter, as long as you link it right in AudioDefines ;). The subfolders are only for your own organization, nothing more.

And you're missing the Audio2DScripts.xml. The ID in this file has to go into the leaderheadInfos, not the one from the audioDefines.
 
ok ok, I figured it out. Thanks The_J. I just forgot to add in the audio in 2D Audio xml file.:crazyeye:
 
Back
Top Bottom