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 


Finding Value That Changes Addresses Midgame

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

Joined: 28 Mar 2022
Posts: 2

PostPosted: Mon Mar 28, 2022 3:49 am    Post subject: Finding Value That Changes Addresses Midgame Reply with quote

Hi,

I've been using Cheat Engine for years but only ever basic search and modify values.
Recently I've been trying to figure out the coordinates of a character in a game called Core Keeper. It's a 2D open-world single map game that spans "infinitely". The world center is at (0, 0).

I've managed to find about 150 values that correspond to the X coordinate and cannot narrow it down any further (all addresses match the X coordinate of the player exactly). These are all floats.
The Y coordinate, however, is proving to be a lot more difficult. I am able to somewhat narrow it down if I only move a few spaces at a time, but if moving the character larger distances the values I found tend to either freeze in place or jump to a new value. These new values still +-1 generally every time I move the character a space. but they are no longer the actual coordinate. I then have to start a new scan to find the new addresses with the corresponding coordinate, but then the same happens again as if the game is changing the address in which the value is stored.

Things I've tried:

> Searching different value types
> Searching all value types
> Unknown initial value then increasing, decreasing, or unchanged value (in case Y coordinate is offset)
> Unknown initial value then changed value (If Y coordinate is offset and/or flipped)
> Exact values with inverted order (flipping the coordinate axis)
> A combination of multiple of the above

None of these give me an address where the Y coordinate value is accurate or stays accurate.

All the addresses that have the coordinate at some point in time have their value written through the same 2 pieces of code.

If I check what opcodes are writing to the address in real-time I can see that it changes every time I move my character (obviously) but then nothing writes to it when it randomly freezes (It's not the same value being written multiple times).
When the value randomly jumps and freezes to another value then I can see a load of other opcodes write to it which isn't very helpful.
In the case when the value randomly jumps but then still +- 1 every time I move the character, it only gets written to from one of the two previous opcodes.

Currently, I cannot think of anything else I can do to get this value since thousands of addresses get written to from those opcodes. I've researched multiple tutorials or guides and gone through multiple forums, but I cannot find anyone who has a similar issue to this.

Any help would be greatly appreciated.
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1069
Location: 0x90

PostPosted: Mon Mar 28, 2022 7:00 am    Post subject: Reply with quote

Usually, the other co-ordinates are very close by to the X co-ordinates. Browse the memory region surrounding the address you found the X co-ordinate and look for values that correspond to the player's location.
Back to top
View user's profile Send private message
bailey125
How do I cheat?
Reputation: 0

Joined: 28 Mar 2022
Posts: 2

PostPosted: Mon Mar 28, 2022 9:24 am    Post subject: Reply with quote

LeFiXER wrote:
Usually, the other co-ordinates are very close by to the X co-ordinates. Browse the memory region surrounding the address you found the X co-ordinate and look for values that correspond to the player's location.


Sorry I forgot to say I tried that, but since there were so many I missed a load of them. I tried again but instead used group scans and managed to find a bunch of pairs that match the X and Y coordinates.
Thank you.
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1069
Location: 0x90

PostPosted: Mon Mar 28, 2022 10:01 am    Post subject: Reply with quote

If you find the pointer to the struct that is holding the X co-ordinate, you can dissect the struct using the pointer address and then analyse the dissect struct window for any values that look familiar also.
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Mon Mar 28, 2022 10:59 am    Post subject: Reply with quote

2D games can be tricky sometimes. In order to narrow down your results, just freeze them and try to move until you find the right value(s). Then, further-test by manually changing the values by a small amount, one-by-one, to see if any of them teleport your character without moving you back to the original location. You can further-test to see if you are able to teleport through objects. Once found, the other coordinate should be close by.
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