WoW Memory EditingWoW Memory Editing for learning purposes only.
This section is more advanced than others on MMOwnedRead the section specific rules, infractions will be given out if u break them!That is including the expectations! - If you don't meet them then don't post
Is anyone willing to share how you call the LUA functions that so many people link? I've looked at gamedeception, but they don't really say. I would just like a simple sample or explanation. Ex, the patch you have to do to run them, if you have to do it for each func. you use. Just a question.
Donate to remove ads, get your "DONATOR title, and get access to the MMOwned community's elite Shoutbawx.
You don't do a patch to run functions, you do a patch to register functions, then another to unprotect functions designed for Blizzard's UI components only.
Also, look in my 3.0.2 thread for CGameLua__DoString. That's the function you use to execute a LUA string (and hence call any functions etc).
__________________
[Only registered and activated users can see links. ]
Results of MaiN getting trolled in regards to mixing managed and unmanaged code:
Quote:
(4:25:36 PM) MaiN: I really don't care what you think
(4:25:41 PM) Cypher: rifk
(4:25:42 PM) Cypher: trolled
(4:25:47 PM) MaiN: no seriously
(4:25:50 PM) MaiN: I never have
Ok, for example. How would you call ExitGame()? I wrote a dll that has a naked function to call it, I'm gonna do a few things and see if it works... If it doesn't I'll edit this post and paste my code.
[Only registered and activated users can see links. ]
Results of MaiN getting trolled in regards to mixing managed and unmanaged code:
Quote:
(4:25:36 PM) MaiN: I really don't care what you think
(4:25:41 PM) Cypher: rifk
(4:25:42 PM) Cypher: trolled
(4:25:47 PM) MaiN: no seriously
(4:25:50 PM) MaiN: I never have
Okay. I'm trying to learn this, but it's confusing. Are there any arguments you have to pass to the function? Or is it straight forward calling the function? Woot, just got it to work. Sorry for the silly question.
You pass a lua string as an argument to the CGameLua__DoString function and it'll be executed by the games lua engine...
You could ofcours call the LuaC_Functions directly, you'd just need to reverse them and find their position, there's a post about finding them on gamesdeception I'm pretty shure that's what you wanted to do ^^
Xarg0. Afaik you'll also need to manage the LUA stack yourself for the functions you call if you choose to do that.
__________________
[Only registered and activated users can see links. ]
Results of MaiN getting trolled in regards to mixing managed and unmanaged code:
Quote:
(4:25:36 PM) MaiN: I really don't care what you think
(4:25:41 PM) Cypher: rifk
(4:25:42 PM) Cypher: trolled
(4:25:47 PM) MaiN: no seriously
(4:25:50 PM) MaiN: I never have
You don't need to bother with that, there are a lot of free to use cpp classes out there to simplyfie calling a LuaC_Function inside cpp code, I'm currently aware of the name but there's one licenced under the lgpl wich even allows yout to use it in comercial programms, as long as it's only a small part of the programm.
Huh? You don't need ANY 3rd party software. My point is you'll need to manage WoWs internal stack, you can do that with a typedef, a void* and WoWs internal lua routines, but its much easier to just pass it to DoString.
__________________
[Only registered and activated users can see links. ]
Results of MaiN getting trolled in regards to mixing managed and unmanaged code:
Quote:
(4:25:36 PM) MaiN: I really don't care what you think
(4:25:41 PM) Cypher: rifk
(4:25:42 PM) Cypher: trolled
(4:25:47 PM) MaiN: no seriously
(4:25:50 PM) MaiN: I never have
How do you find the current DoString() function? I just installed IDA, so I'd be curious how I could start taking advantage of it also...
Find the function that implements the RunScript Lua call (very easy to do, since all such [Only registered and activated users can see links. ] are registered in string/function ptr tables). RunScript is just a thin wrapper around DoString (the only other thing it does it get the string argument from the lua stack and convert it to a char* using lua_tostring).
Do you(how?) get the return value of Do_String ? or is it void?
Errr, open up IDA and take a look?
__________________
[Only registered and activated users can see links. ]
Results of MaiN getting trolled in regards to mixing managed and unmanaged code:
Quote:
(4:25:36 PM) MaiN: I really don't care what you think
(4:25:41 PM) Cypher: rifk
(4:25:42 PM) Cypher: trolled
(4:25:47 PM) MaiN: no seriously
(4:25:50 PM) MaiN: I never have