Page 1 of 1

Disabling Space Age music?

Posted: Mon Dec 02, 2024 1:20 pm
by EightBeats
Hey folks,

I've been working on my own music replacer mod.
I have successfully - and painfully - integrated my own soundtrack into the game, with the correct music playing on the correct planets.

However, I can't seem to be able to disable Space Age's soundtracks for the new planets. Their OST still plays even after adding

Code: Select all

data.raw["ambient-sound"] = {}
to my code.
I did manage to disabling the new music by directly editing the ambient-sounds.lua located in the space age folder, but I'm looking for a solution that doesn't involve directly editing game files.

Any pointers for this?

Re: Disabling Space Age music?

Posted: Mon Dec 02, 2024 10:56 pm
by Silari
Remember that Space Age is itself a mod, so mod load order matters. It's probably loading AFTER your mod, so you clear out ambient-sound, then SA adds it's stuff. Add an optional dependency to Space Age to ensure yours loads after.

Ran into the issue with Asteroid Mining, as SA clobbers the rocket silo effects by overwriting it wholesale instead of just making the changes it needs.