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 


Changing a value to negative

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

Joined: 20 Jul 2019
Posts: 3

PostPosted: Sat Jul 20, 2019 5:48 am    Post subject: Changing a value to negative Reply with quote

Hello,

So i have this problem, that i need to change a value to negative.
But when changing it, it becomes a big number like 4293967296.

Why does this happend? And is there any way to fix it?
Back to top
View user's profile Send private message
hhhuut
Grandmaster Cheater
Reputation: 6

Joined: 08 Feb 2015
Posts: 607

PostPosted: Sat Jul 20, 2019 6:50 am    Post subject: Reply with quote

It's just a way of interpreting the binary representation of the number.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4719

PostPosted: Sat Jul 20, 2019 8:55 am    Post subject: Reply with quote

Right click on the memory record in the address list (bottom half of main window) and select "show as signed".
_________________
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
bl4nk23
How do I cheat?
Reputation: 0

Joined: 20 Jul 2019
Posts: 3

PostPosted: Sat Jul 20, 2019 12:57 pm    Post subject: Reply with quote

ParkourPenguin wrote:
Right click on the memory record in the address list (bottom half of main window) and select "show as signed".


It will just make it possible for me to search for it, it won't let me change a positive number to negative? or?
Back to top
View user's profile Send private message
HitIer
How do I cheat?
Reputation: 22

Joined: 09 Feb 2013
Posts: 0
Location: Location Location Location

PostPosted: Sat Jul 20, 2019 4:53 pm    Post subject: Reply with quote

hhhuut wrote:
It's just a way of interpreting the binary representation of the number.


This is basically your answer here. Don't overthink it. You can change to negative values if the field in the game allows it. Otherwise it will usually revert to the nearest legal value.

_________________
With self driving cars, CE can work in real life

t328163 wrote:
Your username derives from the fact that this site cannot format special characters lol.


t328163 wrote:

lmfao, on reddit i'd get banned
Back to top
View user's profile Send private message MSN Messenger
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4719

PostPosted: Sat Jul 20, 2019 7:49 pm    Post subject: Reply with quote

In CE's settings menu under general settings, there should be an option that says "Show values as if they are signed". Click that, and it should do as it says when scanning for values.

The difference between signed and unsigned when viewing raw memory is open to interpretation. As far as computers are concerned, the 4-byte signed integer -1000 and unsigned integer 4294966296 are stored the same in memory.

Last I checked, you don't need to view a memory record as signed in order to change it to a negative value. CE will write it all the same, and just display it however it's set to.

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

Joined: 20 Jul 2019
Posts: 3

PostPosted: Mon Jul 22, 2019 10:01 am    Post subject: Reply with quote

ParkourPenguin wrote:
In CE's settings menu under general settings, there should be an option that says "Show values as if they are signed". Click that, and it should do as it says when scanning for values.

The difference between signed and unsigned when viewing raw memory is open to interpretation. As far as computers are concerned, the 4-byte signed integer -1000 and unsigned integer 4294966296 are stored the same in memory.

Last I checked, you don't need to view a memory record as signed in order to change it to a negative value. CE will write it all the same, and just display it however it's set to.


It didn't do it mate, sorry.
Thanks for trying to help Very Happy
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Tue Jul 23, 2019 8:39 am    Post subject: Reply with quote

Change value to negative example, easiest way example:

A = 5

to negative just put this sign '-' in front of 5, so:

A = -5

Now the value is negative. Laughing Laughing Laughing

... refresh your mind

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1533

PostPosted: Tue Jul 23, 2019 2:04 pm    Post subject: Re: Changing a value to negative Reply with quote

bl4nk23 wrote:
Hello,

So i have this problem, that i need to change a value to negative.
But when changing it, it becomes a big number like 4293967296.

Why does this happend? And is there any way to fix it?


If you did not replace this value with a value such as "-1000",
(Or "-" Whatever)
Current value: You must have made a high value that 4 Bytes cannot carry.
cf. (Ekran12)
Perhaps the value you are looking for is not 4 Bytes, but 8 Bytes.
Check it out.
Also, if the value changes to the displayed number,
it is still your value.
cf. (Ekran13)
Because the known value of the minus is 8 Bytes.
-1000 = (Aobs) 18 FC FF FF FF FF FF FF

Of course, this number trades at 4 Bytes.
You can change the changed value again, plus and minus. Smile
cf. (Ekran13)
Wink



Ekran13.JPG
 Description:
 Filesize:  135.62 KB
 Viewed:  13828 Time(s)

Ekran13.JPG



Ekran12.JPG
 Description:
 Filesize:  87.66 KB
 Viewed:  13827 Time(s)

Ekran12.JPG



_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Csimbi
I post too much
Reputation: 97

Joined: 14 Jul 2007
Posts: 3338

PostPosted: Thu Jul 25, 2019 3:56 am    Post subject: Re: Changing a value to negative Reply with quote

bl4nk23 wrote:
Hello,

So i have this problem, that i need to change a value to negative.
But when changing it, it becomes a big number like 4293967296.

Why does this happend? And is there any way to fix it?


If you are looking at a negative signed value as if it were an unsigned value, yes, it will be most likely big.

Look into the binary representation of short, int, float, etc. The first bit is always the sign bit.
I also recommend a tutorial on two's complement.
Google that. If you take a number, get its two's complement and add 1, you have the negative.
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