Page 1 of 1

[Pending] LUA Error when saving

Posted: Mon Jun 13, 2016 8:29 pm
by Kinson
Error:
Error while running the event handler: ...Data/Roaming/Factorio/temp/currently-playing/control.lua:390: attempt to index field 'character' (a nil value)

Looks to me like there is a reference to a table member that has not been created in one of your LUA scripts. This happened as soon as I was killed by some of the enemies.

Re: LUA Error when saving

Posted: Mon Jun 13, 2016 8:45 pm
by daniel34
This has also been reported on the Steam forums: http://steamcommunity.com/app/427520/di ... 564490802/

The map in question is the First Steps campaign, level 3. I've tried to reproduce it a few times but failed.
Line 390:

Code: Select all

game.player.character.get_item_count("submachine-gun") > 0 then
Kinson wrote:LUA Error when saving
Not sure what you mean by 'saving', can you explain that in more detail?

Re: LUA Error when saving

Posted: Tue Jun 14, 2016 9:52 am
by Klonan
Thanks for the report,

Are you playing the campaign map in multiplayer?

Re: [Pending] LUA Error when saving

Posted: Tue Aug 09, 2016 4:30 pm
by daniel34
Duplicate of viewtopic.php?f=11&t=27926, has been fixed in 0.13.8.