A mod for Star Trucker that replaces the build in radio station with your own.
- ♻ Replace songs, adverts and stings with your own files.
- 🤠 Supports most[1] audio formats
- 🎸 Shows title and artists in game if present in file metadata[2].
- 🧒 Easy installation, no modding knowledge required: just drop it in, it will create a folder, you plop in your files and you're done.
- ✏ Configurable:
- Radio station name and frequency can be configured.
- Folder paths can be changed.
- You can also choose to leave the default stings/adverts/songs enabled if you wish.
- More below
[1] if CSCore supports it, we can play it, see full list: https://github.com/filoe/cscore#supported-features
[2] if TagLib supports it, we can read metadata - yadda yadda: https://github.com/taglib/taglib#taglib-audio-metadata-library
Get the MelonLoader installer from their website here and install it to Star Trucker.
Finding the game path:
On Steam, the game can be found by right clicking it > Browse local files.
While installing MelonLoader, choose Star Trucker.exe
.
On GamePass, click the game, click the ...
button, 'manage', files tab, and click 'browse'.
IMPORTANT: While installing MelonLoader on gamepass, you should choose gamelauncherhelper.exe
instead of Star Trucker.exe
(!!!)
Get the latest release from here.
Drop the Mods
folder and UserLibs
folder included in the zip into your game folder, the "game folder" being the path where you just installed MelonLoader into.
-
Start the game, if all went well you should see the following warning message:
-
Close the game.
-
The mod has created a
StarTruckerCustomRadio
folder in your local user's music folder.
You can now add files to theSongs
,Adverts
andStings
folder, once done, restart. You're done.
Every aspect of this mod can be configured through your MelonPreferences.cfg
file located in [Game Dir]\UserData
.
If the file / settings don't exist yet, run the game (with the mod loaded!) at least once.
This mod is feature complete and I'm personally done with it, but some fun ideas you reading this (if you have moderate c# experience) could implement (PR's are welcomed!):
- Make it possible to have multiple radio stations (however, I'm sure the devs of the game will add this themselves at some point though through a DLC or something)
- Web streams so you can listen to real radio from the game.
Currently the files are already streamed from disk so streaming it from network should be fairly simple.
Inspired by the RadioExt mod for CP2077
Media foundation missing (Error while attempting to decode: CSCore.MediaFoundation.MediaFoundationException)
Most of the file formats should work out of the box, however, for some formats the encoding library we use (CSCore) might fall back to encoding libs on your system.
This requires the 'media feature pack' to be enabled in your system, you can find those instructions here.
If that doesn't work, you're probably better off just converting the file to a format we do support.
The game's logic expects there to be at least 10 tracks, the mod will warn you for this (on screen!) if it isn't the case.
This is a problem that could probably be patched out, but not something I really personally care about fixing in the mod as the solution to end users is fairly straight forward.
For my personal goals for this project windows compat is enough, however, PR's are welcome!