Posted: Tue May 28, 2019 11:29 am Post subject: Big Endian Values - ReadInteger/Write/Increase by etc
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. _________________
Joined: 09 May 2003 Posts: 25798 Location: The netherlands
Posted: Tue May 28, 2019 11:33 am Post subject:
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
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