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] Dissect data/structures in Cheat Engine
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials
View previous topic :: View next topic  
Author Message
yosimba2000
How do I cheat?
Reputation: 0

Joined: 20 Jun 2012
Posts: 6

PostPosted: Fri Aug 10, 2012 4:19 pm    Post subject: Reply with quote

thanks for the replies. is it necessary to move the max health value from the address to eax, then mov it from eax to the current health? can i just mov the max health to current health?

also, how do i view the opcodes?
Back to top
View user's profile Send private message
Shizzurp
How do I cheat?
Reputation: 0

Joined: 09 Mar 2012
Posts: 6

PostPosted: Sat Aug 18, 2012 9:44 am    Post subject: Reply with quote

Having some trouble, I've followed the original post and read through this thread. Found someone who was messing with COD and I got some info about where the structure starts but I can't seem to get something static?

I'm trying to find the function that sends a message to the server lobby. I've found the address that stores the name and I am able to change it fine. I've found stable pointers from a pointer scan to the address and did a "what accesses this address" scan, found the op code as below..

Code:

0084B4F0 - 8B 44 8E F8  - mov eax,[esi+ecx*4-08]
0084B4F4 - 89 44 8F F8  - mov [edi+ecx*4-08],eax
0084B4F8 - 8B 44 8E FC  - mov eax,[esi+ecx*4-04] <<
0084B4FC - 89 44 8F FC  - mov [edi+ecx*4-04],eax
0084B500 - 8D 04 8D 00000000  - lea eax,[ecx*4+00000000]

EAX=51616D69
EBX=0018F470
ECX=00000001
EDX=00000001
ESI=2A9A1DF8
EDI=0018F470
ESP=0018F400
EBP=0018F408
EIP=0084B4FC


0084B4F8 - 8B 44 8E FC - mov eax,[esi+ecx*4-04] <<

That is where it broke, now from previous replies in this thread I assume that ESI is the struct, ecx is the position in the table and *4 - 04 is the start of the structure..

When I try to put that into dissect data I just get unknown addresses & values..
Back to top
View user's profile Send private message
Geri
Moderator
Reputation: 111

Joined: 05 Feb 2010
Posts: 5636

PostPosted: Sat Aug 18, 2012 11:26 pm    Post subject: Reply with quote

ESI is the base.
ECX is probably referring to an item in a list.
*4 is needed because the game is using 4 bytes to store the values.
-04 is just -4 bytes from the result, no idea why is it needed.

_________________
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.
Back to top
View user's profile Send private message
shakib187
Expert Cheater
Reputation: 0

Joined: 24 May 2007
Posts: 215

PostPosted: Mon Dec 31, 2012 3:34 pm    Post subject: Re: [Tutorial] Dissect data/structures in Cheat Engine Reply with quote

Hey Geri thanks for the tutorial I learned more than I should have.. I am new to code dissection and really haven't worked on it much but anyway.. In Titan quest immortal throne I have found the base address for health with which I can edit but the attack speed is the problem its inside the health structure and I can edit it but it keeps changing back. By being inside I mean I used code dissection to get it basically.


Another question I have is with the what write to this address there is only the address that updating the stats and not the health itself, I think the way the game works is it keeps running checks on your health mana agility/attackspeed etc because I cannot find the pointer that decreases the health, well I can because its very simply coded and if you scroll up using memory browse you can see the base/current health/mana structures but for attackspeed and strength it does not show it :/
Back to top
View user's profile Send private message
Geri
Moderator
Reputation: 111

Joined: 05 Feb 2010
Posts: 5636

PostPosted: Tue Jan 01, 2013 3:04 am    Post subject: Reply with quote

I didn't play this game so I don't know how is it working. But if the value is changing back all the time, maybe you have found a wrong value (which could be just a copy of the original value, not the original value itself).

If you have found a value for the health and it is really working when you change it, you can use any code that is accessing to the structure to modify values in it.

Eg if health is on offset 08 and you have a code that is accessing to offset 04 (let's say this is the mana), you can use it to modify the health. For example [esi+04] could be used to modify the health, simply use [esi+08] when you want to do something with the value of health. The important value in the code is esi, which is the address of the base of the structure. You can use it to change any value if you know how much do you need to add to esi to get the address of the value that you want to change.
Of course the register could be different, this is just an example.

So if you have a code that is accessing to the mana and you want to change the mana and HP too, just use something like

mov [esi+04],64 //change mana to 100
mov [esi+08],64 //change HP to 100

The code that you are using in the script doesn't have to access to the value itself, you just need something, anything that will give you a starting point to calculate the address that you need.

If you use access instead of write, you will get more codes and they are often more useful than the codes that are writing to the address.

_________________
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.
Back to top
View user's profile Send private message
shakib187
Expert Cheater
Reputation: 0

Joined: 24 May 2007
Posts: 215

PostPosted: Thu Jan 03, 2013 6:45 pm    Post subject: Re: [Tutorial] Dissect data/structures in Cheat Engine Reply with quote

Edit: you know Geri no matter how many times you think you know something you actually dont know it at all... I finally got it I followed your guide more precisely and I finally got it, thank you.
Back to top
View user's profile Send private message
jackdaniels42
Cheater
Reputation: 0

Joined: 15 Jan 2013
Posts: 26

PostPosted: Mon May 27, 2013 11:12 pm    Post subject: hi Reply with quote

hi Geri,can you tell me how I can find the weaponsdamage in the game ?
Back to top
View user's profile Send private message
Geri
Moderator
Reputation: 111

Joined: 05 Feb 2010
Posts: 5636

PostPosted: Tue May 28, 2013 5:37 am    Post subject: Reply with quote

It depends on the game. You need to try to find some data that is related to the gun and then look around in the structure and start figuring out which value could be the damage. There is no general rule, you have to keep experimenting to see which value is what.

Or if you want to make some instant kill cheat, you can simply make a "reversed" god mode cheat that instead of keeping the player alive will kill the enemies if they take any damage.

_________________
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.
Back to top
View user's profile Send private message
jackdaniels42
Cheater
Reputation: 0

Joined: 15 Jan 2013
Posts: 26

PostPosted: Sat Jun 01, 2013 6:33 pm    Post subject: Reply with quote

Geri wrote:
It depends on the game. You need to try to find some data that is related to the gun and then look around in the structure and start figuring out which value could be the damage. There is no general rule, you have to keep experimenting to see which value is what.

Or if you want to make some instant kill cheat, you can simply make a "reversed" god mode cheat that instead of keeping the player alive will kill the enemies if they take any damage.




thanks for your answer Geri,what do you think what a value has the damage Float or Bytes ?
Back to top
View user's profile Send private message
Geri
Moderator
Reputation: 111

Joined: 05 Feb 2010
Posts: 5636

PostPosted: Sat Jun 01, 2013 8:14 pm    Post subject: Reply with quote

It could be anything, depending on the game. There is no rule for this either. Check the "suspicious" values that could be the damage in your opinion.
_________________
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.
Back to top
View user's profile Send private message
jackdaniels42
Cheater
Reputation: 0

Joined: 15 Jan 2013
Posts: 26

PostPosted: Sat Jun 01, 2013 9:45 pm    Post subject: Reply with quote

Geri wrote:
It could be anything, depending on the game. There is no rule for this either. Check the "suspicious" values that could be the damage in your opinion.




ok,it is about max payne 3, could you maybe look, I'll try it since 6 months to find it would be very nice of you
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sat Jun 01, 2013 9:49 pm    Post subject: Reply with quote

http://forum.cheatengine.org/viewtopic.php?t=558286&sid=b928dd5414476494445ea5ee80ffb6f9
Back to top
View user's profile Send private message
jackdaniels42
Cheater
Reputation: 0

Joined: 15 Jan 2013
Posts: 26

PostPosted: Sat Jun 01, 2013 10:05 pm    Post subject: Reply with quote

GNIREENIGNE wrote:
http://forum.cheatengine.org/viewtopic.php?t=558286&sid=b928dd5414476494445ea5ee80ffb6f9





it's not what I'm looking for
Back to top
View user's profile Send private message
Geri
Moderator
Reputation: 111

Joined: 05 Feb 2010
Posts: 5636

PostPosted: Sat Jun 01, 2013 10:42 pm    Post subject: Reply with quote

I never liked the Max Payne series so I don't have this one either.
_________________
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.
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sat Jun 01, 2013 11:23 pm    Post subject: Reply with quote

jackdaniels42 wrote:
I'll try it since 6 months to find it

jackdaniels42 wrote:
GNIREENIGNE wrote:
http://forum.cheatengine.org/viewtopic.php?t=558286&sid=b928dd5414476494445ea5ee80ffb6f9





it's not what I'm looking for

Maybe you could try another 6 months. Very Happy
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 Tutorials All times are GMT - 6 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 5 of 7

 
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