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 


Unit health pointer

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
PeaceKeep0r
Cheater
Reputation: 0

Joined: 01 Sep 2014
Posts: 32

PostPosted: Sat Jan 17, 2015 4:25 pm    Post subject: Unit health pointer Reply with quote

I'm looking to find out the pointer to display the health of my current unit, in the game Tiberian Sun.

I've found 2 health values of units, wrote what accesses their addresses, and now I'm stuck on what to do after.

Anyone mind dropping some insight on this type of pointer? Any help is appreciated.

_________________
P∃ɑ¢∈ƘεεքΘɼ
Back to top
View user's profile Send private message
aikoncwd
Grandmaster Cheater
Reputation: 23

Joined: 21 Dec 2012
Posts: 591
Location: Spain (Barcelona)

PostPosted: Sun Jan 18, 2015 5:18 pm    Post subject: Re: Unit health pointer Reply with quote

PeaceKeep0r wrote:
I'm looking to find out the pointer to display the health of my current unit, in the game Tiberian Sun.

I've found 2 health values of units, wrote what accesses their addresses, and now I'm stuck on what to do after.

Anyone mind dropping some insight on this type of pointer? Any help is appreciated.


You have many ways/paths to achieve that goal. Some people use pointers, I don't like to use pointers because some times its hard to find a valid pointer. I use the globalalloc() method (or registersymbol, its the same).

Find what access the health address, you will find something like:

mov ebx,[eax+8C]
//base pointer = eax and +8C is the health offset

or

fld dword ptr [eax+14]
//base pointer = eax and +14 is the health offset

then add:

Code:

globalalloc(pPlayer,4)
mov [pPlayer],eax




This code will copy the value of EAX into your label named pPlayer. Add a new address (manually), select pointer and write pPlayer (put the correct offset +8C in my example):



Activate the script and the Health address will be filled like magic. This can be done only if your injection point is not shared with other address, if you have sharedcode (like tutorial CE step 9) you must dissect the structure, use stackview or use another injection point without shared code.

bye Smile

_________________
Hey Hitler
Test here your skill with CheatEngine, I coded a challenge for you. Try to beat it!
HERE
Back to top
View user's profile Send private message
PeaceKeep0r
Cheater
Reputation: 0

Joined: 01 Sep 2014
Posts: 32

PostPosted: Sun Jan 18, 2015 11:57 pm    Post subject: Reply with quote

Alright, so my health address that I'd like to use came up as

fild dword ptr [ecx+28]

I went into the disassembler, code injection, and added that new code (replacing your orginial eax to ecx).

However, a weird value for pPlayer came up, not filling the pointer.

Obviously I'm doing something wrong, just not sure what

_________________
P∃ɑ¢∈ƘεεքΘɼ
Back to top
View user's profile Send private message
aikoncwd
Grandmaster Cheater
Reputation: 23

Joined: 21 Dec 2012
Posts: 591
Location: Spain (Barcelona)

PostPosted: Mon Jan 19, 2015 4:16 am    Post subject: Reply with quote

PeaceKeep0r wrote:
Alright, so my health address that I'd like to use came up as

fild dword ptr [ecx+28]

I went into the disassembler, code injection, and added that new code (replacing your orginial eax to ecx).

However, a weird value for pPlayer came up, not filling the pointer.

Obviously I'm doing something wrong, just not sure what


Edit the manualpointer pplayer and select float or double value. the correct value will be displayed Smile

_________________
Hey Hitler
Test here your skill with CheatEngine, I coded a challenge for you. Try to beat it!
HERE
Back to top
View user's profile Send private message
PeaceKeep0r
Cheater
Reputation: 0

Joined: 01 Sep 2014
Posts: 32

PostPosted: Mon Jan 19, 2015 11:02 am    Post subject: Reply with quote

It's a shame I can't upload images as to what I'm doing wrong. Any way I could provide you with some?
_________________
P∃ɑ¢∈ƘεεքΘɼ
Back to top
View user's profile Send private message
aikoncwd
Grandmaster Cheater
Reputation: 23

Joined: 21 Dec 2012
Posts: 591
Location: Spain (Barcelona)

PostPosted: Mon Jan 19, 2015 11:07 am    Post subject: Reply with quote

PeaceKeep0r wrote:
It's a shame I can't upload images as to what I'm doing wrong. Any way I could provide you with some?


Attach your current table, so I can see what is wrong. If you cant attach the table... open with notepad, copy/paste the code to www.pastebin.com and give me the pastebinID so I can see your table Smile

_________________
Hey Hitler
Test here your skill with CheatEngine, I coded a challenge for you. Try to beat it!
HERE
Back to top
View user's profile Send private message
PeaceKeep0r
Cheater
Reputation: 0

Joined: 01 Sep 2014
Posts: 32

PostPosted: Mon Jan 19, 2015 1:05 pm    Post subject: Reply with quote

How's this?

E5SKv06u

Those are the values after the pastebin url

_________________
P∃ɑ¢∈ƘεεքΘɼ
Back to top
View user's profile Send private message
aikoncwd
Grandmaster Cheater
Reputation: 23

Joined: 21 Dec 2012
Posts: 591
Location: Spain (Barcelona)

PostPosted: Mon Jan 19, 2015 4:59 pm    Post subject: Reply with quote

PeaceKeep0r wrote:
How's this?

E5SKv06u

Those are the values after the pastebin url


Ok, the whole table is wrong hehe. Don't worry. If you have time, add me to your steam friend list so I can tell you a better way to achieve this.

My steam is same as my nick: AikonCWD

_________________
Hey Hitler
Test here your skill with CheatEngine, I coded a challenge for you. Try to beat it!
HERE
Back to top
View user's profile Send private message
PeaceKeep0r
Cheater
Reputation: 0

Joined: 01 Sep 2014
Posts: 32

PostPosted: Mon Jan 19, 2015 5:39 pm    Post subject: Reply with quote

Found ya, named PeaceKeep0r, of course

I'm ready to learn my simple mistakes xD

_________________
P∃ɑ¢∈ƘεεքΘɼ
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