Page 1 of 1
Headless crashes
Posted: Sun Mar 12, 2017 2:33 am
by badgamernl
I've had some crashes/errors i don't know why, the error in the log files seams weird. I got 3 log files the 3rd has a corrupt game state at the end. I'm using a custom control.lua but didn't have problems before with it, i have been using it for a long time.
Hope the attachments help!
Srry for not too much info.
Re: Headless crashes
Posted: Sun Mar 12, 2017 2:39 am
by Rseding91
Your control.lua is not valid. It's saving references to game objects outside the global table which is what's causing the "corrupt game state detected" error.
Example: line 309 you store a reference to player.character in a variable that isn't in the global table. That means it doesn't get saved correctly and you get the above error.
Re: Headless crashes
Posted: Sun Mar 12, 2017 2:45 am
by Rseding91
Additionally the way you've setup the on-tick handler will cause desyncs for anyone joining since it's going to re-run every time you load the game or join the game in MP.
Re: Headless crashes
Posted: Sun Mar 12, 2017 2:49 am
by badgamernl
The spectate function is not in use
Re: Headless crashes
Posted: Sun Mar 12, 2017 2:53 am
by badgamernl
Ill look into a way to fix the ontick but all the crashes didnt happen before and it was like 2 weeks ago that ive added the on tick
Re: Headless crashes
Posted: Sun Mar 12, 2017 2:55 am
by Rseding91
Do you have a way to reproduce the crash?
Re: Headless crashes
Posted: Sun Mar 12, 2017 2:56 am
by badgamernl
No
Re: Headless crashes
Posted: Sun Mar 12, 2017 2:57 am
by badgamernl
It has been happening when im gone