 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
hodayfa000h Newbie cheater
Reputation: 0
Joined: 26 Dec 2022 Posts: 18
|
Posted: Wed Dec 20, 2023 4:48 am Post subject: game coordinates make no sense |
|
|
i found the X and Y coordinates(it is a 2d game)
but when i move the coordinates change in a really weird way like 1 step they are lets say 4000.6412 then another step they are 30 it is weird and if i save the X and Y coordinates go somewhere else then put the same coordinates it tps me to the edge of the camera _________________
... |
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Wed Dec 20, 2023 5:51 am Post subject: |
|
|
| Try changing the data type. Depending on the game, the coordinates could be byte, 2 byte etc.. Older games (e.g. NES) may use byte type, and will only cover for the screen area, so your area of movement will always be what can be seen on the screen at any given time. If you walk to the left side of the screen, for example, then your X coordinate may get smaller, until you reach the edge, and it becomes 0. |
|
| Back to top |
|
 |
hodayfa000h Newbie cheater
Reputation: 0
Joined: 26 Dec 2022 Posts: 18
|
Posted: Wed Dec 20, 2023 7:28 am Post subject: |
|
|
| ++METHOS wrote: | | Try changing the data type. Depending on the game, the coordinates could be byte, 2 byte etc.. Older games (e.g. NES) may use byte type, and will only cover for the screen area, so your area of movement will always be what can be seen on the screen at any given time. If you walk to the left side of the screen, for example, then your X coordinate may get smaller, until you reach the edge, and it becomes 0. |
it is weird the coordinates feel way to random so i guess i won't use anything to do with tp _________________
... |
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Wed Dec 20, 2023 8:00 am Post subject: |
|
|
The coordinates may not be random, they may just appear that way... either because you are looking at the wrong data type, or, the coordinates are getting reset (or changing) as a result of where you actually are on-screen or on the game world etc..
For example, using an old NES game like the original Zelda, if you walk around without going off-screen, the coordinates will make sense, and are relative to the screen that you are looking at. However, if you walk to the right of the screen, and enter a new area (so that the screen changes), the coordinates will reset back to 0, since you will now be on the left side of the screen. As you continue walking to the right side of the screen, the coordinates will increase until you enter the next screen/area, then the coordinates will start over at 0 again. |
|
| Back to top |
|
 |
hodayfa000h Newbie cheater
Reputation: 0
Joined: 26 Dec 2022 Posts: 18
|
Posted: Wed Dec 20, 2023 8:46 am Post subject: |
|
|
| ++METHOS wrote: | The coordinates may not be random, they may just appear that way... either because you are looking at the wrong data type, or, the coordinates are getting reset (or changing) as a result of where you actually are on-screen or on the game world etc..
For example, using an old NES game like the original Zelda, if you walk around without going off-screen, the coordinates will make sense, and are relative to the screen that you are looking at. However, if you walk to the right of the screen, and enter a new area (so that the screen changes), the coordinates will reset back to 0, since you will now be on the left side of the screen. As you continue walking to the right side of the screen, the coordinates will increase until you enter the next screen/area, then the coordinates will start over at 0 again. |
hey just an idea that came to mind if it loads what is in the camera only does that mean if i change the camera position then the player position it will work? _________________
... |
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Wed Dec 20, 2023 10:33 am Post subject: |
|
|
Not sure what you mean, exactly, but it depends on how the game is handling that data. Typically, although the camera will be fixed to the character's position, both, the character and the camera, are independent of each other, and can move to different locations respectfully, especially if you alter the code so that the camera is not locked to the player.
Moving the camera should not move the character. If it does, then that would be an unusual case. If you are asking about something else, then maybe you can clarify your question. |
|
| Back to top |
|
 |
hodayfa000h Newbie cheater
Reputation: 0
Joined: 26 Dec 2022 Posts: 18
|
Posted: Wed Dec 20, 2023 12:56 pm Post subject: |
|
|
| ++METHOS wrote: | Not sure what you mean, exactly, but it depends on how the game is handling that data. Typically, although the camera will be fixed to the character's position, both, the character and the camera, are independent of each other, and can move to different locations respectfully, especially if you alter the code so that the camera is not locked to the player.
Moving the camera should not move the character. If it does, then that would be an unusual case. If you are asking about something else, then maybe you can clarify your question. |
you said the game might only load what is in the camera and that is true and the camera is locked to the player i just realized so forget it... my idea wouldn't work
update: actually i found a value that has coordinates that do make sense but it doesn't affect my character when i freeze it or change it what could it be? _________________
... |
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Wed Dec 20, 2023 4:34 pm Post subject: |
|
|
Not sure. Even if/when you find character coordinates, you may find that many other addresses carry that same value, so you may have to filter them out.
When searching for coordinates, be sure to include all data types in settings. Also consider the possibility that the values could be inverted (opposite what you think), so moving upwards on the screen, may actually decrease the value and so forth. |
|
| Back to top |
|
 |
hodayfa000h Newbie cheater
Reputation: 0
Joined: 26 Dec 2022 Posts: 18
|
Posted: Fri Dec 22, 2023 3:38 am Post subject: |
|
|
| ++METHOS wrote: | Not sure. Even if/when you find character coordinates, you may find that many other addresses carry that same value, so you may have to filter them out.
When searching for coordinates, be sure to include all data types in settings. Also consider the possibility that the values could be inverted (opposite what you think), so moving upwards on the screen, may actually decrease the value and so forth. |
is that why the velocity value is like inverted in the game i am using cheat engine on? _________________
... |
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Fri Dec 22, 2023 10:21 am Post subject: |
|
|
| I cannot answer that. But in my experience with writing cheats, it is better to not assume, and instead, to consider all possibilities. |
|
| Back to top |
|
 |
|
|
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
|
|