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 


Cheat Engine wrong inserted values. *SOLVED by atom0s*

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
LostLight
How do I cheat?
Reputation: 0

Joined: 27 Feb 2015
Posts: 5

PostPosted: Wed Jun 03, 2015 4:19 pm    Post subject: Cheat Engine wrong inserted values. *SOLVED by atom0s* Reply with quote

Happens rarely but when I've tried entering a value over 65,000 or so cheat engine turns it into 400-something or so.
So when I want 9999999 gold. I get 38527 instead.

Any clues on how to fix?
Restarted my computer,ran cheat engine and the games on admin yet it still persists on PPSSPP Gungnir for example.


Thanks LostLight


Last edited by LostLight on Wed Jun 03, 2015 4:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Wed Jun 03, 2015 4:22 pm    Post subject: Reply with quote

Sounds like the data type of the location in memory you are editing is not 4 bytes, but instead 2.

A signed short (2 bytes) can hold between -32,768 and 32,767.
An unsigned short (2 bytes) can hold between 0 and 65,535.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
LostLight
How do I cheat?
Reputation: 0

Joined: 27 Feb 2015
Posts: 5

PostPosted: Wed Jun 03, 2015 4:26 pm    Post subject: Reply with quote

atom0s wrote:
Sounds like the data type of the location in memory you are editing is not 4 bytes, but instead 2.

A signed short (2 bytes) can hold between -32,768 and 32,767.
An unsigned short (2 bytes) can hold between 0 and 65,535.



Yeah it is value type 2 thanks,idk how I entered millions before last time.
Still good to learn that it can only go to 65,535 will save alot of headaches.
Thanks atom0s.
Back to top
View user's profile Send private message
Processus42
How do I cheat?
Reputation: 0

Joined: 14 May 2014
Posts: 4
Location: France

PostPosted: Wed Jun 03, 2015 4:27 pm    Post subject: Re: Cheat Engine wrong inserted values. Reply with quote

I think that this don't come from cheat engine.

You're probably setting a 2 Bytes value.
A Byte is a succession of 8 bits.
The binary form of 9999999 is 10011000 10010110 01111111 which take 3 Bytes.
Truncated to 2 Bytes, 10011000 10010110 01111111 is 10010110 01111111.
10010110 01111111 = 38527 in decimal.

EDIT : Too late... Mad


EDIT 2 :
LostLight wrote:
Still good to learn that it can only go to 65,535

You still can scan for 4 Bytes. Or simply decrement the address by two and chante type to "4 Bytes". But in this case, the value has to be 4 bytes, else, you'll write in a bad memory space.
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