[0.10.2] Error during event handler

This subforum contains all the issues which we already resolved.
arl85
Fast Inserter
Fast Inserter
Posts: 182
Joined: Tue Jun 10, 2014 7:08 am
Contact:

[0.10.2] Error during event handler

Post by arl85 »

Mission #4 of campaing
On death (in my case I think I died killed by standing too close to an exploding mine) attached message appeared.
I tried again reloading and dieing the same way and the same message appeared.
Error.png
Error.png (211.17 KiB) Viewed 1290 times
Indicated line shows

Code: Select all

condition = function() return game.player.character.getitemcount("small-plane") >= 1 end
Rahjital
Filter Inserter
Filter Inserter
Posts: 435
Joined: Thu May 29, 2014 10:44 am
Contact:

Re: [0.10.2] Error during event handler

Post by Rahjital »

Looks like the devs skipped proper safety checks in the level's control code. :)
slpwnd
Factorio Staff
Factorio Staff
Posts: 1835
Joined: Sun Feb 03, 2013 2:51 pm
Contact:

Re: [0.10.2] Error during event handler

Post by slpwnd »

This has been fixed in the past already. Nor sure what version in, but if you checkout the code of level4 lua in the data/base/campaigns/beta/level-04/control.lua there is no character in the query, just player. I guess you started the mission before the fix.

To fix the issue in your case I would suggest:

Code: Select all

game.reloadscript()
This should load the new (fixed) code.
Post Reply

Return to “Resolved Problems and Bugs”