Hi Codeans,
We are in the last stages of testing our game and one of our testers is hitting an occasional strange issue…
We register some C functions with Lua via an AddOn which is used to link our AI system, written in C with the Codea/Lua front-end…
Occasionally our tester finds the game crashes with an error showing that the C functions are no longer registered and Lua throws a ‘nil’ error that the function is no longer there…
Unfortunately we developers have been unable to reproduce this…
It can be simulated by hitting the circular restart button in Codea which seems to restart the Lua VM without invoking the Objective C ‘framework’ that calls the ‘didCreateLuaState’ method which in turn does the function registration into Lua, but our tester swears he is not doing this…
So it appears that under some circumstance this can happen in the released version…
We’ve tried reproducing by putting the app into background, overloading touches etc. but no luck…
Anybody any ideas…this is fairly esoteric…
@Simeon, any expert guidance here?
Cheers,
Brookesi