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 


read 3 bytes?

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

Joined: 14 Sep 2011
Posts: 87

PostPosted: Fri Sep 28, 2012 1:00 pm    Post subject: read 3 bytes? Reply with quote

adress 0x00dc04b4 has FFFFFF35 as value.

if we wants a byte , we can use
Code:
readbytes('0x00dc04b4',1)   

we got result 35
if we wants 4 bytes , we can use
Code:
readInteger('0x00dc04b4')

we got FFFFFF35

what if we want 2 bytes or 3 bytes? how to get the result as FF35 or FFFF35

readbytes('0x00dc04b4',3) seems not work , I got only 35
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 475

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

PostPosted: Fri Sep 28, 2012 2:04 pm    Post subject: Reply with quote

for a 2 byte address do
readInteger(0x00dc04b4) %0x10000

for a 3 byte address do:
readInteger(0x00dc04b4) %0x1000000

_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
happyreadygo
Advanced Cheater
Reputation: 1

Joined: 14 Sep 2011
Posts: 87

PostPosted: Fri Sep 28, 2012 2:17 pm    Post subject: Reply with quote

thank you dark byte

Very Happy
Back to top
View user's profile Send private message
happyreadygo
Advanced Cheater
Reputation: 1

Joined: 14 Sep 2011
Posts: 87

PostPosted: Tue Oct 02, 2012 12:59 pm    Post subject: Reply with quote

how about write 2 and 3 bytes?

the value in apAddress is FFFFFF35 . the ap point of materia ball is 3bytes of "0xFFFFFF" . while 1 byte of "0x35" is the materia ball that hold the ap point.
and

can we do
Code:
ap=readInteger(apAddress+0x1)%1000000 --we got 3bytes of 0xffffff
ap=ap-5000 --ap is 0xffec77 now
writeBytes(apAddress+0x01,ap) --This is what I think, but it ll error probably
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