Sorry I never gave you a reply to this, didn't have an answer for you at the time and then it fell off the radar. Hopefully you've already found a good solution to this. If not, here's a hack I threw together for a different thread that includes the Lua functions for manipulating the lua_State: Lua load function seems to expect a second argument. Why? - #17 by dave It's definitely a "could break in a future update" type thing, but I think you're good until we switch to Lua 5.5. And that would possibly break bytecode compatibility so it might be never.
1 Like