How do you add custom sounds to a custom civ that you created?

Drtad

It Stinks!!!
Joined
Mar 16, 2006
Messages
838
How do you add custom music to a custom civ? and also, how do you add the text infos for cities and unique buildings? I am new to this, so please be patient.
 
Drtad said:
How do you add custom music to a custom civ? and also, how do you add the text infos for cities and unique buildings? I am new to this, so please be patient.

much to explain!

lets start with the easy things:

"TXT_KEY_BUILDING_GRANARY" links to the name of the building, if your mod is just for one language just put the name in "Granary"

TXT_KEY_BUILDING_GRANARY_PEDIA links to the Pedia entries of the granary

the city names are in the file Civ4Civilizationinfos.xml if you don't want to use several languages or different city names in different languages just change "TXT_KEY_(...)_PARIS" to "Paris"

Text to which the the TXT_KEY_(...) tags link is in the files in the Text folder (what a sentense!)

The names for Buildings, units and whatever is stored in civ4GameTextInfos_objects.xml
The pedia is in the Civ4Gametext_Civilopedia_(...).xml files

You can put your new Text in the Civ4Gametext_new file as long as you don't use the same texttags twice!! For example: You want to change the pedia of the granary than use TXT_KEY_GRANARY_NEW_PEDIA (or something else) instead of TXT_KEY_GRANARY_PEDIA

:crazyeye:
 
Thank you very much Chamaedrys, that effectively answers two of my three questions.;)
 
O yeah, and by the way, how come nobody has updated the make a civ tutorials to also say how to add music.
 
I know it is possible to make custom sound tags for buildings/units/civs (ive seen it done) but I could never duplicate it with the correct results :mad:


So I did a "trick" to use existing taglines and infos... but creating new sound files... :mischief:

During my experimentations I discovered that there are plenty of sound files in the Tutorial Folder (path = Assets\Sounds\Tutorial folder)


since these sounds are not used unless you load the tutorial mod ....I decided to use these taglines to make my own custom sounds for stuff
(I use them in my mod.... and since you cant load 2 different mods.... you have no problem of interference of common tagline/sound files :goodjob: )

so to make a long story short I backtracked the taglines to these files:

AudioDefines.xml
Audio2dScripts.xml

(path = Assets\XML\Audio)

basically fine the names of the Sound files in the AudioDefines.xml with the TUTORIAL TAGLINE...

For Example:

Find Tutorial tagline AudioDefines.xml:

SND_TUTORIAL_INTRODUCTION_0

note they have this line below it:

Sounds/Tutorial/Tut_01A

Note the Tut_01A (sound file name) for later

then go to Audio2dScripts.xml
and find the SND_TUTORIAL_INTRODUCTION_0 in here

it will have the Script ID:
AS2D_TUTORIAL_INTRODUCTION_0

now this AS2D_TUTORIAL_INTRODUCTION_0 tagline info is can be placed in any Building/Unit/ even Civilization diplomacy sounds


Now whatever sound you want to have this sound to be
move a sound file (can be .wav or .mp3) in this NEWLY CREATED PATH in your GameMod (whatever mod you are using...or create one :) )

path = (YourGameMod)\Assets\Sounds\Tutorial folder

and place that sound file to:

rename to file to Tut_01A and you are good to go :goodjob:

you can replace all the TUT sounds files and repeat this procedure (until you run out of TUT sound files :crazyeye: )


REMEMBER to replace ONLY tutorial sounds (or your get some weird sounds playing for the wrong noise in the game)

The ONLY Catch is that the diplomacy window sounds are looping (until you close em) and the tut sounds are NOT!

To solve this I just edited the soundfile where I put a song in 3 times in the same file so I have over 9 minutes of music... therefore you the music will continue to play for 9 minutes before there is no more sounds but my diplomacy window usually only stays open for 2 mins or less :D


there is an easier way to add custom sounds but I have not figured it out yet...and as you pointed out there is not UPDATED Tutorial out there yet....


the advantages of this "method" all the information is already setup... you just have to create a new sound file and rename it to existing tag info...

THIS INFO is not for WARLORDS Expansion!


Hope that helps ;)
 
Thank you very much officer, I hope this works for Warlords.
 
Drtad said:
Thank you very much officer, I hope this works for Warlords.


Im not sure if it will work...:blush:

However I think it would as long as Warlords didnt add a different file or edit and existing file for the sound info....

The best thing to do is check the new Warlords files and see if any of them change the existing sound info... or add a file to the sound info...

...then incorporate that file(s) in your mod and it should work :goodjob:

sorry I can help you about warlords anymore :sad: but I am waiting for more tutorials/info so I can upgrade my own mod and release it :(

I dont know anything about the warlords expansion to even think about upgrading it.... :eek:

well good luck anyway :king:
 
Sorry. There is no tutorial file in warlords, so I tried to copy the tagline from the Alexander mod sound... But it was in vain. Amra updated his Byzantium mod so I am going to see how he did it. Thanks anyway.
 
Drtad said:
Sorry. There is no tutorial file in warlords, so I tried to copy the tagline from the Alexander mod sound... But it was in vain. Amra updated his Byzantium mod so I am going to see how he did it. Thanks anyway.


damn sorry:sad:

well looks like Im gonna have to find another work around :confused: or actually find out how to add a custom sound :mad:


let me know if you get it working..... :goodjob:
 
Dont know if you still need help with customs sounds...

(AGAIN this has only been tested with Vanilla CIV4... but it should work with Warlords :crazyeye: )

You need to modify two files:


AudioDefines. xml (sets up sound info)
Audio2DScripts.xml (Sets up Build/Construct/Diplomacy Sounds)

path of files:

assets/xml/audio folder


the easiest way is to find an existing building/unit/civ and copy that tag group.... then past it to the end of the tag groups (pay attention because it may not be the end of the file.... watch starting and closing tagline groups)


rename the units/building/diplo taglines

do the same for the other file Audio2DScripts.xml (it is easier because you can put the tagline group at the end of the file! :) )

the only difference with the diplomacy window music is that you need to set
Code:
<bLooping>[COLOR="Blue"]0[/COLOR]</bLooping>
to 1

(this allows the music to loop when it is finished with file :mischief: )


now with the new tagline you defined (<ScriptID>) in the Audio2DScripts.xml file use that tagline info in the corresponding XML file to change the sound

For buildings and wonders it will be in the CIV4BuildingInfos.xml file with this tagline (in your buildings/wonders info group):

Code:
<ConstructSound>[COLOR="Red"]AS2D_BUILD_WALLS[/COLOR]</ConstructSound>

change the AS2D_BUILD_WALLS to your newly defined tagline info

For Units look inside the CIV4ArtDefines_Unit.xml file for this tagline under your new/modified unit:


Code:
<TrainSound>AS2D_UNIT_BUILD_UNIT</TrainSound>


and change that to your newly designated unit sound taglines


for diplomacy look in the CIV4LeaderHeadInfos.xml file, find your civs and any tag that starts like this:

Code:
<DiploScriptId>AS2D

and change to your newly designated tagline info...

NOTE: You can define different Civilization era type music if you wish or use the same music for all eras (this goes for war music too!) :crazyeye:


I have used MP3 files with these characteristics:

Bit Rate 128Kbps
Channels 2 (stereo)
Audio sample rate 44kHz

and they seem to work fine (dont know about other formats... but I think .wav works too :D )


and I think that's it :goodjob:


REMEMBER TO BACKUP YOUR ORIGINAL FILES BEFORE YOU EDIT THEM


Also I think the audio files are finicky so dont add comment taglines like this:

Code:
[COLOR="SeaGreen"]<!-- User Comments -->[/COLOR]


or the game wont load up :sad:

remember to put your sound files in the appropriate folder!

path is assets/sounds folder

and/or subfolders:

Buildings folder
Units folder
Diplomacy folder


well I hope that helps ;)
 
I eventually figured out how to do it by looking painstakingly at Wyz_sub10's Canada mod. I was able to fix some diplomacy sounds for my Armenia mod, at least for one leader so far.
 
Drtad said:
I eventually figured out how to do it by looking painstakingly at Wyz_sub10's Canada mod. I was able to fix some diplomacy sounds for my Armenia mod, at least for one leader so far.


well ignore that post :p
 
Back
Top Bottom