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 


Script to make CE read and write all values as Big Endian?

 
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: Wed May 29, 2019 4:16 pm    Post subject: Script to make CE read and write all values as Big Endian? Reply with quote

Is it possible.
Since i have scripts that add to values of addresses but they are not compatible with RPCS3 due to all values being in Big Endian
So anyway to make CE auto convert readed values by scripts as big endian and add the values as big endian..

So far all tried has failed..
Neither script seems to work...


I want
so after the big endian custom scan added and changing
address to 4 bytes Big Endian and example its value
is 30750000
and i have script
adding to it

F4D0

value of this address to become
3075F4D0 in Big Endian as shown in table with the custom type.

_________________
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 4:45 pm    Post subject: Reply with quote

im not sure what architecture rpcs3 emulates, but my bet is that architecture is using lil-endian. (or half lil/big endian)
_________________
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
Meiyoh
Master Cheater
Reputation: 1

Joined: 14 Mar 2015
Posts: 402

PostPosted: Thu May 30, 2019 1:44 am    Post subject: Reply with quote

// Author : FFFFFFFFFF


Code:
[ENABLE]
{$Lua}
    VK_PAD_A = 0x5800
    VK_PAD_B = 0x5801
    VK_PAD_X = 0x5802
    VK_PAD_Y = 0x5803
    VK_PAD_RSHOULDER = 0x5804
    VK_PAD_LSHOULDER = 0x5805
    VK_PAD_LTRIGGER = 0x5806
    VK_PAD_RTRIGGER = 0x5807
    VK_PAD_DPAD_UP = 0x5810
    VK_PAD_DPAD_DOWN = 0x5811
    VK_PAD_DPAD_LEFT = 0x5812
    VK_PAD_DPAD_RIGHT = 0x5813
    VK_PAD_START = 0x5814
    VK_PAD_BACK = 0x5815
    VK_PAD_LTHUMB_PRESS = 0x5816
    VK_PAD_RTHUMB_PRESS = 0x5817
    VK_PAD_LTHUMB_UP = 0x5820
    VK_PAD_LTHUMB_DOWN = 0x5821
    VK_PAD_LTHUMB_RIGHT = 0x5822
    VK_PAD_LTHUMB_LEFT = 0x5823
    VK_PAD_LTHUMB_UPLEFT = 0x5824
    VK_PAD_LTHUMB_UPRIGHT = 0x5825
    VK_PAD_LTHUMB_DOWNRIGHT = 0x5826
    VK_PAD_LTHUMB_DOWNLEFT = 0x5827
    VK_PAD_RTHUMB_UP = 0x5830
    VK_PAD_RTHUMB_DOWN = 0x5831
    VK_PAD_RTHUMB_RIGHT = 0x5832
    VK_PAD_RTHUMB_LEFT = 0x5833
    VK_PAD_RTHUMB_UPLEFT = 0x5834
    VK_PAD_RTHUMB_UPRIGHT = 0x5835
    VK_PAD_RTHUMB_DOWNRIGHT = 0x5836
    VK_PAD_RTHUMB_DOWNLEFT = 0x5837
--if syntaxcheck then return end



local sAddrisStanding = "_BossFix+660"
local sAddrATK ="_BossFix+62c"


local Stands = readInteger(sAddrisStanding)and GetAddress(sAddrisStanding)
local Attacks = readInteger(sAddrATK)and GetAddress(sAddrATK)
-- signal error if not
if not Stands  then  error"Standing not readable"end
if not Attacks  then  error"Attacks not readable"end

function NezhaCAtkFix(sender)

if isKeyPressed(VK_PAD_X) and isKeyPressed(VK_PAD_DPAD_UP)
then

writeInteger("_BossFix+62c",readInteger("_BossFix+660")+0xC9400000)

end


end
NAzhaC5=createTimer(nil, true)
timer_onTimer(NAzhaC5, NazhaCAtkFix)
timer_setInterval(NAzhaC5, 1) --check every 100 milliseconds

[DISABLE]
{$Lua}
NAzhaC5.destroy()


however
it shall make the value in big endian
to

37744CA0 after reading the source address value which is 37738360

since adding to it C940 = 3774CA0

and I dont know how to make it work correctly. i tried adding 00000 to it but to no avail as the script reads bytes in wrong order.


HERE are the values from big endian to HEX

60837337 = 37738360 in Big Endian Format

so they are reversed

_________________
I am the forgotten one the dead one.
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