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
Noobzor
Noobzor
Posts: 7
Joined: Sat Jun 23, 2018 3:42 pm
Reputation: 1

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]

TimFun13
Expert Cheater
Expert Cheater
Posts: 1353
Joined: Fri Mar 03, 2017 12:31 am
Reputation: 7

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

Post by TimFun13 »

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

MartaLabieniec
Expert Cheater
Expert Cheater
Posts: 312
Joined: Sat Oct 06, 2018 3:19 pm
Reputation: 137

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: No registered users