Jump to content

Recommended Posts

I made a music mod that replaces most of the ost with TBoI songs, but for some reason all of the songs work, except for celestial champion, warbot, scion, and the possessed bosses, because for some reason it defaulted to the epic ruins theme.

 

GLOBAL.continuous_mode = (GetModConfigData("music_mode")~="busy")

-- Disables Winter/Summer sound muffling
GLOBAL.muffle_mode = (GetModConfigData("muffle_mode"))   -- Special Thanks to Garamonde and others who contributed to this fixed dynamicmusic.lua
if(GLOBAL.muffle_mode == "muffleOff") then
GLOBAL.require("components/dsp")._ctor = function(self, inst) end 
end


GLOBAL.FE_MUSIC = "music_mod/music/music_FE" 

AddClassPostConstruct("screens/redux/pausescreen", function(self) -- Doesn't quite work as well anymore. This needs to be fixed.
    local _Oldunpause = self.unpause
    if self.active then GLOBAL.TheFrontEnd:GetSound():PlaySound("music_mod/music/pause", "pausemenu") end

    function self:unpause()
        GLOBAL.TheFrontEnd:GetSound():KillSound("pausemenu")
        _Oldunpause(self)
    end
end)

Assets = {
	Asset("SOUNDPACKAGE", "sound/music_mod.fev"),
    Asset("SOUND", "sound/music_mod.fsb"),
}

RemapSoundEvent( "dontstarve/music/music_FE", "music_mod/music/music_FE" )

-- Event Music
RemapSoundEvent( "dontstarve/music/music_FE_WF", "music_mod/music/music_FE" )
RemapSoundEvent( "dontstarve/music/music_FE_yotg", "music_mod/music/music_FE" )

-- Sounds that are played in the menus.
RemapSoundEvent("dontstarve/together_FE/DST_theme_portaled", "music_mod/music/DST_theme_portaled")
RemapSoundEvent("dontstarve/HUD/Together_HUD/collectionscreen/music/jukebox", "music_mod/music/jukebox")
RemapSoundEvent("dontstarve/music/gramaphone_ragtime", "music_mod/music/gramaphone_ragtime")

-- Stingers
RemapSoundEvent("dontstarve/music/music_dawn_stinger", "music_mod/music/music_dawn_stinger")
RemapSoundEvent("dontstarve/music/music_dusk_stinger", "music_mod/music/music_dusk_stinger")

-- Danger Music
RemapSoundEvent("dontstarve/music/music_danger", "music_mod/music/music_danger") 
RemapSoundEvent("dontstarve/music/music_danger_winter", "music_mod/music/music_danger_winter")
RemapSoundEvent("dontstarve/music/music_danger_spring", "music_mod/music/music_spring")
RemapSoundEvent("dontstarve/music/music_danger_summer", "music_mod/music/music_danger_summer")
RemapSoundEvent("dontstarve/music/music_danger_cave", "music_mod/music/music_danger_cave")
RemapSoundEvent("dontstarve/music/music_danger_ruins", "music_mod/music/music_danger_ruins")

-- Boss Music
RemapSoundEvent("dontstarve/music/music_epicfight", "music_mod/music/music_epicfight")
RemapSoundEvent("dontstarve/music/music_epicfight_winter", "music_mod/music/music_epicfight_winter")
RemapSoundEvent("dontstarve/music/music_epicfight_spring", "music_mod/music/music_epicfight_spring")
RemapSoundEvent("dontstarve/music/music_epicfight_summer", "music_mod/music/music_epicfight_summer")
RemapSoundEvent("dontstarve/music/music_epicfight_cave", "music_mod/music/music_epicfight_cave")
RemapSoundEvent("dontstarve/music/music_epicfight_ruins", "music_mod/music/music_epicfight_ruins")

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
----[[For each boss, you can add your own music for them individually, but you need to make sure you make the name right for the "music_mod/music/music_...enter name here" for each.]]----
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

RemapSoundEvent("dontstarve/music/music_epicfight_crabking", "music_mod/music/music_epicfight_crabking") -- Crab King

RemapSoundEvent("saltydog/music/malbatross", "music_mod/music/music_epicfight_malbatross") -- Malbatross

RemapSoundEvent("dontstarve/music/music_epicfight_moonbase", "music_mod/music/music_epicfight_moonbase") -- Moon Altar Battle
RemapSoundEvent("dontstarve/music/music_epicfight_moonbase_b", "music_mod/music/music_epicfight_moonbase_b")

RemapSoundEvent("dontstarve/music/music_epicfight_toadboss", "music_mod/music/music_epicfight_toadboss") -- Toad Stool

RemapSoundEvent("dontstarve/music/music_epicfight_4", "music_mod/music/music_epicfight_4") -- Bee Queen

RemapSoundEvent("dontstarve/music/music_epicfight_3", "music_mod/music/music_epicfight_3") -- Dragonfly

RemapSoundEvent("dontstarve/music/music_epicfight_shadow", "music_mod/music/music_epicfight_shadow") -- Shadow Chess Pieces

RemapSoundEvent("dontstarve/music/music_epicfight_5a", "music_mod/music/music_epicfight_5a") -- Klaus Battles 1,2
RemapSoundEvent("dontstarve/music/music_epicfight_5b", "music_mod/music/music_epicfight_5b")

RemapSoundEvent("dontstarve/music/music_epicfight_antlion", "music_mod/music/music_epicfight_summer") -- Antlion

RemapSoundEvent("dontstarve/music/music_pigking_minigame", "music_mod/music/music_monkey_warning") -- Pig King Minigame

RemapSoundEvent("dontstarve/music/music_epicfight_stalker", "music_mod/music/music_epicfight_stalker") -- Stalker Fight 1,2
RemapSoundEvent("dontstarve/music/music_epicfight_stalker_b", "music_mod/music/music_epicfight_stalker_b")

RemapSoundEvent("moonstorm/creatures/boss/alterguardian1/music_epicfight", "music_mod/music/music_epicfight_alterguardian") -- Champion Battles 1,2,3

RemapSoundEvent("moonstorm/creatures/boss/alterguardian2/music_epicfight", "music_mod/music/music_epicfight_alterguardian2")

RemapSoundEvent("moonstorm/creatures/boss/alterguardian3/music_epicfight", "music_mod/music/music_epicfight_alterguardian3")

RemapSoundEvent("moonstorm/characters/wagstaff/music_wagstaff_experiment", "music_mod/music/music_wagstaff_experiment")

RemapSoundEvent("terraria1/common/music_epicfight_eot", "music_mod/music/music_epicfight_winter") -- Eye of Terror (Twins maybe?)

RemapSoundEvent("monkeyisland/warning_music/warning_combo", "music_mod/music/music_monkey_warning") -- Pirate Raid

RemapSoundEvent("dontstarve/music/music_epicfight_daywalker", "music_mod/music/music_epicfight_daywalker") -- Nightmare Werepig

RemapSoundEvent("dontstarve/music/music_epicfight_junkyardhog", "music_mod/music/music_epicfight_junkyardhog") -- Crappy Werepig

RemapSoundEvent("dontstarve/music/music_epicfight_wagboss_1", "music_mod/music/music_epicfight_wagboss_1") -- WARBOT (klei why did you do this)

RemapSoundEvent("dontstarve/music/music_epicfight_wagboss_2", "music_mod/music/music_epicfight_wagboss_2") -- Celestial Scion (**** this boss)

RemapSoundEvent("dontstarve/music/music_epicfight_sharkboy", "music_mod/music/music_epicfight_sharkboy") -- Frostjaw 

RemapSoundEvent("dontstarve/music/music_epicfight_gestalt_mutants", "music_mod/music/music_epicfight_gestalt_mutants") -- Possessed Bosses

RemapSoundEvent("dontstarve/sanity/gonecrazy_stinger", "music_mod/music/music_gonecrazystinger") -- INSANITY!


-- Working Music
RemapSoundEvent("turnoftides/music/working", "music_mod/music/music_work_lunar")
RemapSoundEvent("turnoftides/music/sailing", "music_mod/music/music_work_sailing")
RemapSoundEvent("hookline_2/characters/hermit/music_work", "music_mod/music/music_work_hermit")  -- Unsure if this one works at all. I've tried it, but it isn't very responsive :/

-- Woodie's Transformations
RemapSoundEvent("dontstarve/music/music_hoedown", "music_mod/music/music_hoedown")
RemapSoundEvent("dontstarve/music/music_hoedown_moose", "music_mod/music/music_hoedown_moose")
RemapSoundEvent("dontstarve/music/music_hoedown_goose", "music_mod/music/music_hoedown_goose")

-- Farming Music
RemapSoundEvent("farming/music/farming", "music_mod/music/music_farming")

-- Stage Music
RemapSoundEvent("stageplay_set/bgm_moods/music_happy", "music_mod/music/music_happy")
RemapSoundEvent("stageplay_set/bgm_moods/music_mysterious", "music_mod/music/music_mysterious")
RemapSoundEvent("stageplay_set/bgm_moods/music_drama", "music_mod/music/music_drama")

This is the code that I put into modmain.lua. I used a tutorial from Cagealicious [This Tutorial] to make the mod, although I had to manually add the rest of the themes for the raid bosses. I had to double check all the themes to make sure they werent typo'd or anything, but it still didn't solve it, even after like 5 builds. Does anyone know how to fix it??

Have you checked the TRIGGERED_DANGER_MUSIC table (at the very top of the dynamicmusic.lua file) yet? That needs to be up to date with how Klei has it; Otherwise, everything new that isn't in that mod's own table just defaults to the ruins theme.

image.png.678b5dda373d884c0485b3ad2c3fdd4d.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...