From Civilization Modding Wiki
Revision as of 23:01, 20 May 2009 by Ginger Ale (talk | contribs)
Jump to navigationJump to search

The Audio2DScripts file defines the primary background and foreground sounds for each screen and playing attribute. These include the music for the opening, map and diplomacy screens and the primary background for the city screen. Foreground sounds include those for tech discoveries, structure and unit builds, and mouse clicks.

All tags must be opened and closed; the first is the "open", the second the "close" tag. If nothing goes inside a "list tag", then it should just be the opening tag with a "/" before the closing bracket. The following tables contain all available tags, as well as their purpose and accepted values.

This page is missing information. Do not remove this notice until it is complete.



Tag Name Description
ScriptID This is the name of the sound object used by the Audio2D script. This ID is used in CIV4LeaderHeadInfos, AudioSoundscapeScripts and by Python CyAudioGame.Play2DSound() function. The IDs are prefixed with AS2D_ for easier identification and followed by the filename.
SoundID Implemented in AudioDefines to retrieve the sound file.
SoundType Indicates which volume slider to use under Game Options -> Audio AMBIENCE, INTERFACE, MUSIC, SFX or SPEECH. These are prefixed with GAME_ for easy identification. Values are defined in AudioDefines.


All of these tags have a numerical value. Though it sometimes can be negative, it usually is not.

Tag Name Description
iMinVolume Minimum volume to play this sound. Values are from 0 to 100.
iMaxVolume Maximum volume to play this sound. Values are from 0 to 100.
iPitchChangeDown unknown. Set to 0.
iPitchChangeUp unknown. Set to 0.
iMinLeftPan unknown. Set to -1.
iMaxLeftPan unknown. Set to -1.
iMinRightPan unknown. Set to -1.
iMaxRightPan unknown. Set to -1.
iMinTimeDelay unknown. Minimum time in delay playing sound. Values in milliseconds.
iMaxTimeDelay unknown. Maximum time in delay playing sound. Values in milliseconds.
iLengthOfSound unknown. Set to 0.
iNotPlayPercent unknown. Set to 0. (Beyond the Sword only)


All of these can either be 1 (on, or true) or 0 (off, or false). Be careful, as you can wind up with a double-negative, which the game will interpret as "True".

Tag Name Description
bLooping Indicates whether the sound will "loop" (repeat indefinitely).
bTaperForSoundtracks unknown. Set to 0.


Tag Name Description
fMinDryLevel unknown. Set to 1.0.
fMaxDryLevel unknown. Set to 1.0.
fMinWetLevel unknown. Set to 0.0.
fMaxWetLevel unknown. Set to 0.0.


In the following example of code, please note that there is a specific order of all of the tags. You must list the tags in this order for the game to properly interpret your file.