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 


Scanning for values between -1 and 1

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

Joined: 22 Aug 2022
Posts: 3

PostPosted: Mon Aug 22, 2022 11:41 am    Post subject: Scanning for values between -1 and 1 Reply with quote

Hello!
I am attempting to find the static pointer for a direction my character is facing within a game. The X coordinate i am looking for ranges from -1 to 1 with around 7 decimal points ex. -0.1545767. When plugging it into cheat engine and attempting to scan it seems to round up the number and gives me results that have a value of 0, and thus i am greeted with 1 billion results. Any idea how i can force CE to look for the exact value.

Thank you for your help.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4722

PostPosted: Mon Aug 22, 2022 12:22 pm    Post subject: Reply with quote

0 is indeed a number between -1 and 1. Math demands that to be true- you can't change that.

If you want to scan for non-zero normal (i.e. non-subnormal) numbers, check the "simple values only" checkbox, do a first scan between -1 and 1, then do an exact value scan for "0.0000000000" with the "Not" checkbox checked.

Or you could use a custom value type that ignores zero and subnormal values (with some knowledge of assembly... or maybe {ccode}?).

_________________
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
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Mon Aug 22, 2022 1:45 pm    Post subject: Reply with quote

more efficient is do an unknown initial value scan
cause an change and do a changed value scan
then scan for -1 to 1

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

Joined: 22 Aug 2022
Posts: 3

PostPosted: Mon Aug 22, 2022 2:52 pm    Post subject: Reply with quote

Dark Byte wrote:
more efficient is do an unknown initial value scan
cause an change and do a changed value scan
then scan for -1 to 1


I think i might have not worded my issue correctly, i have the exact values available to me. So i have access to exact values at all times. my problem is when i enter an exact value and scan for it for some reason it gives me literary a billion addresses. It doesn't make any sense that i am entering a value of 0.1435284 and its pumping out adresses that have value of 0.
Back to top
View user's profile Send private message
Cheating'sHard
Newbie cheater
Reputation: 0

Joined: 15 Aug 2020
Posts: 12
Location: 16845 N 29th Ave Ste 1212, Phoenix, AZ 85053

PostPosted: Mon Aug 22, 2022 2:56 pm    Post subject: Reply with quote

TheHipsterGmaing wrote:
Dark Byte wrote:
more efficient is do an unknown initial value scan
cause an change and do a changed value scan
then scan for -1 to 1


I think i might have not worded my issue correctly, i have the exact values available to me. So i have access to exact values at all times. my problem is when i enter an exact value and scan for it for some reason it gives me literary a billion addresses. It doesn't make any sense that i am entering a value of 0.1435284 and its pumping out adresses that have value of 0.


1. make sure the value type is set to float
2. make sure you have rounded set to default and not extreme

_________________
Why not?
Back to top
View user's profile Send private message
TheHipsterGmaing
How do I cheat?
Reputation: 0

Joined: 22 Aug 2022
Posts: 3

PostPosted: Mon Aug 22, 2022 3:00 pm    Post subject: Reply with quote

Cheating'sHard wrote:
TheHipsterGmaing wrote:
Dark Byte wrote:
more efficient is do an unknown initial value scan
cause an change and do a changed value scan
then scan for -1 to 1


I think i might have not worded my issue correctly, i have the exact values available to me. So i have access to exact values at all times. my problem is when i enter an exact value and scan for it for some reason it gives me literary a billion addresses. It doesn't make any sense that i am entering a value of 0.1435284 and its pumping out adresses that have value of 0.


1. make sure the value type is set to float
2. make sure you have rounded set to default and not extreme


You sir are a jewel Thank you <3
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