 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
Vitrus How do I cheat?
Reputation: 0
Joined: 02 May 2014 Posts: 1
|
Posted: Fri May 02, 2014 11:19 pm Post subject: Help with module + offset |
|
|
Hi, I'm getting some pointers and offsets values with CE (check attachment).
All the pointers marked with red, are dynamic. How can I add all the offsets values to baseMgrPlusModule for getting the value I want (in this case, the value of 3F2619A8) in C#?
Before I was doing it like this, but now, that 0x00BC415C pointer is DYNAMIC, so not working after restarting game.
| Code: | Memorys mem3 = new Memorys("process");
uint base_address3 = mem3.baseaddress("baseMgrPlusModule");
base_address3 = base_address3 + 0x00BC415C;
uint address3 = (uint)mem3.ReadPointer(base_address3) + 0x4;
address3 = (uint)mem3.ReadPointer(address3) + 0x7C;
address3 = (uint)mem3.ReadPointer(address3) + 0x9C;
address3 = (uint)mem3.ReadPointer(address3) + 0xBC;
address3 = (uint)mem3.ReadPointer(address3) + 0x28;
address3 = (uint)mem3.ReadPointer(address3) + 0x988; |
|
|
| Back to top |
|
 |
Megaladon Newbie cheater
Reputation: 0
Joined: 27 Jun 2013 Posts: 11 Location: Russian Federation
|
Posted: Sun May 11, 2014 12:13 am Post subject: |
|
|
IMHO pointer 0x00BC415C not correct.
Here is the code function, reading pointers, which I wrote for myself.
I do not know C #, but I think you will be able to move on their own code with Lua in C #.
| Code: | baseMgrPlusModule = getAddress('baseMgrPlusModule')
MyPointer = {baseMgrPlusModule, 0x0, 0x4, 0x7C, 0x9C, 0xBC, 0x59C, 0x220, 0x16C, 0x96, 0x54}
function readPointer(offset)
count = #offset --Gets the length of the chain of pointers
print("long chain of pointers = "..count - 1)
for index = 1, count do
if index == 1 then
address = offset[index]
addressstr = string.format('%08X', address)
print("The base address = 0x"..addressstr)
value = readInteger(address) -- on the first pass, receive base address value
valuestr = string.format('%08X', value)
print("Base address value = 0x"..valuestr)
end
if index > 1 then
offset_ = offset[index]
offset_ = string.format('%08X', offset_)
print("offset "..(index - 1).." equal = 0x"..offset_)
address = value + offset[index]
addressstr = string.format('%08X', address)
print((index-1).." pointer refers to the address = 0x"..addressstr)
if index < count then
value = readInteger(address) -- on these passages, we find the values of pointers
valuestr = string.format('%08X', value)
print("pointer value "..(index-1).." equal = 0x"..valuestr)
end
end
end
return address --function returns the address pointed to by this chain of pointers.
end
print(" ")
print("-----------------------------------------------------")
readPointer(MyPointer)
print("------------------------------------------------------")
addressstr = string.format('%08X', address)
print("function returns 0x"..addressstr)
print("------------------------------------------------------")
print(" ")
|
tried to make clear comments
Sorry for my bad english, I'm from Russia... |
|
| Back to top |
|
 |
|
|
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
|
|