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 


A game accessing seemingly impossible to access instruction

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
sandsmaster
Newbie cheater
Reputation: 1

Joined: 21 Jan 2021
Posts: 24

PostPosted: Tue Sep 28, 2021 12:32 pm    Post subject: A game accessing seemingly impossible to access instruction Reply with quote

Hello guys!

I'm trying to write a cheat for a game called "50 years". So I was trying to get a script for money, when I found out that the value used for it is a double. That's weird though (to me), because the game is 32-bit.
What's weirder though, is that the code dissector doesn't show any jumps to it and you can see (in the pic) that the instruction is after a ret.

So I wanted to ask you about pretty much:


    - And how come there doesn't seem to be a path leading to that code?
    - Why doubles are used inside a 32-bit game?


It's not the first time I'm seeing a 32-bit game, using doubles and not float, but as far as I know, it might be something normal. I'm kinda noob still. But I see a problem with unaccessible code, so that's
the main question about this topic. I'd be happy to find out more about both though. I'm open for suggestions.
Cheers and thanks in advance! Smile

P.S: I tried Brake and Trace for the money value, but I can't seem to find a static call either ( one that executes only on buying stuff ). Might be useful to know



unknownAccess.png
 Description:
A picture of: the game, value in CE, the Code Dissector and Memory Viewer.
 Filesize:  1.02 MB
 Viewed:  2157 Time(s)

unknownAccess.png



_________________
I don't post too much. yet.
Back to top
View user's profile Send private message Send e-mail
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4711

PostPosted: Tue Sep 28, 2021 1:00 pm    Post subject: Reply with quote

sandsmaster wrote:
And how come there doesn't seem to be a path leading to that code?
Because CE can only display stuff it knows about. If you didn't dissect code, then it's probably because there isn't a jump instruction in view; if you did, then it's probably an indirect jump (e.g. jump table, vtable call, etc.). CE isn't smart enough to see everything.

sandsmaster wrote:
Why doubles are used inside a 32-bit game?
They have more precision than floats. I haven't noticed any difference between 32-bit and 64-bit architectures with regard to the semantic use of floats and doubles. It's not like 32-bit architectures don't have adequate hardware support for doubles.
The only difference I've noticed is the implementation choice of hardware extensions used: 32-bit usually uses x87 and 64-bit almost always uses SSE.

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