sorry, I did not see that you already attached it.
Date: 2017-12-22 12h01
I managed to find more or less the place of the bug.
I've changed the event code to:
if ((cmp_obstacle_state("HF-Gate-inner", "opened")) and
(cmp_obstacle_state("HF-Gate-outer", "opened")) and
(has_quest("Open Sesame")) and
(not done_quest("Open Sesame"))) then
end_quest("Open Sesame", _"I found the gates. The firmware server should lay
The values printed to terminal were:
Needless to say, using these savefiles (or not), both gates were open.
Lua syntax also seems to be correct, so the problem is not on events.dat, but at
Therefore, updating the title. (I've did a few debug printfs on the C part of
the code which handles positional events and none of them failed)
I've tested about Spencer's Death but found no bug there, Spencer death will
only trigger an event at Town but this is Game Design fault (that killing him at
level 59 does nothing)
Date: 2017-12-24 17h49
Linking possibly related issue 824.
While not directly connected, both are about identification problems at the same
place (except one ended with a crash, and another one ended with an event not
There is a possibility the bug is related to the obstacles itself and I'm not
looking at the right place (as in: cmp_obstacle_state may be innocent), so I'm
linking both issues for further analysis and study.