Phazorknight / Cogito

Immersive Sim Template Project for GODOT 4
MIT License
799 stars 90 forks source link

Equipped Stuff let it crash on transition, non-equipped works #66

Closed ksjfhor closed 6 months ago

ksjfhor commented 6 months ago

Hey,

in the current Version BETA 202402.04 I found something.

When you have something equipped, like the flashlight or the foam gun, and then move into the transition zone, it crashes with "Invalid call. Nonexistent function 'unequip' in base 'Nil'". When you have nothing equpped it works and you get teleported to the other scene.

It stops on the PlayerInteractionComponent.gd line 161: equipped_wieldable_node.unequip()

I am not sure on how to fix this...

Phazorknight commented 6 months ago

Hey, sorry about this, and thanks for flagging this, this is a pretty new bug.

I can try to attempt a quick fix, but as I'm trying to rework the wieldables a bit (see #5 ), this might take a bit longer.

ksjfhor commented 6 months ago

Hey, no need to be sorry, take your time :)

Phazorknight commented 6 months ago

This should be fixed in BETA 202402.10 This is a bigger update so you might wanna backup your project.