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 


Noob question? Why i can set a negative value?

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

Joined: 04 May 2015
Posts: 6

PostPosted: Sun Oct 14, 2018 8:20 pm    Post subject: Noob question? Why i can set a negative value? Reply with quote

Hello, i want to hack but i cant set a negative value. My purpose is to set a number like -99999 when buying an item, so that I can get the positive balance when the server executes. But when I set a negative number, it does not accept and jumps to another positive number. I also tried putting 1-99999 but still not. What should I do?

Last edited by OFzatt on Mon Oct 15, 2018 4:34 am; edited 1 time in total
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 51

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Sun Oct 14, 2018 8:32 pm    Post subject: Reply with quote

This will help explain it: https://wiki.cheatengine.org/index.php?title=Tutorials:Value_types

Try right clicking the address and selecting "show as signed".

-99999 (signed) == 0xFFFE7961 (hex) == 4294867297 (unsigned)

_________________
Back to top
View user's profile Send private message Visit poster's website
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4697

PostPosted: Sun Oct 14, 2018 8:38 pm    Post subject: Reply with quote

Positive numbers can be mapped to negative numbers via certain operations.

Under two's compliment, the 4-byte values -99,999 and 4,294,867,297 have the same bit representation in memory. The only difference between them is conceptual: one is unsigned while the other is signed.

Right click a memory record in the address list and select "Show as signed" to interpret an integral value type as signed.

If the game itself is treating the value as unsigned, you're likely SOL.

_________________
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
OFzatt
How do I cheat?
Reputation: 0

Joined: 04 May 2015
Posts: 6

PostPosted: Sun Oct 14, 2018 8:46 pm    Post subject: Reply with quote

Thanks, yes it show 4294867297, when i choice "show as signed" and set -99999, it work. But the app cant handle. It seems the value is still 4294867297, is a big number and I can not buy it. if i set to 0, it working.
Back to top
View user's profile Send private message
OFzatt
How do I cheat?
Reputation: 0

Joined: 04 May 2015
Posts: 6

PostPosted: Mon Oct 15, 2018 8:52 pm    Post subject: Reply with quote

ParkourPenguin wrote:
Positive numbers can be mapped to negative numbers via certain operations.

Under two's compliment, the 4-byte values -99,999 and 4,294,867,297 have the same bit representation in memory. The only difference between them is conceptual: one is unsigned while the other is signed.

Right click a memory record in the address list and select "Show as signed" to interpret an integral value type as signed.

If the game itself is treating the value as unsigned, you're likely SOL.

TheyCallMeTim13 wrote:


Try right clicking the address and selecting "show as signed".

-99999 (signed) == 0xFFFE7961 (hex) == 4294867297 (unsigned)


any idea, pls?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25788
Location: The netherlands

PostPosted: Tue Oct 16, 2018 12:12 am    Post subject: Reply with quote

the game itself doesn't handle negative values for the price. (It's an unsigned integer)
you meed to reprogram the game to be able to deal with negatives

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions 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