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 


Big Endian Values - ReadInteger/Write/Increase by etc

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

Joined: 14 Mar 2015
Posts: 402

PostPosted: Tue May 28, 2019 11:29 am    Post subject: Big Endian Values - ReadInteger/Write/Increase by etc Reply with quote

I want to port a mod of mine to RPCS3.
However its in BIG ENDIAN so if I try to add B280 value to value of address the script reads it as normal 4 byte HEX and not Big Endian
How can i make increase value by B280 while reading VALUE from another address but in BIG ENDIAN?

So it gets correct value and not crash.

_________________
I am the forgotten one the dead one.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Tue May 28, 2019 11:33 am    Post subject: Reply with quote

convert the integer to a bytetable
swap the bytes
convert the bytetable to an integer
increase value
convert the integer to a bytetable
swap the bytes
convert the bytetable to an integer

or use the customtype object from lua if you have one installed in ce

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

Joined: 14 Mar 2015
Posts: 402

PostPosted: Tue May 28, 2019 11:43 am    Post subject: Reply with quote

DB can you give me an example.
And where i can find this custom type?
Thank you

_________________
I am the forgotten one the dead one.
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1586

PostPosted: Wed May 29, 2019 2:36 am    Post subject: Reply with quote

why you dont just use bswap?
otherwise do as db said, split bytes then rearrange them to big-endian order.

_________________
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
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