Page 1 of 1

Simple lua question

Posted: Tue May 30, 2023 3:16 pm
by ZebreNoir
Hello,

To make it short, I am currently developing a Lua executor to assist with modding in Watch Dogs 1. My project involves binding ImGui to Lua, but I'm encountering a rather curious issue. The executor itself works perfectly fine, but when I draw an ImGui window with my script, I call a "Draw" function every render loop using lua_getglobal. Each iteration of the loop, the slider and dragint values are reset, even if I declare them as local variables outside of my function. I tried my injector with my own version of Lua 5.1 in an SDL window, and the binding works perfectly. That's why I'm wondering if it's possible to implement my own version of Lua in my hook and if it's possible to bind the Lua methods of the game in my implementation. Since I don't have much time this week, I wanted to know if you think it's feasible.