 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
Sam_Learner Newbie cheater
Reputation: 0
Joined: 07 Oct 2012 Posts: 19
|
Posted: Mon Mar 18, 2013 6:56 am Post subject: Location of a unit inside the screen. |
|
|
Hi there. I'm again here since long time I disconnected from business.
I've started again learning to use this program and I'd like to know if it's possible to do this.
I'll try to explain what I want to do: In a game (any game), there is a map, and in that map there is an unit (or object), inside the screen. I mean, I can see the object because it is inside my screen, but if I move my screen with the mouse the object will change his location or it will be even out of the screen.
What I want to do is, if I could find the pointer which tells me the coords (x,y), where the object is.
And if it's possible, how could I start to do it?
Thank you in advance.
|
|
Back to top |
|
 |
Gniarf Grandmaster Cheater Supreme
Reputation: 43
Joined: 12 Mar 2012 Posts: 1285
|
Posted: Mon Mar 18, 2013 7:48 am Post subject: Re: Location of a unit inside the screen. |
|
|
Sam_Learner wrote: | What I want to do is, if I could find the pointer which tells me the coords (x,y), where the object is. | If you want the x,y coords relative to the screen, basically you'll have to find the unit's coordinates relative to the map, then the camera/screen's coordinates relative to the map, and do the subtraction yourself.
Getting the x,y coordinates relative to the map, is most likely* possible and fairly easy:
1-search for an unknown value (usually coord type is float or double, but if your map is made of cells it may be an 2/4 byte integer).
2-make your unit go in one direction, search for increased value.
3-make the unit go in the opposite direction, search for decreased value.
4-repeat steps 2-3, using always the same pair of directions (always left&right or always up&down, or the same diagonal...) until you:
4.1-find one or several coordinate(s)->woot->pointer scanner.
4.2-end up with 0 results -> restart from 1, but use decreased value in step 2 and increased value in step 3.
Tip: usually, but not always, x, y, and z coordinates' addresses are very close together - as in: "the 4 bytes before/after".
*give up on finding a stable pointer if your game is written in/uses python, java, flash, or any high level interpreted language.
|
|
Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Mon Mar 18, 2013 1:04 pm Post subject: |
|
|
If the object is fixed, and doesn't move, it will be difficult to narrow in on its coordinates. If the object is part of the map, it may be even more difficult. Usually, spawning new objects to a specific location is easier than moving an existing object from one location to another.
For example, you may see a tower on your screen, and when you move, the tower moves off of your screen and you are no longer able to see it. In this case, only the coordinates for you (the player) and the camera are changing. The coordinates for the tower do not change.
|
|
Back to top |
|
 |
Sam_Learner Newbie cheater
Reputation: 0
Joined: 07 Oct 2012 Posts: 19
|
Posted: Mon Mar 18, 2013 4:34 pm Post subject: |
|
|
It's on the screen, not the map. I want the screen which I am watching.
It's an object which can move, and these are the properties:
1- If the object moves by itself in my screen, the coords will be changed (obiously).
2- If I move the screen, but the object is not moving, the coords will be changed also, because in my screen, even if the object is not moving, in my screen is moving because of my mouse.
|
|
Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Mon Mar 18, 2013 5:50 pm Post subject: |
|
|
I understand. If you actually have the object coordinates, then changing the coordinate values should move the object. Is that the case?
I find it hard to believe that the coordinates for the actual object are relative to the camera view.
Be sure you have the actual coordinates for the object by testing it.
|
|
Back to top |
|
 |
foxfire9 Advanced Cheater
Reputation: 0
Joined: 23 Mar 2012 Posts: 57
|
Posted: Mon Mar 18, 2013 8:12 pm Post subject: |
|
|
Have you played World of Tanks Online. They say if you just inject few codes in a Vertical Camera View it is possible to have all signature of your Enemy Only or Ally in that camera angle.
|
|
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
|
|