Hypereon
He was a Consul of Rome!
Could you add music with this method. And while we're speaking on this topic, does anyone know if there's a way to include the civ's themes into the game's background music?
I am not sure about adding new music, because I have only been replacing them with modding, but I don't believe it can't be done.
Well, lets look at the sound defines... it seems that new music needs to be defined separately to every single civilization's Audio2DScripts.xml in assets/Sounds/XML with a new Script2DSound row like adding this for Germany:
Spoiler :
<Script2DSound>
<ScriptID>SONG_GERMANY_PEACE_1</ScriptID>
<SoundID>SND_EUROPE_PEACE_1</SoundID>
<SoundType>GAME_MUSIC</SoundType>
<iMinVolume>40</iMinVolume>
<iMaxVolume>40</iMaxVolume>
<bIsMusic>True</bIsMusic>
<iPriority>1</iPriority>
</Script2DSound>
<ScriptID>SONG_GERMANY_PEACE_1</ScriptID>
<SoundID>SND_EUROPE_PEACE_1</SoundID>
<SoundType>GAME_MUSIC</SoundType>
<iMinVolume>40</iMinVolume>
<iMaxVolume>40</iMaxVolume>
<bIsMusic>True</bIsMusic>
<iPriority>1</iPriority>
</Script2DSound>
I don't know where else the new ScriptID is defined, but the SoundID, like SND_EUROPE_PEACE is defined in i.e. Europe(or some other continent type)AudioDefines.xml (where you could possibly define new sounds also with a new row like this, just add in your custom SoundID end Filename ).
Spoiler :
<SoundData>
<SoundID>SND_EUROPE_PEACE_1</SoundID>
<Filename>AmaryllisSuite</Filename>
<LoadType>STREAMED</LoadType>
</SoundData>
<SoundID>SND_EUROPE_PEACE_1</SoundID>
<Filename>AmaryllisSuite</Filename>
<LoadType>STREAMED</LoadType>
</SoundData>
In the Filename you just add your new audio file's name without the filetype ending (it can be MP3 also).
I don't know if this is modular but it should be able to replace with VFS. Whether it is possible to add a completely new audio file depends on whether the ScriptID in the first spoiler tag needs to be defined somewhere else. I don't have tested this method myself yet, but I thought this could be helpful.