[XML?] Leader Sounds and/or music

Troller0001

I've anxiously awaited your arrival!
Joined
Mar 9, 2016
Messages
755
Location
The Netherlands
Here's the question of today (I didn't post this in my 'stupid question thread' since these questions don't regard lua (I think?): Is it possible to add custom leader sounds to the game?
E.g. William of Orange's: 'Wat nu?' or 'Verschoon mij'.
Elizabeth's: 'ARE YOU INTERESTED IN A TRADE AGREEMENT WITH ENGLAND?'

I'm not talking about the literal text, but about them saying the text, as in, their voices.

Question #2: Is it possible to add custom music (E.g. war music) to a specific civ? If so, how?

Question #3: Which sound files can the game read/play? Can I use an ordinary .mp3 or do I need to convert it to something?

#Question 1.5: Can I add a custom DawnOfManAudio file?
EDIT: Civilizations.xml referenced me to these files:
Spoiler :

Code:
<Script2DFile>
 <Script2DSound>
      <ScriptID>AS2D_DOM_SPEECH_VENICE</ScriptID>
      <SoundID>SND_DOM_SPEECH_VENICE</SoundID>
      <SoundType>GAME_SPEECH</SoundType>
      <iMaxVolume>90</iMaxVolume>
      <iMinVolume>90</iMinVolume>
</Script2DSound>
</Script2DFile>
Code:
<AudioDefinesFile>
  <SoundDatas>
<SoundData>
      <SoundID>SND_DOM_SPEECH_VENICE</SoundID>
      <Filename>Venice</Filename>
      <bDontCache/>
      <bOnlyLoadOneVariationEachTime/>
      <LoadType>DYNAMIC_RES</LoadType>
    </SoundData>
  </SoundDatas>
</AudioDefinesFile>
Code:
Venice.mp3


Any advice/references to mods that do this will be appreciated!

-Troller0001
 
For leader music there's a tutorial by Leugi on how to do that.
  1. [TUTORIAL] Making a custom Leader use Custom Music! (by Leugi)
  2. [TUTORIAL] Creating your own Soundtrack! (by Leugi)
DOM speech as I recall simply requires adding the mp3 file to the mod and setting VFS=true, and then referencing the filename for the Civ's DOM speech.

Leader pop-up speech on the diplo screen I am unsure of. Don't know if anyone has done it for a civ as yet.

Important thing to note is that for adding any type of audio within a mod, you must check the "Reload Audio System" checkbox in Modbuddy: Common Novice-Modder Mistakes -- "NOT CHECKING THE REQUIRED MODBUDDY CHECK-BOXES"
 
Thank you very much LeeS! You (again) saved the day! ;)
 
Yes, it's possible, Colonialist Legacies has Australia with custom leader speech.
 
@Hoop Thrower, Thanks for the suggestion! I'll most certainly check that mod out! :D
 
Top Bottom