Heya,
I'm currently having huge problems of getting the Lua function doString to run.
I'm using C# and the fasm_managed library to inject asm code into the WoW process.
Here is the code I was using pre 3.1.1 which was working without any problems:
Code:
void doString(string luaString)
{
int nSize = 0x100 + luaString.Length;
uint cave = AllocateMemory(nSize);
Writer.String(cave + 0x100, luaString);
fasm.Clear();
UpdateObjectManager();
fasm.AddLine("push 0");
fasm.AddLine("mov eax, " + (cave + 0x100));
fasm.AddLine("push eax");
fasm.AddLine("push eax");
fasm.AddLine("call 0x0049AE70");
fasm.AddLine("add esp, 0xC");
fasm.AddLine("retn");
SuspendThread();
fasm.InjectAndExecute(codeCave);
ResumeThread();
}
Sadly since 3.1.1 it seems to be broken, I updated all offsets (lua_doString and the objectManager one).
Am I missing something?
Would be great to receive some hints...