Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Soundpacks

A soundpack can be installed in the data/sound directory. It has to be a subdirectory that contains at least a file named soundpack.txt. It can include any number of json files which add any number of sound_effect or playlist.

soundpack.txt format

The soundpack.txt file format needs 2 values, a NAME and a VIEW. The NAME value should be unique. The VIEW value will be shown in the options menu. Every line starting with a # is a comment line.

#Basic provided soundpack
#Name of the soundpack
NAME: basic
#Viewing name of the soundpack
VIEW: Basic

JSON format

Sound effects

Sound effects can be included with a format like this:

[
  {
    "type": "sound_effect",
    "id": "menu_move",
    "volume": 100,
    "files": [
      "nenadsimic_menu_selection_click.wav"
    ]
  },
  {
    "type": "sound_effect",
    "id": "fire_gun",
    "volume": 90,
    "variant": "bio_laser_gun",
    "files": [
      "guns/energy_generic/weapon_fire_laser.ogg"
    ]
  }
]

Adding variety: If for a certain id’s variant multiple files are defined, they will be chosen at random when variant is played.

The volume key may range from 0-100.

Cataclysm has its own set of user-controllable volumes that will additionally affect the sound. These range from 0-128, and the default is 100. This means that at default volume, any sound that Cataclysm plays will default to playing at about 78% of the maximum; if you are working on sounds in an external audio editor, expect Cataclysm at default volume settings to play that sound file back more-quietly than your editor does.

Preloading SFX

Sound effects can be included for preloading with a format like this:

[
  {
    "type": "sound_effect_preload",
    "preload": [
      { "id": "fire_gun", "variant": "all" },
      { "id": "environment", "variant": "daytime" },
      { "id": "environment" }
    ]
  }
]

"variant": "all" will be treated specially and load all variants of the given id.

Warning

"variant": "all" uses unoptimal algorithm (because the dev was dumb and lazy and used hacks) and will slow down game loading time.

If "variant" is omitted, it defaults to "default".

Playlist

A playlist can be included with a format like this:

[
  {
    "type": "playlist",
    "playlists": [
      {
        "id": "title",
        "shuffle": false,
        "files": [
          {
            "file": "Dark_Days_Ahead_demo_2.wav",
            "volume": 100
          },
          {
            "file": "cataclysmthemeREV6.wav",
            "volume": 90
          }
        ]
      }
    ]
  }
]

Each sound effect is identified by an id and a variant. If a sound effect is played with a variant that does not exist in the json files, but a variant “default” exists, then the “default” variant is played instead. The file name of the sound effect is relative to the soundpack directory, so if the file name is set to “sfx.wav” and your soundpack is in data/sound/mypack, the file must be placed at data/sound/mypack/sfx.wav.

Sound effects list

A full list of sound effect id’s and variants is given in the following. Each line in the list has the following format:

id variant1|variant2

Where id describes the id of the sound effect, and a list of variants separated by | follows. When the variants are omitted, the variant “default” is assumed. Where the variants do not represent literal strings, but variables, they will be enclosed in < >. For instance, <furniture> is a placeholder for any valid furniture ID (as in the furniture definition JSON).

# open/close doors