Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Why Always value 1st place to 0?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Sat Jan 02, 2016 9:42 pm    Post subject: Why Always value 1st place to 0? Reply with quote

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
View user's profile Send private message
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Sun Jan 03, 2016 12:04 pm    Post subject: Reply with quote

Hellllllp me. Crying or Very sad
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 97

Joined: 14 Jul 2007
Posts: 3338

PostPosted: Sun Jan 03, 2016 2:41 pm    Post subject: Reply with quote

I guess you're patching the wrong address.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4719

PostPosted: Sun Jan 03, 2016 3:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Wed Jan 06, 2016 1:22 am    Post subject: Reply with quote

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
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Wed Jan 06, 2016 4:53 am    Post subject: Reply with quote

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
View user's profile Send private message
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Wed Jan 06, 2016 5:34 am    Post subject: Reply with quote

How?
Bring me an example.
attaching the debugger is into memory viewer?
I want a little more to help.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4719

PostPosted: Wed Jan 06, 2016 10:20 am    Post subject: Reply with quote

++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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites