Thread: Module: MemHack
View Single Post
Blackhawk
Member
Join Date: Apr 2005
Old 02-11-2006 , 23:29  
Reply With Quote #28

Then we have maybe anoter bug in this module.....

Ok, i'll show what i think:

The Editor shows the base of the MOD dll running at Hex 01050000
The pointer to the value in question is now at Hex 0127B4E8 +134
So the offset should be Hex(127B4E8 +134 -01050000), giving Hex 22B4E8 or decimal 2274844.

Now it apears the the code below actually works, and the code that should work crashes the server.
Code:
new Pointer = memhack_get_pointer(19379432,MEM_DLLBASE,MEMTYPE_DATA)     new Target  = Pointer + 308     server_print("Memhack get float: %.2f",memhack_get_float(Target,MEM_DLLBASE,MEMTYPE_DATA))

On the other hand, this returns 0:

Code:
    server_print("Memory offset: %d",memhack_get_base(19379432))
Where it should return the base of code. But i am very sure it shouldn't be 0.

So it looks like MEM_DLLBASE, MEM_CODEBASE etc are not accounted correctly, because in this line
Code:
new Pointer = memhack_get_pointer(19379432,MEM_DLLBASE,MEMTYPE_DATA)
MEM_DLLBASE is changeable with MEM_ENGBASE without an effect, meaning the base is always returned as 0.......

I hope you get my point.
__________________
Outpost 104 - last hope for teamplay
Blackhawk is offline