fearless123456 How do I cheat?
Reputation: 0
Joined: 13 Nov 2017 Posts: 5
|
Posted: Wed Mar 27, 2019 4:48 pm Post subject: Endianess and Array of Bytes |
|
|
Hello
I am trying to write an inventory script. I have been given the necessary offsets to change. For example to change an item, I would have to change offsets item+0, item+4,item+8,item+c.
The item list that I have access to have set out their information in this format:
itemA+0: B00003E8
itemA+4: 400003E8
itemA+8: amount
itemA+c: 003FC118
Unfortunately, I jumped the gun and used Excel and concatenated the information as: B00003E8 400003E8 00000063 003FC118 (the spaces are added to make it easier for you to read).
I thought I will use an array of bytes and that it would work.
I did not realize that the list of item codes given doesn't translate to an array of byte format as the information was curated using the 4-bytes format thus the wrong endianess (?).
To get it to work, I would have to change each the array of byte to the following format:
E80300B0 E8030040 63000000 181C3F00 instead.
I am wondering if there is an easier way to fix this using CE.
|
|