The Binding of Isaac: Rebirth

The Binding of Isaac: Rebirth

Antibirth music+++
This topic has been locked
Fix for Void music restarting each room
If the Music Mod Callback mod is enabled, it conflicts with this mod's method of playing Void music. To fix this, you''ll need to put the following into the main.lua file:

local lastRand = 0 -- If we're using the Music Mod Callback, then just register that when Void plays, play our music instead. -- If MMC is not playing, use the void() function above and run it every frame if MMC then MMC.AddMusicCallback(antibirthmusictripleplus, function(self, trackId) if ModConfigSettings["void stage"] then if MusicManager():GetCurrentMusicID() ~= lastRand then lastRand = VoidMusic[math.random(2, 8)] return lastRand else return lastRand end else return VoidMusic[1] end end, Music.MUSIC_VOID) MMC.AddMusicCallback(antibirthmusictripleplus, function(self, trackID) if Game():GetLevel():GetStage() == LevelStage.STAGE7 and ModConfigSettings["void bosses"] then return Isaac.GetMusicIdByName("The Void Boss " .. math.random(1, 5)) else return nil end end, Music.MUSIC_BOSS, Music.MUSIC_BOSS2) else antibirthmusictripleplus:AddCallback(ModCallbacks.MC_POST_RENDER, antibirthmusictripleplus.void) end

And it will need to replace
antibirthmusictripleplus:AddCallback(ModCallbacks.MC_POST_RENDER, antibirthmusictripleplus.void)
< >
Showing 1-2 of 2 comments
Kwonunn  [developer] 27 Jul, 2022 @ 5:02am 
This has been implemented! It needed a little tweaking to replicate the correct behaviour but this was a huge help. Also rewrote all other functions to make use of the MMC, so if it's installed the mod should now be a lot more performant.
FairlySadPanda 30 Jul, 2022 @ 7:41am 
Awesome, thanks so much! I did a full rewrite myself and was considering releasing it but I'm glad there's no need
< >
Showing 1-2 of 2 comments
Per page: 1530 50