Jump to content

Recommended Posts

  • Solution
Posted (edited)
19 hours ago, Maisa Kuutonen said:

Hi! I'd like to make a mod for myself that replaces some of the music files. How can I do this? Try to explain step by step like I was a child.๐Ÿ˜…

Somebody prepared a template for this case:ย https://mods.vintagestory.at/templateformusicadditions

Starting with this will make it a bit easier. Download and unzip the file. Follow the instructions till "Navigate to ...".

Now you write "replace some files". If you really just want to replace a couple of files, it'll be much easier to not use the subfolder as done in the template, but to overwrite the default Vanilla music files. This is rather crude, but is much easier than writing a patch that surgical removes some music tracks from the musicconfig.json file (which essentially contains the playlist).

In this case navigate to the installation folder of Vintage Story -> assets -> survival -> music, write down the names of the music files you want to replace, add your music files straight into the music folder of the Music Pack Template (not the subfolder) and name them accordingly. In the example below I would replace the original daylight.ogg file with my own custom one.

Spoiler

3396_Vm8Qp3Ea3tNolTIw68FQ.thumb.png.da5efa9cb4c422a762a0182656e752e3.png

After you have done this with all the tracks you want to replace, skip to the last step of the template guide and follow it. Unless you are not interested in sharing the mod - zipping the files just makes the sharing easier. The game doesn't require zip files to recognise mods.

If you want to replace all music files, you can essentially follow the template guide, with the small addition of changing a little detail in your "musicconfig.json". Replace the wordย addmerge with replace. This will overwrite the original musicconfig (or playlist), instead of just adding to the end of it.

If you do not want to replace any music, but rather just add to the Vanilla playlist you can follow the whole template guide step by step.

If you have any questions, feel free to ask them either here or in the mod page - the latter would help the author to improve the template, but either is fine to me.

In case you are asking yourself, why the Vanilla music is contained in a "survival" folder but your music files are in a "game" folder - good question and eyes. That's because "game" on the mod side acts like an all-encompassing stand-in for all folders in the Vintage Story directory.

Edited by Brady_The
  • Like 1
ร—
ร—
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.