Page 1 of 1

[0.10.2] Error during event handler

Posted: Sun Jun 29, 2014 4:47 pm
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 1296 times
Indicated line shows

Code: Select all

condition = function() return game.player.character.getitemcount("small-plane") >= 1 end

Re: [0.10.2] Error during event handler

Posted: Mon Jun 30, 2014 8:07 am
by Rahjital
Looks like the devs skipped proper safety checks in the level's control code. :)

Re: [0.10.2] Error during event handler

Posted: Tue Jul 01, 2014 10:18 am
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.