lua, overriding bizhawk-reserved variables #724
Labels
re: Lua API/scripting
Relating to EmuHawk's Lua API (not the Lua Console)
Working as intended (wontfix)
Intended behaviour perceived as a bug, or an unreasonable feature request
confirmed in 1.11.7 and 1.11.8.2
Not sure if this is something you'll look into but here goes.
I had a script active and was editing/saving it while refreshing over and over. At one point I declared
bit=7
and from that point on, when the script needed to use bit.check or bit.clear, it would crash saying that "bit" is a number value. This would persist even after deleting the offending line (it persists through refreshes). But it fixes itself when closing and reopening the lua client. (Only took me half an hour to figure that out)
There might be more issues related to this one (what happens when overriding other bizhawk-reserved variables such as "userdata", "emu", "client" etc.?)
This is also somewhat related to an issue where two different scripts could override each other's values. But I'm not sure if that issue still exists.
The text was updated successfully, but these errors were encountered: