Jump to content

Insanity/Lunacy stingers/audio cues play erroneously when changing sanity mode.


HarmlessTurtle1
  • Pending

The music/stinger/audio cue for going highly insane will play when switching from Enlightenment Mode to Normal Sanity Mode if the player were highly enlightened.

The music/stinger/audio cue for going highly enlightened will play when switching from Normal Sanity Mode to Enlightenment Mode if the player were highly insane.

Read reproduction steps for more details.

 

I have looked into scripts folder out of curiosity of why this happens and three lines in 'scripts/components/sanity_replica' (lines 51,52,53) struck me as odd (I have little/no experience with DST code so disregard this hint if I'm being stupid):

local function OnModeDirty(inst)
    local self = inst.replica.sanity
    if self ~= nil then
        if self._oldisinsanitymode ~= self._isinsanitymode:value() then
            self._oldisinsanitymode = not self._oldisinsanitymode
            inst:PushEvent("sanitymodechanged", {mode = self._oldisinsanitymode})

			if not self._oldissane then -- THESE LINES
				inst:PushEvent(self._oldisinsanitymode and "goinsane" or "goenlightened") -- THESE LINES
			end -- THESE LINES

			if self.classified ~= nil then
				-- force the client to update its sanity state
				self.classified:PushEvent("sanitydirty")
			end
        end
    end
end


Steps to Reproduce

For incorretly playing lunacy_stinger:

1. Lower your sanity below the insanity threshold while Enlightenment Mode is INACTIVE

1.5. Make sure to wait for the stinger cooldown to be off

2. Activate Enlightenment Mode (enter Lunar Island, enter Lunar Grotto, wait for night durnig fullmoon with active rifts, enter moonstorm, etc.)

3. Listen to the music/stinger that usually plays while entering high enlightenment values, depite being nowhere near high sanity/enlightenment.

For incorretly playing gonecrazy_stinger:

1. Raise your sanity/enlightenment above the enlightenment threshold while Enlightenment Mode is ACTIVE

1.5. Make sure to wait for the stinger cooldown to be off

2. Dectivate Enlightenment Mode (leave Lunar Island, leave Lunar Grotto, leave moonstorm, unequip/unupgrade Upgraded Enlightened Crown, etc.)

3. Listen to the music/stinger that usually plays while entering low sanity values, depite being nowhere near low sanity.

  • Like 4



User Feedback


There's also another bug (not much related to this one), that will happen when staying in long periods of insanity/lunacy. Basically the ambient sound will stop for 1 second and then replay, instead of a seamless transition loop.

  • Like 2

Share this comment


Link to comment
Share on other sites



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