 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
Stacktrace Expert Cheater
Reputation: 1
Joined: 04 Jul 2015 Posts: 105
|
Posted: Sun Jul 03, 2016 1:59 am Post subject: how can I do this without crashing? |
|
|
I'm trying to make a hack for this game but I need to take the value of the register EAX and move it into my codecave so I can use it into another function.
//Codecave: KERNEL32.PssWalkSnapshot+71E
"Game"+11AD10:
push ebp
mov [KERNEL32.PssWalkSnapshot+71E],eax
ret 000C
Basically...
For this game, there are objects.. When you hover your mouse cursor over them you'll get their function in the register EAX which makes you able to have control over them..
Let's say there's a little brick part, I take my mouse on top of it and it'll put that part's function into EAX, if there's for example another brick wall another place, if I take my mouse on top of it I'll get another object of it in EAX which is the function.
I am then able to call a function the game already uses that is called "Delete" If I overwrite the function that runs when you put your mouse cursor on top of a part and make it call Delete it'll remove any parts in the game my mouse hovers over.. But I want to make this into a on-click hack! so all parts won't dissapear when I move my mouse around.. Ok so I've found a function that runs when you click with your mouse button. I now want to overwrite that function into moving any part function it gathers when I put my mouse on top of a part into the register EAX in that click function then have it call Delete once I click.. But I'm crashing because those assembly instructions I gave you doesn't work.. I'm ASM handicapped! |
|
Back to top |
|
 |
cooleko Grandmaster Cheater
Reputation: 11
Joined: 04 May 2016 Posts: 717
|
Posted: Sun Jul 03, 2016 2:17 am Post subject: |
|
|
globalalloc(hItem,8)
In first function, mov [hItem], eax
in second function, use [hItem], instead of eax
So essentially, you hook both of the functions, and for the first functions, you dont remove the original code, just supplement it with one line to save the obj.
in the click code, you can then use that object for the delete |
|
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
|
|