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.
Headless crashes
- badgamernl
- Long Handed Inserter
- Posts: 63
- Joined: Sat Aug 29, 2015 4:03 pm
- Contact:
Headless crashes
- Attachments
-
- control.lua
- the control.lua 1 line version
- (15.83 KiB) Downloaded 81 times
-
- control.lua
- the control.lua normal
- (24.27 KiB) Downloaded 70 times
-
- factorio-previous12-3-2017.log
- after rocket launch players said
- (3.44 MiB) Downloaded 74 times
-
- factorio-current11-3-2017.log
- allot of people joined at once and players had a corrupt save or something like that
- (121.8 KiB) Downloaded 75 times
-
- factorio-previous-10-3-2017.log
- people said there were allot of people joining at once
- (1.82 MiB) Downloaded 73 times
Re: Headless crashes
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.
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.
If you want to get ahold of me I'm almost always on Discord.
Re: Headless crashes
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.
If you want to get ahold of me I'm almost always on Discord.
- badgamernl
- Long Handed Inserter
- Posts: 63
- Joined: Sat Aug 29, 2015 4:03 pm
- Contact:
Re: Headless crashes
The spectate function is not in use
- badgamernl
- Long Handed Inserter
- Posts: 63
- Joined: Sat Aug 29, 2015 4:03 pm
- Contact:
Re: Headless crashes
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
Do you have a way to reproduce the crash?
If you want to get ahold of me I'm almost always on Discord.
- badgamernl
- Long Handed Inserter
- Posts: 63
- Joined: Sat Aug 29, 2015 4:03 pm
- Contact:
- badgamernl
- Long Handed Inserter
- Posts: 63
- Joined: Sat Aug 29, 2015 4:03 pm
- Contact:
Re: Headless crashes
It has been happening when im gone