View previous topic :: View next topic |
Author |
Message |
Cola_Colin How do I cheat?
Reputation: 0
Joined: 23 Jul 2011 Posts: 2
|
Posted: Sat Jul 23, 2011 10:39 pm Post subject: Finding the positions of all bullets |
|
|
Hi
I want to write a Bot/AI for "a game"
So at the moment I am searching for all kinds of values within the memory of the game, so I can later use them for the bot.
I allready succeded in finding all kinds of scores, players life and positon and some positions of bullets/enemys/power ups and can change all these, too.
But the number of bullets/enemys/power ups isnt really a rigid number and therefore I need to be able to recognize where the program stores all bullets/enemys/etc.
How do I find all of them ?
At the moment I am trying to figure out the structure of these objects and I am hoping that there are certain memory regions, which store the lists of these objects, like arrays.
Is there any better approach to this kind of Problem ?
There should also be some kind of storage of all bullets, but how to find that ?
Like if I'd program such a game, I would have some kind of array which stores pointers to the current bullets. Finding that array in the memory would be great, but: how to find it ?
I hope somebody can give me an idea of how to do that, Cheatengine is an awesome help so far for my plan.
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25778 Location: The netherlands
|
Posted: Sun Jul 24, 2011 6:41 am Post subject: |
|
|
try finding a pointer, perhaps one pointer is as easy as just increasing one of the offsets with 4 to find the next one
alternatively, try doing a memory scan for the vftable pointer at the beginning of each class/structure
and of course, code injection can always work but can be detected if you don't have the proper hardware
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
Cola_Colin How do I cheat?
Reputation: 0
Joined: 23 Jul 2011 Posts: 2
|
Posted: Sun Jul 24, 2011 6:38 pm Post subject: |
|
|
After I found a pointer to the first structure, I found the asm code, that iterates through all enemies, checks if they are actually in the game and moves them. The game works with a rigid array of 256 records which need to be checked.
I was able to copy that logic in C#, so I can list all enemies now just fine
Thanks for your help.
|
|
Back to top |
|
 |
|