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 


tutorial request

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
dick_traced
Newbie cheater
Reputation: 0

Joined: 22 Sep 2011
Posts: 21

PostPosted: Mon Dec 05, 2011 10:29 am    Post subject: tutorial request Reply with quote

Hi,
i would ask of more exp hackers to make a video tutorial on structure spider and it's features

also, There's something else i would like to ask of you(experienced hackers) about structures.
let's say we have structure of enemy
enemy {
-health
-mana
-damage
}

how can i 'insert' another component in the structure? i mean, i want for every enemy to have an element 'times hit by blade', for example. i have an idea of allocating memory and for every enemy i store the starting structure address and the corresponding 'times hit by blade'. but i want to learn optimal ways to access and store these kind of data.
example:
-we allocate 1024 memory
-we know structure of enemy1 starts at 1234 and structure of enemy2 starts at 4321. so in the allocated memory we would create a little new structure for each enemy, and we would have:
1234; 3; 4321; 8
so we know enemy 1 was hit 3 times with the blade, and enemy2 8 times

ok. now when we want to check how many times enemy7 was hit by blade, we would start from the allocated memory and check the address from 8 to 8 bytes to get to the address of enemy7. problem would be: do we have allocated enough space for all the enemies? how can we eliminate the entry of a killed enemy? (in pascal would be simple, any snippets for assembly??)
also any other solution would be greatly appreciated, since it'n not quite optimal to check all the elements of an array (maybe a method of storing by derrivating from enemy structure address?? some math involved?)
another note: storing and manipulating would have to be very very good, since instead of 'times hit by blade'(that gets manipulated when enemy takes damage from blade), we could have 'time until boom' (where we increase a counter every time health of enemy is READ by the game - like couple hundreds times per second)


so to summarize: how can you efficiently can store and manipulate new elements for enemies structures?

thank you all
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Mon Dec 05, 2011 6:23 pm    Post subject: Reply with quote

Structure spider is mainly for detecting differences between structures up to several levels deep.
Especially for trying to find an identifier like a path to a username (player's units only)
Perhaps if I get time someday I may explain it better (and fix some bugs it has)

Anyhow,
Inserting stuff to an existing structure is not worth the time (editing all the code that accesses structure elements that come after what you added). You're best off going with dll injection and making use of a Map like storage container for secondary storage for each unit

Do a hook at a place where the enemy shoots and then add if it isn't in the list and update the shotcount in a seperate list
And do a hook at a place where the enemy dies and then in your hook remove that enemy from the list

_________________
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
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