Jump to content

Server Crash when someone transforms/detransforms into Wonkey


Electroely
  • Fixed

Whenever a shadow creature spawns after a player has turned into (or turned back from) Wonkey on a dedicated server (or one with caves), the server crashes.

The crash does not persist if the server is reloaded between the time the player transforms and the time a shadow creature spawns.

What I've been able to gather about this crash is that it mainly happens because ThePlayer is not nil, which it should always be for the server. On top of that, ThePlayer is the transformed player's old character, which has been removed (so ThePlayer is an invalid reference to them). The function ReplicateEntity in scripts/mainfunctions.lua, line 755 might be responsible as _ThePlayer is set to nil, ThePlayer is set to whichever entity is getting replicated, and then the function fails to set ThePlayer back to nil because of the check "if _ThePlayer then". I have not been able to verify this, though.

master_server_log.txt


Steps to Reproduce

- Gather enough cursed trinkets to turn into Wonkey - c_give("cursed_monkey_token",10)
- Spawn a crawling horror or terrorbeak
- Game crash

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

Changed Status to Fixed

Thanks for the info, it was very helpful!  Please let us know if this issue persists after the next patch.

  • Like 1
  • Thanks 2
  • Big Ups 1

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