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 


CMP Not working?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
nero1232
Advanced Cheater
Reputation: 0

Joined: 08 Mar 2017
Posts: 65

PostPosted: Sun Mar 12, 2017 5:46 am    Post subject: CMP Not working? Reply with quote

Hi guys,

My CMP isn't working for some reason can anyone see what is wrong:

cheat:
cmp [rbx+0000014],00003653
jne code
mov [rbx+000001A0],(float)-500
jmp return


RBX+14 is a 4 byte value that is 3653 but it always takes the JNE route?
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sun Mar 12, 2017 6:04 am    Post subject: Reply with quote

3653 decimal or hex? If decimal use this:
cmp [rbx+0000014],(int)3653
or
cmp [rbx+0000014],#3653

_________________
Back to top
View user's profile Send private message MSN Messenger
nero1232
Advanced Cheater
Reputation: 0

Joined: 08 Mar 2017
Posts: 65

PostPosted: Sun Mar 12, 2017 6:25 am    Post subject: Reply with quote

mgr.inz.Player wrote:
3653 decimal or hex? If decimal use this:
cmp [rbx+0000014],(int)3653
or
cmp [rbx+0000014],#3653


I am not sure what it is, I have it in cheat engine and in the structure viewer and it shows:

No Description 2008f7229c8 4 bytes 3563

None of the above worked still taking the not equal route, any other ideas?
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sun Mar 12, 2017 6:30 am    Post subject: Reply with quote

cmp qword ptr
cmp dword ptr
cmp word ptr
cmp byte ptr

Maybe is your problem?

Also, you did not answer mgr.inz.Player -- whether or not the value is hexadecimal or decimal.

Looks like decimal, though, which would definitely be a problem.
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Mar 12, 2017 6:31 am    Post subject: Reply with quote

What you just wrote said the value was 3563, not 3653 like you said before.
Make sure you comparing it against the correct value...
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sun Mar 12, 2017 6:33 am    Post subject: Reply with quote

lol Very Happy

The Zanzer 5000 error detection.

Good catch.
Back to top
View user's profile Send private message
nero1232
Advanced Cheater
Reputation: 0

Joined: 08 Mar 2017
Posts: 65

PostPosted: Sun Mar 12, 2017 6:33 am    Post subject: Reply with quote

++METHOS wrote:
cmp qword ptr
cmp dword ptr
cmp word ptr
cmp byte ptr

Maybe is your problem?

Also, you did not answer mgr.inz.Player -- whether or not the value is hexadecimal or decimal.

Looks like decimal, though, which would definitely be a problem.


I am not sure what you mean in the first bit?

I did answer him I said I'm not sure, it only shows 4 bytes and that value, how can I tell if it's hex or dec? Either way I tried comparing both ways and it still doesn't take that route.

What do you think I need to change to make it work?
Back to top
View user's profile Send private message
nero1232
Advanced Cheater
Reputation: 0

Joined: 08 Mar 2017
Posts: 65

PostPosted: Sun Mar 12, 2017 6:34 am    Post subject: Reply with quote

Zanzer wrote:
What you just wrote said the value was 3563, not 3653 like you said before.
Make sure you comparing it against the correct value...


Sorry it is 3653, I was just typing that out and made that error, defo comparing to 3653 and that's whats showing in that address.
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sun Mar 12, 2017 6:43 am    Post subject: Reply with quote

Code:
cmp dword ptr [rbx+0000014],#3653
jne code


If this is not working, then you must be doing something wrong.
Back to top
View user's profile Send private message
nero1232
Advanced Cheater
Reputation: 0

Joined: 08 Mar 2017
Posts: 65

PostPosted: Sun Mar 12, 2017 6:55 am    Post subject: Reply with quote

[quote="++METHOS"]
Code:
cmp dword ptr [rbx+0000014],#3653
jne code


Got it, I was the following the "base pointer is most likely this...." but actually RBX was 4 bytes out.

Working fine now thanks
Back to top
View user's profile Send private message
crashoverride93
Advanced Cheater
Reputation: 0

Joined: 04 Aug 2015
Posts: 61

PostPosted: Sun Mar 12, 2017 12:19 pm    Post subject: Reply with quote

[quote="nero1232"]
++METHOS wrote:
Code:
cmp dword ptr [rbx+0000014],#3653
jne code


Got it, I was the following the "base pointer is most likely this...." but actually RBX was 4 bytes out.

Working fine now thanks


I havent seen rbx before is that a 64 bit register
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sun Mar 12, 2017 12:38 pm    Post subject: Reply with quote

Yes.
Back to top
View user's profile Send private message
rog9001
Expert Cheater
Reputation: 2

Joined: 22 Dec 2015
Posts: 214
Location: Jupiter

PostPosted: Tue Mar 14, 2017 2:24 am    Post subject: Reply with quote

Idk if u got your cmp to work but try putting a pushf and a popf. Maybe that will help.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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