|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0000342||Cheat Engine||public||2014-09-05 03:44||2014-09-06 12:57|
|Assigned To||Dark Byte|
|Summary||0000342: In Lua, getAddress/inModule can return errors that pcall() cannot catch|
|Description||I am trying to find some addreses which do not always exist, as the target is a .NET program and the functions are only JIT'd when they are called.|
If I try to call getAddress or inModule to find whether they exist, I get the error:
Error:Failure determining what asdf means
Script execution is then halted, and if the script is run automatically with the table, cheat engine immediately closes and takes the debugged program with it.
I tried catching this error with popen, as explained in http://www.lua.org/pil/8.4.html , and while popen can catch errors I throw myself, it cannot catch the errors that getAddress or inModule throw.
With this bug, I can't periodically check for if the functions appear later, and have to ensure that every function my script wants to debug has been called before I load my cheat table with the lua script in it.
|Tags||No tags attached.|
Dark Byte (developer)
|Call errorOnLookupFailure(false) so the lookup will result into address 0 instead of erroring out|
|Ah, yep. That works fine, thanks. I've updated the wiki to include this function in the Lua function list, and added references to it in getAddress and inModule so hopefully no one else checking the wiki will get caught by this.|
|2014-09-05 03:44||ThisIsADogHello||New Issue|
|2014-09-05 18:24||Dark Byte||Note Added: 0000692|
|2014-09-05 18:24||Dark Byte||Status||new => feedback|
|2014-09-05 22:31||ThisIsADogHello||Note Added: 0000693|
|2014-09-06 12:57||Dark Byte||Status||feedback => resolved|
|2014-09-06 12:57||Dark Byte||Resolution||open => fixed|
|2014-09-06 12:57||Dark Byte||Assigned To||=> Dark Byte|