Announcement

Collapse
No announcement yet.

Sound - how to add new sounds to game?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Sound - how to add new sounds to game?

    Hello,

    I was tunning my personal mod, and realized that I really miss that deep, distant sound of explosion, when my battleships bombarded cities in CTP2.

    I wanted to add it to the game, but?

    I searched throught the game files and this forum, however I cant find any guide for modding sounds.

    anyone knows how to or link to such guide?

  • #2
    I think the sounds are referenced in the XMLs, but I'm not at my home computer so i'm not entirely sure which one. I'd guess the Units XML (possibly UnitClassInfos)?
    <Reverend> IRC is just multiplayer notepad.
    I like your SNOOPY POSTER! - While you Wait quote.

    Comment


    • #3
      nope.
      the only XML I found related to the sounds are
      AudioDefines.xml
      Audio3DScripts.xml
      the first is the list of soundtracks and sounds, like sword "swoosh", and second contains city ambient and so on.

      but I was unable to find a way to set particular *.wav for particular action, for example mentioned "swoosh" for swordsman attack. dunno where it is.

      Comment


      • #4
        Using the airbomb bombs descending sound as an example, this is how unit sounds are done in Civ4.

        1. Unit art files (the NIF file) references the Audio Definition.

        2. Reference to Audio Definition = Audio3DScripts.xml
        [xml]

        AS3D_UN_BOMBS_DESCEND
        SND_BOMBS_DESCEND
        GAME_SFX
        100
        100
        -7000
        7000
        0
        0
        0
        NONE
        NONE
        0
        0
        0
        0
        500
        1000
        7000
        7000
        0
        0
        1.0
        1.0
        0.5
        0.5
        0

        [/xml]

        3. Reference to Wav file = AudioDefines.xml
        [xml]

        SND_BOMBS_DESCEND
        Sounds/Units/BombsDescend
        DYNAMIC_RES
        1
        1

        [/xml]

        4. Wav file = \Assets\Sounds\Units

        Hope that helps.

        Comment


        • #5
          what about new music ???
          anti steam and proud of it

          CDO ....its OCD in alpha order like it should be

          Comment


          • #6
            Background soundtracks, or ambiance music?

            Comment


            • #7
              Ok, how do I change the nif's sound??? Where is it referenced? I don't see it anywhere. Plz help.

              Comment


              • #8
                backround....sorry
                anti steam and proud of it

                CDO ....its OCD in alpha order like it should be

                Comment


                • #9
                  Originally posted by Dale
                  Background soundtracks, or ambiance music?
                  Hey Dale, there's a post I made about how to change the music at the bottom of this thread. Hope it helps.

                  Comment

                  Working...
                  X