I’m working on building a C++ hook into a game that uses a Lua 5.1 interpreter internally for game functions. Currently, I’ve identified the common functions that I can use to get the internal lua state (lua_State) however I don’t really know where to start on for passing expressions to the interpreter.
I’m looking for functionality similar to python’s exec()
, which executes the string provided to it. A possible “entry” point to the interpreter, such as an internal console. I’ve looked at luaL_dostring
, though it does not seem present in the executable of the game.
Surasia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.