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 


Finding NaN double and float values doesn't work

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
bartek_s2
Newbie cheater
Reputation: 0

Joined: 26 Dec 2018
Posts: 11
Location: null

PostPosted: Mon Jan 28, 2019 5:52 pm    Post subject: Finding NaN double and float values doesn't work Reply with quote

I know for a fact there is a NaN value I'm interested in in memory, but cheat engine won't find any.

When using "Rounded (default)" it finds a lot of values that are not NaN, and when using either of the other 2 options, it's not finding any values.
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1586

PostPosted: Mon Jan 28, 2019 7:13 pm    Post subject: Reply with quote

first how did you know that?
second it make no sense storing values as nan.
third ce cant find snan or qnan values. (also there is dirty bug in ce float searching that cant be trigger easily)

maybe the value is treated as a bit field which is sort of encoding, every couple bits represent something.

search for unknown initial value as 4bytes.

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote:
i am a sweetheart.
Back to top
View user's profile Send private message Visit poster's website
bartek_s2
Newbie cheater
Reputation: 0

Joined: 26 Dec 2018
Posts: 11
Location: null

PostPosted: Mon Jan 28, 2019 10:01 pm    Post subject: Reply with quote

I know there is a nan because it's actually displayed in a gui and it's a java code and I know roughly which field in the code the gui text corresponds to. And I don't think java really has any concept of qnan and snan (and I had to resort to scanning memory directly because of the other issue I posted, I'm not allowed to put a link to it there for some reason).

Anyway, I don't really need it to work anymore.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4702

PostPosted: Tue Jan 29, 2019 9:54 am    Post subject: Reply with quote

Just search for it manually. double = 8-byte value between 0x7FF0000000000001 and 0xFFFFFFFFFFFFFFFF; float = 4-byte value between 0x7F800001 and 0xFFFFFFFF. This range also includes negative infinity, but if that's really important then make a custom type for it.
_________________
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
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