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

This subforum contains all the issues which we already resolved.
Post Reply
TST
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat Apr 26, 2014 9:50 pm
Contact:

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

Post 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
    }
    [...]
  }
}

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

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

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

slpwnd
Factorio Staff
Factorio Staff
Posts: 1835
Joined: Sun Feb 03, 2013 2:51 pm
Contact:

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

Post by slpwnd »

This will be fixed in 0.10.0.

Post Reply

Return to “Resolved Problems and Bugs”