Page 1 of 1

deserialization error -> wrong menu -> crash

Posted: Sun Apr 17, 2016 2:44 pm
by StanFear
a bit of context :
I'm currently trying to find a way to work with objects and manage events for my mod,
when playing it works nicely, but when I load a game where my 'mod' is in used I get the folowing error:

Code: Select all

Error while running deserialisation: [string "do local _={data={},events_manager={names={[1..."]:1: attempt to index global 'table1' (a nil value)
(I don't understand why by the way ...)

anyways, the problem apears when I am in game and try to load the save, I get the error.
then I select OK, back (in the loading menu) and arrive to the ingame menu but with the main screen background
selecting Resume returns me to the main menu, restart and quit gamecrash the game (but not with the exact same log)


To reproduce:
  1. use my mod (linked)
  2. start a game
  3. save it
  4. load it -> [error]
  5. select OK
  6. select Back
  7. select quit game or Restart
  8. see the crash happen
my guess is that the game doesn't correctly reenter the In Game state leading to the bug

anyways, here are the crash logs:
factorio-previous.log
crash log of selecting 'exit'
(4.22 KiB) Downloaded 70 times
factorio-current.log
crash log of selecting 'restart'
(4.77 KiB) Downloaded 65 times
the mod I'm working on that leads to the crash:
test_0.0.0.zip
the mod I'm working on
(1.59 KiB) Downloaded 66 times
the checksum from the mod has changed because I removed unnecessary code (one require to a file that I removed since it wasn't used), but the bug still happens on my PC

Re: deserialization error -> wrong menu -> crash

Posted: Sun Apr 17, 2016 2:50 pm
by prg

Re: deserialization error -> wrong menu -> crash

Posted: Sun Apr 17, 2016 4:04 pm
by StanFear
woups, yes sorry !