Joined: 14 Feb 2009 Posts: 27 Location: Planet 3 Solar System Orion Arm Spiral Galaxy Milky Way
Posted: Mon Mar 02, 2009 12:24 am Post subject: Identifying a Grid's Content by Memory Reading
My online game is using isometric projection (i.e. just like Diablo II) and the map is divided into square tiles each represented by (x,y) coord.
I can easily locate the memory for the (x,y) coord of the player since its value is displayed on the game screen. But I want to go a step further by identifying the content of a tile (e.g. if it is occupied by a monster or other player) of any given coord.
Can anyone give me some hint as how should I start with this. This is quite different from searching for just a given (x,y) value as the map probably represented by some complex data structure in memory.
Well, one way of doing it would be looking in the game files.
MOST of the games keep their maps stored in the game files (Diablo stores a generator -_-), so looking it up in there could be possible, but it's rather hard.
Another way would be looking for a changing content of a tile, and you know how to look for a changing value
A changing content could be: When you change maps. Perhaps the same adress is used for the previous x,y tile as this x,y tile.
Or a tile that you can change yourself. This is rather hard to explain, and hardly ever works though (often only applies a mask onto your tile) _________________
Get a lid on that zombie,
he's never gonna be alri-i-ight.
Oooh get a lid on that zombie,
or he's gonna feed all night.
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