| View previous topic :: View next topic |
| Author |
Message |
sjl002 Master Cheater
Reputation: 0
Joined: 31 Aug 2013 Posts: 305
|
Posted: Sat Jan 02, 2016 9:42 pm Post subject: Why Always value 1st place to 0? |
|
|
Hi.
I'm making any script for 1st place but only change to 0..Hellllllllllp..This is script:
| Code: | [ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov [esi+000000EC],00000001
originalcode:
cmp ebp,[esi+000000EC]
exit:
jmp returnhere
"Baja.exe"+9934:
jmp newmem
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"Baja.exe"+9934:
cmp ebp,[esi+000000EC]
//Alt: db 3B AE EC 00 00 00 |
|
|
| Back to top |
|
 |
sjl002 Master Cheater
Reputation: 0
Joined: 31 Aug 2013 Posts: 305
|
Posted: Sun Jan 03, 2016 12:04 pm Post subject: |
|
|
Hellllllp me.
|
|
| Back to top |
|
 |
Csimbi I post too much
Reputation: 97
Joined: 14 Jul 2007 Posts: 3338
|
Posted: Sun Jan 03, 2016 2:41 pm Post subject: |
|
|
| I guess you're patching the wrong address.
|
|
| Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4719
|
Posted: Sun Jan 03, 2016 3:38 pm Post subject: |
|
|
It might also be that another instruction is writing 0 to it later.
But I find it pretty strange to compare a value against ebp. That probably means either [esi+EC] isn't the value you think it is, or that subroutine didn't set up its stack frame and is using ebp as a general purpose register.
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
| Back to top |
|
 |
sjl002 Master Cheater
Reputation: 0
Joined: 31 Aug 2013 Posts: 305
|
Posted: Wed Jan 06, 2016 1:22 am Post subject: |
|
|
The game name is "Baja 1000".(Size of file : 260 mb).
you can making for me script for move value to 1.
I mean is when write mov [ecx+CE],00000001.The value should to change 1 but change value to 0.
|
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Wed Jan 06, 2016 4:53 am Post subject: |
|
|
| If you completed the tutorial, you would know that attaching the debugger to see what is writing to your address would show you why that is happening.
|
|
| Back to top |
|
 |
sjl002 Master Cheater
Reputation: 0
Joined: 31 Aug 2013 Posts: 305
|
Posted: Wed Jan 06, 2016 5:34 am Post subject: |
|
|
How?
Bring me an example.
attaching the debugger is into memory viewer?
I want a little more to help.
|
|
| Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4719
|
Posted: Wed Jan 06, 2016 10:20 am Post subject: |
|
|
| ++METHOS wrote: | | If you completed the tutorial... |
^ your example. It should be under the help menu in CE. If not, it's in the main CE directory.
If the tutorial doesn't spell out what you need to do enough for you to understand it, here's a topic going through it with pictures:
http://forum.cheatengine.org/viewtopic.php?t=542093
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
| Back to top |
|
 |
|