Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Finding the positions of all bullets

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Cola_Colin
How do I cheat?
Reputation: 0

Joined: 23 Jul 2011
Posts: 2

PostPosted: Sat Jul 23, 2011 10:39 pm    Post subject: Finding the positions of all bullets Reply with quote

Hi Smile

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25778
Location: The netherlands

PostPosted: Sun Jul 24, 2011 6:41 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Cola_Colin
How do I cheat?
Reputation: 0

Joined: 23 Jul 2011
Posts: 2

PostPosted: Sun Jul 24, 2011 6:38 pm    Post subject: Reply with quote

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 Smile

Thanks for your help.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites