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 


dq or dd

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
KalasDev
Master Cheater
Reputation: 1

Joined: 29 May 2016
Posts: 311

PostPosted: Thu Oct 05, 2017 2:12 am    Post subject: dq or dd Reply with quote

Hey, so I've been told to check Memory Viewer to determine either I should use dd or dq in my scripts.

It looks like 4 bytes are changing when I enable the script:

https://imgur.com/a/8sxzY



Is there another way to determine either I should define qword to dword?
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1586

PostPosted: Thu Oct 05, 2017 2:18 am    Post subject: Reply with quote

dq is only for 8byte length values and double values, in ur case dd.
_________________
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
KalasDev
Master Cheater
Reputation: 1

Joined: 29 May 2016
Posts: 311

PostPosted: Thu Oct 05, 2017 2:21 am    Post subject: Reply with quote

Hmm I see, but isn't a float a 8 byte value?

Oh just found out here: https://www.tutorialspoint.com/cprogramming/c_data_types.htm

float 4 byte

double 8 byte

Sorry for the mistake Very Happy
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1586

PostPosted: Thu Oct 05, 2017 2:31 am    Post subject: Reply with quote

char, int8_t
are 1byte data type, which are db.

short int, int16_t
are 2byte data type, which are dw.

int, int32_t, float
are 4byte data type, which are dd.

long long int, int64_t, double
are 8byte data type, which are dq.

_________________
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
KalasDev
Master Cheater
Reputation: 1

Joined: 29 May 2016
Posts: 311

PostPosted: Thu Oct 05, 2017 2:34 am    Post subject: Reply with quote

Thank you.
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