how would I go about adding custom tracks into the mix of existing stonehearth music? even further how would i add in custom music variants for specific things like the battle music and such? thanks.
You’d need to create a mod that overrides services/client/sound/sounds_service.luac in stonehearth.smod to tell it what music to play if you want to add additional tracks into the mix. You’d also need to create some tracks of the correct format. All the current music is in data/music of the stonehearth.smod and is in .ogg format.
If you just want some different tracks, then you’d still need to convert to .ogg format, but you’d just replace the music files with your own (using the same names).
ok great, thanks. i can’t seem to decompile the luac file, any chance you could help me out there? i’m sure i can get it going but it’s a nightmare to read.
Lua Unminifier. luac is almost exactly the same as uncompiled lua, just with less spacing in it. The lua unminifier does a fair job of fixing the spacing again (it mostly has problems with comments and variable declaration).
Lua Unminifier doesn’t have any save function, but you can just cut and paste back into the original file using a text editor.