Keep in mind music currently has to be in .ogg format. Go to your Spring folder (if you don't know where it is, you can access it through lobby, the path is something like help -> reports -> open data folder or somesuch).
Basic way:
-
Go to `sounds` folder (create if does not yet exist; applies below too).
-
Inside that folder there can be up to 5 folders for various ingame situations: "war", "peace", "victory", "defeat", "briefing". Add the music files to the categories you want the music to play in (if you want a song to play anytime you would need to create a copy in each).
-
You might want to deselect `Settings/Audio/Use included tracks` ingame setting if you dont want the builtin music.
Advanced way (if you want a song to play in multiple situations but dont want extra copies in each folder):
-
place the music anywhere in the Spring folder.
-
create `sounds/music/playlist.lua` which has the following format:
return {
peace = {
"path/to/your/file/relative/to/spring.ogg",
"some/other/file.ogg"
},
war = {
-- etc
},
-- etc
}
-
this overrides everything else so you'd need to place builtin tracks in that config manually if you want them. See here for their names (there are currently no "briefing" tracks; there is a "loading" category which is never used at the moment).