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 


hacking larger values at fewer bytes

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
StarfireTBT
Advanced Cheater
Reputation: 1

Joined: 15 Aug 2015
Posts: 59

PostPosted: Sun Mar 13, 2022 2:58 pm    Post subject: hacking larger values at fewer bytes Reply with quote

I like to emulate old mac games using emulators that cheat engine only seems to read as bytes. This is fine for smaller numbers but larger numbers (I think anything over 255) appear as smaller numbers (like double digit).

Is there a way to translate the number to be more accurate in cheat engine? Having a number that appears in cheat engine differently than in the game makes it a little hard (but not impossible) to alter.
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 97

Joined: 14 Jul 2007
Posts: 3326

PostPosted: Sun Mar 13, 2022 4:21 pm    Post subject: Reply with quote

CE handles byte, word, dword and qword values out of the box.
You can define custom types, too if your LUA kung-fu is strong.
Back to top
View user's profile Send private message
StarfireTBT
Advanced Cheater
Reputation: 1

Joined: 15 Aug 2015
Posts: 59

PostPosted: Mon Mar 14, 2022 4:13 pm    Post subject: Reply with quote

What are custom types?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4709

PostPosted: Mon Mar 14, 2022 4:58 pm    Post subject: Reply with quote

Right click the "Value Type" box in the main form when it's enabled.

AA custom types let you convert an arbitrary sequence of bytes to/from either a 4-byte integer or a float.

There are also Lua custom types that are easier to write but much slower to run. I'm not terribly familiar with them.

At a low level, all types are just a sequence of bytes. Maybe it's just a big endian type you're looking for?

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 97

Joined: 14 Jul 2007
Posts: 3326

PostPosted: Tue Mar 15, 2022 4:29 am    Post subject: Reply with quote

You can also use an external DLL (a plugin) and then the performance hit won't be that bad.
Here's an example.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Tue Mar 15, 2022 4:43 am    Post subject: Reply with quote

go to settings->extra custom types and tick 2 byte big endian and 4 byte big endian

the values you're looking for are very likely big endian so these types will likely work for you

_________________
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
StarfireTBT
Advanced Cheater
Reputation: 1

Joined: 15 Aug 2015
Posts: 59

PostPosted: Fri Mar 18, 2022 5:43 pm    Post subject: Reply with quote

I found what you were talking about, I didn't know how to alter it since it looked like I need to know some kind of computer speak (I believe that is what you were talking about). I looked up some youtube videos on basic auto assembly but it also went over my head.
Thanks you for your help all the same, I think I figured out how to read the numbers over a byte.
I believe cheat engine keeps track of numbers up to a specific value and then it starts all over. I can still search and find large numbers but they appear as smaller numbers (596 appears as 84 for example). The change remains the same (so if I add 15 it becomes 611 while cheat engine sees it as 99). I can still hack it, for example changing 99 to 199 changes the value 611 to 711. It just takes some getting used to.
I guess I was just hoping there was an "easy" switch or a setting to auto correct this weird counting system.
Back to top
View user's profile Send private message
StarfireTBT
Advanced Cheater
Reputation: 1

Joined: 15 Aug 2015
Posts: 59

PostPosted: Sun Jan 01, 2023 11:33 am    Post subject: Reply with quote

Dark Byte wrote:
go to settings->extra custom types and tick 2 byte big endian and 4 byte big endian

the values you're looking for are very likely big endian so these types will likely work for you


For some reason my reply didn't get posted. I figured out what you were talking about, I had checked the boxes you recommended but it didn't work because I was still searching for regular bytes. I found the ENDIAN bytes in the value type box and searched for those and found the value I was looking for at [2 Byte Big Endian]

Thank you for your help this problem is solved
Back to top
View user's profile Send private message
cooleko
Grandmaster Cheater
Reputation: 11

Joined: 04 May 2016
Posts: 717

PostPosted: Sun Jan 01, 2023 2:25 pm    Post subject: Reply with quote

Just so you know, the reason you could find values less than 255 is because at a byte level big endian isn't any different than a regular byte. It's only when the second byte needs to be used (values larger than 255) that the order is wrong and CE can't find the new value without searching in big endian format.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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