Underspace

Underspace

Not enough ratings
Custom Music Player Guide
By Trainwiz
Underspace has support for an in-game music system that lets you override the existing soundtrack with your own, as well as swap between channels. Here's how it works!
   
Award
Favorite
Favorited
Unfavorite
Overview
To start, you need to first locate the appdata folder for Underspace. For Windows, this can be found in AppData/LocalLow/Pastaspace Interactive.

Create a folder within this directory and name it "Music". Within the music folder you can then create additional folders. Each folder within the Music folder is considered its own radio channel. You can swap between these radio channel folders in game using the plus (+) or minus (-) keys by default.

The red underline is the folder itself, the green highlighted folders are radio channels.

Within each radio channel folder you can place a.ogg, or .wav file and the radio channel will recognize it as a song and play it when activated.
Due to how the importer works, music MUST be in signed 16 or 32-bit PCM encoding, otherwise it won't import. Audacity can help with this.

However you can also specify subfolders within the radio channel folder. Any music placed in these folders will play in matching situations, these are:

AMBIENT: Music in this folder will play in nebulas, asteroid fields, and space stations.
BATTLE: Music in this folder will play during combat.
BOSS: Music in this folder will play during bossfights, starchases, and climatic situations.
DANGER: Music in this folder will play when hostiles are near, but not yet engaged.
EXPLORE: Music in this folder will play when exploring open space.

The files in orange would play randomly, any files in the blue folders will play in specific scenarios.

Once in game, pressing the plus (+) or minus (-) keys will cycle through your radio stations. You can see the current radio station that's active in the top right corner.


TROUBLESHOOTING
.wav and .ogg can be finnicky with Unity's audio streaming systems. If you load the game and you see the words "NO VALID MUSIC" this means the format is wrong. Again, you need to check the format.

And that's it! Enjoy space music in space.
19 Comments
Zeke & Sil 30 Jun, 2024 @ 8:11pm 
Nothing like that, no.

The Freelancer once seems the most stable, and it's actually parted out into the different situation folders (e.g. AMBIENT, BATTLE, etc). But that seems like a coincidence.
Trainwiz  [author] 30 Jun, 2024 @ 6:55pm 
It shouldn't be, I used a macro for mine. Make sure there's no other files in the directory too (no zip files or anything)
Zeke & Sil 30 Jun, 2024 @ 6:53pm 
Ugh. I wish I could just find the problem and have my radio work.

Converted everything to .OGG using an Audacity Macro. Same results.

Is it possible that, because I'm doing it through a macro, it's not being signed in PCM encoding?
Zeke & Sil 29 Jun, 2024 @ 9:32am 
Tested some more. It's very sporadic. Sometimes things will play on the first go, sometimes I'll hear the first couple notes of each song as it rapidly cycles through. Issue seems to occur most when first turning on the radio or when switching stations. It tends to continue flipping through songs of previous stations, then stop on a song from a station I'm no longer set to but actually playing the right song for that station.

I just had it play through ~2 songs fine before the problem started again, which further muddies the waters.

Tried the Freelancer tunes from the other guide, which are OGG instead of WAV and they are more consistent so far.
Zeke & Sil 27 Jun, 2024 @ 8:50pm 
I hadn't gone that in-depth yet, no. Just station folders at the moment. Flew around for a while, tried again at the edge of a Nebula and it's working now. Maybe it's expecting to access the music faster than it's being retrieved or something?
Trainwiz  [author] 27 Jun, 2024 @ 8:23pm 
Do you have folders defined for each music situation?
Zeke & Sil 27 Jun, 2024 @ 8:11pm 
Correction: It worked fine inside a station, then I left and it all went to hell again.
Zeke & Sil 27 Jun, 2024 @ 8:10pm 
I tried doing what another comment said of moving the audio to another drive, because my C: is already pretty crowded. Works fine now!

I'd already run it through Audacity to turn everything into WAV because all I had were FLAC and MP3's
Trainwiz  [author] 27 Jun, 2024 @ 7:40pm 
When that happens it means the format is incorrect, generally running it through audacity may help.
Zeke & Sil 27 Jun, 2024 @ 7:36pm 
I gave this a try, and it rapidly cycled through EVERY song on the radio station, playing nothing and slowing my PC to a crawl.