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 


16-byte Addresses

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Outlivinglife
Newbie cheater
Reputation: 0

Joined: 21 Aug 2018
Posts: 19

PostPosted: Mon Aug 19, 2024 11:07 pm    Post subject: 16-byte Addresses Reply with quote

I'm so confused on 16-bit addresses in Cheat Engine. I'm using Duckstation (a PS1 emulator) and running Final Fantasy VIII on there. Duckstation states its RAM (on this itteration) is mapped at 0x1d5635b0000. Ok... so I search for that as an 8-Byte value, and somehow it shows it (even though it's a 16-byte value truncated as an 11-byte). When I add this "8-Byte" type, it's somehow holding a 16-byte value: 0000 01D5 635B 0000. Ok, fine, somehow it's doing it, I'm just happy things are working.

In searching for addresses for Squall's HP, it too is shown as another 16-byte address: 1D6 0A6A 8A62 (11 shown). At least this one is showing a value that can be contained in it's 2-Byte type.

The problem begins when I try to make a new address using the Duckstation RAM Pointer and the offset to Squall's HP (1D6 0A6A 8A62 - 1D5 635B 0000 = A70F 8A62) like so...

1D5 635B 0000 + A70F 8A62 = 1D6 0A6A 8A62

But instead, it's unable to change the 9th digit, so I just get...

1D5 635B 0000 + A70F 8A62 = 1D5 0A6A 8A62

How do I work with 16-Byte addresses in Cheat Engine?

PS: Sorry in advance if this doesn't make a whole lot of sense. Just know that it probably makes even less sense to me >.>



16-bits.jpg
 Description:
 Filesize:  36.08 KB
 Viewed:  4012 Time(s)

16-bits.jpg


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Tue Aug 20, 2024 6:23 am    Post subject: Reply with quote

you're mixing up bits, bytes and nibbles and also mix up values and addresses


a byte 1 is 8 bits
a nibble is 4 bits

not sure what you are doing besides that

_________________
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
Outlivinglife
Newbie cheater
Reputation: 0

Joined: 21 Aug 2018
Posts: 19

PostPosted: Tue Aug 20, 2024 7:41 pm    Post subject: Reply with quote

Ah, yes... I see what mistake I was making with regards to bits and bytes. I forgot that two digits (i.e., 6B) corresponds to one byte. However, I'm still having an issue (see image).

When I use the pointer, ["duckstation-qt-x64-ReleaseLTCG.exe"+78 FFD0] and add the offset, [870F 7EBD], I should get [268 A60D 7EBD], but instead I'm getting [267 A60D 7EBD] (exactly [1 0000 0000] less than the value). Is there anyway get the right value?



8-byte Address.jpg
 Description:
 Filesize:  41.44 KB
 Viewed:  3925 Time(s)

8-byte Address.jpg


Back to top
View user's profile Send private message
grolo12
How do I cheat?
Reputation: 0

Joined: 17 Jan 2020
Posts: 8

PostPosted: Sat Sep 21, 2024 5:59 pm    Post subject: Reply with quote

Outlivinglife wrote:
Ah, yes... I see what mistake I was making with regards to bits and bytes. I forgot that two digits (i.e., 6B) corresponds to one byte. However, I'm still having an issue (see image).

When I use the pointer, ["duckstation-qt-x64-ReleaseLTCG.exe"+78 FFD0] and add the offset, [870F 7EBD], I should get [268 A60D 7EBD], but instead I'm getting [267 A60D 7EBD] (exactly [1 0000 0000] less than the value). Is there anyway get the right value?


Infinite HP for Squall
8007780A 270F
80077808 270F

270F in 2 bytes equals 9999 in decimal.
80000000 is the RAM address base.
7780A is the offset.
By using "RAM" as the base address and "offset", you get the final code as:

8007780A refers to the memory location in RAM, and 270F is the value to be stored at that location, giving 9999 HP to Squall. There's no need to use pointers since the address is directly calculated by adding the offset to the base.



ptr.png
 Description:
 Filesize:  19.08 KB
 Viewed:  3104 Time(s)

ptr.png


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