Joined: 25 Jan 2006 Posts: 8517 Location: 127.0.0.1
Posted: Sat Dec 08, 2012 11:21 am Post subject:
CE doesn't allow you to call Lua functions from another games Lua engine. It doesn't work like that. Unless you to a handful of hooking and attach yourself into their Lua engine and all that jazz. But by default, CE doesn't do this.
If you just want to call stuff in their Lua engine though, you can do stuff like:
- Find the function address to their Lua engines functions for stuff like:
-- luaL_loadstring / lua_pcall
- Inject a thread to call these functions.
- Ensure you inject and point your function to a string buffer too for the string that you will be using.
Overall it's a lot of work. You're better off finding out what their function does to the raw object and just adjust speed that way rather then messing with their Lua engine stuff. _________________
Thanks Wiccan. I appreciate you taking the time to respond.
The idea behind this was to learn .dll injection. I think I need to take a few steps backwards and get a more solid basic foundation in Lua before I attempt this.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum