[BNW] How to make my custom civilization use a pre-existing music set (war and peace)

Cissnei

Warlord
Joined
Feb 27, 2013
Messages
298
For example Korean. What line do I have to add to XML to make it so my civ uses Korean war and peace themes?
 
In addition to the civ-music that Nutty described, there's also unique music for each leader. (1 war theme, and 1 peace theme for each leader to be precise).
These can simply be copied over from another leader:
Code:
<Audio_2DSounds>
        <Row>
            <ScriptID>AS2D_LEADER_MUSIC_CISSNEI_KOREAN_DUDE_PEACE</ScriptID>
            <SoundID>SND_LEADER_MUSIC_SEJONG_PEACE</SoundID>
            <SoundType>GAME_MUSIC</SoundType>
            <MaxVolume>45</MaxVolume>
            <MinVolume>45</MinVolume>
            <IsMusic>True</IsMusic>
        </Row>
        <Row>
            <ScriptID>AS2D_LEADER_MUSIC_CISSNEI_KOREAN_DUDE_PEACE</ScriptID>
            <SoundID>SND_LEADER_MUSIC_SEJONG_WAR</SoundID>
            <SoundType>GAME_MUSIC</SoundType>
            <MaxVolume>45</MaxVolume>
            <MinVolume>45</MinVolume>
            <IsMusic>True</IsMusic>
        </Row>
    </Audio_2DSounds>
where your leader's type is LEADER_CISSNEI_KOREAN_DUDE.

or you can define your own:
Code:
<Audio_Sounds>
        <Row>
            <SoundID>SND_LEADER_MUSIC_TRL_KING_BOB_OMB_PEACE</SoundID>
            <Filename>TRL_BobombBattlefieldQumu</Filename>
            <LoadType>DynamicResident</LoadType>
        </Row>
        <Row>
            <SoundID>SND_LEADER_MUSIC_TRL_KING_BOB_OMB_WAR</SoundID>
            <Filename>TRL_AngryKingBobombMPSR</Filename>
            <LoadType>DynamicResident</LoadType>
        </Row>
    </Audio_Sounds>
    <Audio_2DSounds>
        <Row>
            <ScriptID>AS2D_LEADER_MUSIC_TRL_KING_BOB_OMB_PEACE</ScriptID>
            <SoundID>SND_LEADER_MUSIC_TRL_KING_BOB_OMB_PEACE</SoundID>
            <SoundType>GAME_MUSIC</SoundType>
            <MaxVolume>60</MaxVolume>
            <MinVolume>60</MinVolume>
            <IsMusic>True</IsMusic>
        </Row>
        <Row>
            <ScriptID>AS2D_LEADER_MUSIC_TRL_KING_BOB_OMB_WAR</ScriptID>
            <SoundID>SND_LEADER_MUSIC_TRL_KING_BOB_OMB_WAR</SoundID>
            <SoundType>GAME_MUSIC</SoundType>
            <MaxVolume>80</MaxVolume>
            <MinVolume>80</MinVolume>
            <IsMusic>True</IsMusic>
        </Row>
    </Audio_2DSounds>
where the sound-files are .mp3 files that have VFS=true, and the leader's type is LEADER_TRL_KING_BOB_OMB

NOTE: Be sure to check the 'reload audio system' checkbox in your mod's properties.
You will probably have to play around with the volume settings a bit to ensure the music is not too loud/quiet
In case you're wondering why such code never appears in the base files, Firaxis uses a different format for audio files that we cannot use. I.e. referencing to the base files does not work here.
 
In addition to the civ-music that Nutty described, there's also unique music for each leader. (1 war theme, and 1 peace theme for each leader to be precise).
These can simply be copied over from another leader:

where the sound-files are .mp3 files that have VFS=true, and the leader's type is LEADER_TRL_KING_BOB_OMB

NOTE: Be sure to check the 'reload audio system' checkbox in your mod's properties.
You will probably have to play around with the volume settings a bit to ensure the music is not too loud/quiet
In case you're wondering why such code never appears in the base files, Firaxis uses a different format for audio files that we cannot use. I.e. referencing to the base files does not work here.
I am editing someone else's mod so I can't do that... I don't want to touch anything on the back end because when I tried to make this same mod (my own civ) even though my files were all perfect it still wasnt working. So I downloaded a simple G&K civ to edit. I can't add another file
 
Top Bottom