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 


Endianess and Array of Bytes

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
fearless123456
How do I cheat?
Reputation: 0

Joined: 13 Nov 2017
Posts: 5

PostPosted: Wed Mar 27, 2019 4:48 pm    Post subject: Endianess and Array of Bytes Reply with quote

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