Page 1 of 1

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

Posted: Tue May 19, 2020 3:36 am
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]

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

Posted: Tue May 19, 2020 12:28 pm
by TimFun13
Try an [URL='https://fearlessrevolution.com/threads/6637/'][U]AOB scan[/U][/URL].

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

Posted: Tue May 19, 2020 5:09 pm
by MartaLabieniec
This is Asphalt 9 game?