Customizing Music in your Mod running CapLab v11.0

Discussions about modding and share your mods with other players in this forum.
Post Reply
User avatar
David
Community and Marketing Manager at Enlight
Posts: 10416
Joined: Sat Jul 03, 2010 1:42 pm
Has thanked: 78 times
Been thanked: 223 times

Customizing Music in your Mod running CapLab v11.0

Post by David »

Capitalism Lab v11.0 allows you to customize music in your mod.

You may also view the webpage version of this article at https://www.capitalismlab.com/add-custom-music/

Instructions:
Extract the file `MUSIC.DBF` from the attached music_example.zip file into your mod's data folder (`MOD_KIT\DATA`).

Note that this is an example MUSIC.DBF file and you would need to edit it based on the actual music tracks of your mod.

When a `MUSIC.DBF` file is present in your mod's data folder, the game exclusively plays the music tracks defined within it. The default soundtrack is completely ignored. This allows for total control over the in-game music.

The `MUSIC.DBF` file has two essential fields:

MusicType: Specifies the location and role of the music track. It can have one of the following values:

ORIGINAL: The track is one of the game's original music files located in the main `Music` folder (`<Capitalism Lab folder>/Music`).
MOD: The track is a custom music file located within your mod's `Music` folder (`<Capitalism Lab folder>/MOD/<Your Mod folder>/Music`).
OPENING-M: Similar to `MOD`, but this track specifically replaces the default music played on the main menu.

MusicFile: The file name of the music file including the file extension (e.g. "MUSIC-01.MP3"). MP3 and OGG music file formats are supported.

Examples:

1. Using a custom mod track:
MusicType = MOD
MusicFile = MagicMusic
This configuration tells the game to play `MagicMusic.MP3` located in `<Capitalism Lab folder>/MOD/Magitek/Music` (assuming your mod folder is named "Magitek").

2. Using an original game track:
MusicType = ORIGINAL
MusicFile = MUSIC-03.MP3

This tells the game to play `MUSIC-03.MP3` from the original game's music directory: `<Capitalism Lab folder>/Music`.

3. Replacing the main menu music:
MusicType = OPENING-M
MusicFile = MyMainMenuTheme.OGG

This will replace the standard main menu music with `MyMainMenuTheme.MP3` from your mod's music directory: `<Capitalism Lab folder>/MOD/<Your Mod folder>/Music`.
Attachments
Music_example.zip
(298 Bytes) Downloaded 24 times
Post Reply