Page 1 of 1

[0.9.8] attempt to index field 'character' (a nil value)

Posted: Sat May 03, 2014 2:37 pm
by TST
Right when I died I got this error. This is the first time I got it and I've died several times before. Looks like a multithreading issue.

Code: Select all

Notice
Error 2 while running the event handler:
.../factorio/saves/mission_new_beginning_1.zip|control.lua:279: attempt to index field 'character' (a nil value)
Here's the relevant part of control.lua.

Code: Select all

storytable =
{
  {
    [...]
    {
      condition = function() return game.player.character.getitemcount("small-plane") >= 1 end, // Line 279
    }
    [...]
  }
}

Re: [0.9.8] attempt to index field 'character' (a nil value)

Posted: Sat May 03, 2014 4:13 pm
by kovarex
Thank you for the report, it seems like an easy thing to fix, we will take a look at it before the 0.10 release.

Re: [0.9.8] attempt to index field 'character' (a nil value)

Posted: Sun Jun 01, 2014 4:57 pm
by slpwnd
This will be fixed in 0.10.0.