Jump to content

Gloomerang causes player data corruption if it's on cooldown during a save


loganpea
  • Fixed


I caught someone encounter this during a twitch stream by sheer luck, and I was able to reproduce it. It is definitely a save and load issue with the Gloomerang being on "cooldown" during a save.
Update: This function is probably responsible for the issue; it's trying to save math.huge cooldown... (line 216 in voidcloth_boomerang.lua)
local function OnProjectileCountChanged(inst)
    if #inst._projectiles >= inst.max_projectiles then
        inst.components.rechargeable:Discharge(math.huge) --This is probably why it's corrupted!
    else
        inst.components.rechargeable:SetPercent(1)
    end
end

 


Steps to Reproduce

Throw all 3 projectiles from the Gloomerang, until it is on cooldown, then have the game save by any means. The game does not like this, so it throws out all of the player data if you load the save.

  • Like 2
  • Thanks 1



User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.


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