Geri Moderator Reputation: 111 Joined: 05 Feb 2010 Posts: 5636
|
Posted: Sun Oct 10, 2010 4:19 pm Post subject: |
|
|
I used the code that You posted to find the health of my turtle and some enemies.
So I have added Your code to my code list:
TMNTGame.exe+1E99D8 Code :mov [esi+00000174],eax
Then right-click and "Find out what addresses this code writes to".
Then I have went back in the game on the 2nd level where Rafaello fight some bandits right at the start of the level. I let them hit me so I had my health address. I hit them once, one by one to have their health addresses too.
Then I have compared all of the structures to see what is different in the turtles structure and in the enemies structure. I have found a few things, that are common for enemies but different for my turtle. For example on offset 170, the value was always 0 for my turtle and a common number for the enemies of the same type. So it seems to be some data that is related to the character type. I have attached a picture about it.
Even in Your structure that You have posted, You can see that the number for You is 0.
I have found a bunch of other offsets too, when the value seems to be unique to the charachter type, but we need only one, so I don't bother with the other offsets if this is working perfectly.
Of course in other games, You may find other differencies, You always need to examine the game and search for clues like this. Like pointers that are common to the charachter type and values or strings that may be unique for the player.
Sometimes it is so easy that it couldn't get easier but sometimes it is a real pain to find something.
What is important, try to compare as many structures as You can to see the patterns. Not just 1 player and 1 enemy structure, but at least 1 player and 2 enemy structures (or even 3-4 is better).
Then if You have found something that is unique for Your player, write Your script to check that offset and do things accordingly, in this case, jump over the code which is decreasing Your health.
EDIT:
And sometimes even registers may hold unique values for Your character, but I didn't check it in this game so far. Usually there are many differencies, just pick one and try it out. _________________ My trainers can be found here: http://www.szemelyesintegracio.hu/cheats
If you are interested in any of my crappy articles/tutorials about CE and game hacking, you can find them here:
http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles
Don't request cheats or updates.
|
|