Disabling Space Age music?

Place to get help with not working mods / modding interface.
EightBeats
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon Dec 02, 2024 1:09 pm
Contact:

Disabling Space Age music?

Post 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?
User avatar
Silari
Filter Inserter
Filter Inserter
Posts: 567
Joined: Sat Jan 27, 2018 10:04 pm
Contact:

Re: Disabling Space Age music?

Post 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.
Post Reply

Return to “Modding help”