Hi Folks,
new Offsets for Version 1.1.1
REGISTER_C_CLOSURE 0x882E40
LUA_BASE_PTR [0xF06F68]+0x0C
ENTITY_BASE_PTR 0x00D0AC14
PLAYERBASE 0xd0ae18
enjoy
Apollo
Hi Folks,
new Offsets for Version 1.1.1
REGISTER_C_CLOSURE 0x882E40
LUA_BASE_PTR [0xF06F68]+0x0C
ENTITY_BASE_PTR 0x00D0AC14
PLAYERBASE 0xd0ae18
enjoy
Apollo
If you don't mind me asking, whats @ the closure and LUA addresses?
I checked the lua but all I found was some sort of flag; I didn't check the closure address..
Hi,
You need the LUA_BASE_PTR and the REGISTER_C_CLOSURE function to patch your own C functions into the LUA world of the game api. In this way I implement many "useful" API functions for my LUA addons ...
Example: (Pseudocode)
push 1
push "NameOfMyFunction"
push AddressOfMyFunction
push [[LUA_BASE_PTR]+0x0c] ; address of global LuaState
mov eax,REGISTER_C_CLOSURE
call eax
Greetings
Apollo
Last edited by apollo0510; 02-25-2009 at 07:05 AM.
Ah, I see now. Sounds actually interesting; Thanks for clearing that up, +rep.
Actually
[LUA_BASE_PTR] is a pointer to a class called CMythicInterface and at offset 0x0c there is pointer to a LuaPlus Member object. War is using LuaPlus.
+ rep
am also wondering if these addresses are still valid, i am currently using 1.2 and when i wrote the player base into cheat engine it did not find anything, is it a pointer ? if so also tried to manually add it and it said it go to address 00000c4
little clarification would be greatly appreciated
(my bad i meant to post in 1.2 offsets, thats the one that i used)
ENTITY_BASE_PTR 0x00D0AC14 = array of bytes ???? i dont get it, anyone cares to explain ?
Last edited by kolis764; 03-25-2009 at 09:42 PM.
no, they arnt. The pointers have changed, and even some of the structures have.