Slipstream

Slipstream

Not enough ratings
Custom Music For Windows: The Proper Way!
By [RYC] Robin Yrvriff
In this guide, you will learn how to create directories for custom content, format text documents for adding the content, and use freely available software to convert your music into the native format. This comprehensive guide will show step by step how to do what you need.
   
Award
Favorite
Favorited
Unfavorite
You will need...
In order to follow along with this guide, you will need a few different things.
  1. Some music files in some sort of quality, preferably from a reputable source. (Common formats are .mp3, .wav, .ogg, and .flac)
  2. An audio editing software capable of resampling audio and converting formats. (Free option: Audacity[www.audacityteam.org])
  3. Notepad. (Notepad++[notepad-plus-plus.org] is recommended for ease of use and native support of the .JSON format.)
  4. And an understanding on how to create and name new folders.
With these resources, you can begin the process with step 1.
Step 1: File structure
To begin, you will need to navigate to the install folder where steam installed the game. The default location is C:\Program Files (X86)\Steam\steamapps\common\Slipstream but this location can change depending on if you have multiple hard drives configured.


From here, navigate into assets\content


Here is where you will create your first folder. You can name it whatever you like but make sure it is not the same name of any folder already there, and that it has only lowercase letters with no spaces or special characters.


Inside this folder, create another folder named music.

Step 2: Create your audio files.
For this part of the guide, I used Audacity. Be sure to use guides for your own choice software if you do not use audacity.

Select your desired music and open it up in audacity. It should import as 44150Hrz and 32 bit.


If your audio has excess silence at the beginning or end of the waveform, zoom in and select it.


Then delete it to shorten the file length.


This will ensure that your music plays timely and promptly.


After that, export it as Ogg, the format the game uses.


Make sure the right format is selected in the drop down and navigate to the right directory as the save location. Make sure you only use lowercase alphabet characters and the underscore character. In this screenshot, I have already done 4 other songs I selected done and named properly.


Repeat as necessary!

If your music is not at the right sample rate:

This can occur if the song was mastered in an unusual format, ripped from another game, or sampled for higher than usual clarity. You can always check the sample rate beside the waveform when imported into audacity.

Here, the sample rate is not properly set.


Audacity has a built in Resample function.


Select 44150 as the desired sample rate.


One or two brief messages should appear as the resample occurs, depending on the length of the file. After that, verify the sample rate.


Then just follow the previous steps to save the audio file. Repeat as necessary for anything else that has a weird sample rate. Do note that signficantly lower sample rates will have a muffled sound once upsampled due to the nature of audio. If this occurs, you may want to seek out a better recording of your music.

After all that, you should have a healthy amount of custom music tracks in the folder, which means it is time for the last step.

Step 3: Create the Json Files.
This is the critical step to create the necessary files that will tell the game there is stuff here. 2 files will need to be created.

The first is rather easy, as it will not vary any. Navigate back to the custom folder named of your choice.


Open notepad or notepad++ and copy paste the following into it:
{ "Music": "music/music.json" }

The end result should resemble the following. Note the extra enter/return/line break. This is noted in the other Json files.


Save it as info.json and place it in the custom named folder.


Now for the more difficult json, as the names depend on the names of your files, and songs.

Go into the music folder with all of your tracks.


Now get another json going with a new format. Copy paste the middle line for each track and replace the contents between the "<>" with the title of the song and the respective file name for each entry. There should be 1 entry per song.

[ ["<In game song name goes here (Maybe a subtitle too)>", "<filename goes here.>"], ]


Then save it as music.json

Conclusion
At this point, you should be ready to start the game and try out your custom music tracks. If all is well and the game doesn't have any visual anomalies or errors, you should be able to hear your own custom music, complete with your own custom titles on the tapes!

1 Comments
num-cmon 13 Jan @ 4:57am 
Thanks!