Pocket Tanks

Hacking Any Other Offline Single-Player Game

Moderators: g3nuin3, SpeedWing, WhiteHat, mezzo

Pocket Tanks

Postby outofbeef » Mon Jul 06, 2009 3:38 am

Does anyone feel like teaming up to reverse Pocket Tanks? For the learning aspect.

Some of the things that I'd like to do are maybe instant weapon-switches, tank teleports, and maybe some kind of primitive auto-aim. I've picked these because we'd really have to know a bit about how the internals of the game work. I could easily have unlimited moves, god mode, etc, but those are easy.

I've currently found a few pointers and am going to work on reversing the player/tank structures.

One of the things that I need a bit of help on is interpreting the tank position. It's stored in an 3d vector, but the game is 2d. The way the floats convert into pixel positions doesn't really make sense to me.

Code: Select all
class CPlayer
{
public:
                char unknown0[4];
                int id;
                char unknown8[12];
                float x;
                float y;
                float z;
                char unknown32[40];
                int color;
                char unknown76[96];
                int numMoves;
}

Code: Select all
0x00471850 - CPlayer* GetCurPlayer();
0x00471790 - CPlayer* GetPlayer(int id);

0x0052B458 - CPlayer* curPlayer;
0x0052B45C - CPlayer* player1;
0x0052B460 - CPlayer* player2;
0x0052B464 - int curPlayerId;
outofbeef
I Have A Few Questions
 
Posts: 2
Joined: Sun Jun 28, 2009 6:42 pm
Location: South Texas

Return to Others (Offline)

Who is online

Users browsing this forum: No registered users and 0 guests

cron