Mr_V said:
Sorry if it's been asked before... you know how you can specify diplo music and diplo war music? Well, would it be possible in similar way to change the sound (point to your own mp3 file) which you hear when you declare war on somebody (the trumpet)?
Cheers
I assume you don't know anything about modding, but if it's not your case, please be patient... and forgive my english too.
The answer is YES to all your questions.
Basically, you can define a custom music set for each civilization leader, or even change every single sound effect that is in the game.
You just have to ADD or MODIFY some XML tags, depending on the final result you want to achieve.
- The first XML file you'll want to look into is the following:
<Your Civ4 game directory>\Assets\XML\Civilizations\CIV4LeaderHeadInfos.xml
This one holds all the informations about the leaders in the game, and for each of them are defined sound infos.
- Two other XML files to consider, are the following:
<Your Civ4 game directory>\Assets\XML\Audio\Audio2Scripts.xml
and
<Your Civ4 game directory>\Assets\XML\Audio\Audio3Scripts.xml
These two files hold informations about each single sound effect or music piece that you may find in the game.
- Finally, the following XML file is the one that actually links each sound ID to its corresponding multimedia file.
<Your Civ4 game directory>\Assets\XML\Audio\AudioDefines.xml
Since the original files must always remain unchanged, before doing anything else you have to copy all those files to your CustomAssets directory.
So, first of all, copy all the files I've listed above to their mirror path in the CustomAssets directory.
Just in case you don't know it already, this directory is used to customize the game. Its content always overrides the corrisponding original, so you don't have to modify any of the original files. Its full path is the following:
\My Documents\My Games\Sid Meier's Civilization 4\CustomAssets\
Now, in Civ4LeaderHeadInfos.xml file, for each leader, you'll find four tags:
<DiplomacyIntroMusicPeace>
<DiplomacyMusicPeace>
<DiplomacyIntroMusicWar>
<DiplomacyMusicWar>
Those are the diplomacy music definitions: there is a KEY entry for each era.
All you have to do here is to identify the right one for the era of your interest, and then find its corrisponding ID in Audio2DScripts.xml.
For example Roosevelt's diplomacy music key for the ancient era is: AS2D_DIPLO_ROOSEVELT_EARLY;
in Audio2DScripts.xml has given this ID: DIPLO_ROOSEVELT_EARLY.
This is the ID which actually points to the mp3 file.
This association can be found in AudioDefines.xml:
Code:
<SoundData>
<SoundID>DIPLO_ROOSEVELT_EARLY</SoundID>
<Filename>Sounds/Diplomacy/Roosevelt_Early</Filename>
<LoadType>STREAMED</LoadType>
<bIsCompressed>1</bIsCompressed>
<bInGeneric>1</bInGeneric>
</SoundData>
So now we know that Roosevelt's diplomacy music for the ancient era points to Roosevelt_Early.mp3
Hope this helps. Happy modding