break and trace does not point to correct address in memory viewer

Memory scanning, code injection, debugger internals and other gamemodding related discussion
Post Reply
rydr
What is cheating?
What is cheating?
Posts: 1
Joined: Sat Jun 23, 2018 3:42 pm
Reputation: 0

break and trace does not point to correct address in memory viewer

Post by rydr »

So I have found the address that do the comparison thing using break and trace, and I want to replace the value before the comparison happen.

At the tracer the address is [B]GameName.UI.ItemSlot::LeftClick+2AC [/B]but when I double click on that address the memory viewer shows [B]GameName.UI.ItemSlot::LeftClick+254 [/B]and has different value when I use auto assembler.



Here is the code that i write so far:



[FONT=courier new]//define(address,2CB81E54) <-- [/FONT][FONT=arial][B]this works, but i have to find the address again if i re-run the game.[/B][/FONT]

[FONT=courier new]define(address,GameName.UI.ItemSlot::LeftClick+2AC) <-- [/FONT][FONT=arial][B]this doesn't[/B][/FONT]

[FONT=courier new]define(bytes,83 B8 A4 00 00 00 00)



[ENABLE]



assert(address,bytes)

alloc(newmem,$1000)



label(code)

label(return)



newmem:



code:

push ebx

mov ebx,[eax+000000A8]

mov [eax+000000A4],ebx //#999

pop ebx

cmp dword ptr [eax+000000A4],00

jmp return



address:

jmp newmem

nop 2

return:



[DISABLE]



address:

db bytes

// cmp dword ptr [eax+000000A4],00



dealloc(newmem)[/FONT]



[FONT=arial]So how do I make script that I dont have to find the address again every time I play the game. Thank you[/FONT]

User avatar
TheyCallMeTim13
Administration
Administration
Posts: 1480
Joined: Fri Mar 03, 2017 12:31 am
Reputation: 736

break and trace does not point to correct address in memory viewer

Post by TheyCallMeTim13 »

Try an [URL='https://fearlessrevolution.com/threads/6637/'][U]AOB scan[/U][/URL].

MartaLabieniec
Expert Cheater
Expert Cheater
Posts: 282
Joined: Sat Oct 06, 2018 3:19 pm
Reputation: 115

break and trace does not point to correct address in memory viewer

Post by MartaLabieniec »

This is Asphalt 9 game?

Post Reply

Who is online

Users browsing this forum: Baidu [Spider]