Create a bot for an isometric game - travel bot [Part 1]

Create a bot for an isometric game - travel bot [Part 1]

Have you wondered how to write a bot for a game to automate an action. I wondered, when I had to travel a lot from one city to another when I was moving goods around. The concept is quite simple for a such traveling bot, you just need couple of things. The first thing - find where you are on the map, second - decide where you want to go, third - just go there.
Segment information from another process

Segment information from another process

To get information of segments in memory from another process you have three options - read process’ memory, map the process’ memory to the accessible virtual address space or inject dll that can access and read process’ memory. In this post I will use the first approach and read another process’ memory in to a buffer, afterwards I will use content of the buffer to extract header information that contains segment information.
Visualization of process memory

Visualization of process memory

I started a new multi-player game, after a while I wondered about the game’s memory and what is kept in it. I know one strategy is to visually represent process’ memory as pixels. Take a byte from a memory and associate it with a 8bit color or take 4 bytes and create an ARGB color. There are many tools to read or write memory (Cheat Engine), but that felt to easy and I would not learn much.