| View previous topic :: View next topic |
| Author |
Message |
PeaceKeep0r Cheater
Reputation: 0
Joined: 01 Sep 2014 Posts: 32
|
Posted: Sat Jan 17, 2015 4:25 pm Post subject: Unit health pointer |
|
|
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 |
|
 |
aikoncwd Grandmaster Cheater
Reputation: 23
Joined: 21 Dec 2012 Posts: 591 Location: Spain (Barcelona)
|
Posted: Sun Jan 18, 2015 5:18 pm Post subject: Re: Unit health pointer |
|
|
| 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
_________________
Hey Hitler
Test here your skill with CheatEngine, I coded a challenge for you. Try to beat it!
HERE |
|
| Back to top |
|
 |
PeaceKeep0r Cheater
Reputation: 0
Joined: 01 Sep 2014 Posts: 32
|
Posted: Sun Jan 18, 2015 11:57 pm Post subject: |
|
|
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 |
|
 |
aikoncwd Grandmaster Cheater
Reputation: 23
Joined: 21 Dec 2012 Posts: 591 Location: Spain (Barcelona)
|
Posted: Mon Jan 19, 2015 4:16 am Post subject: |
|
|
| 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
_________________
Hey Hitler
Test here your skill with CheatEngine, I coded a challenge for you. Try to beat it!
HERE |
|
| Back to top |
|
 |
PeaceKeep0r Cheater
Reputation: 0
Joined: 01 Sep 2014 Posts: 32
|
Posted: Mon Jan 19, 2015 11:02 am Post subject: |
|
|
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 |
|
 |
aikoncwd Grandmaster Cheater
Reputation: 23
Joined: 21 Dec 2012 Posts: 591 Location: Spain (Barcelona)
|
Posted: Mon Jan 19, 2015 11:07 am Post subject: |
|
|
| 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
_________________
Hey Hitler
Test here your skill with CheatEngine, I coded a challenge for you. Try to beat it!
HERE |
|
| Back to top |
|
 |
PeaceKeep0r Cheater
Reputation: 0
Joined: 01 Sep 2014 Posts: 32
|
Posted: Mon Jan 19, 2015 1:05 pm Post subject: |
|
|
How's this?
E5SKv06u
Those are the values after the pastebin url
_________________
P∃ɑ¢∈ƘεεքΘɼ |
|
| Back to top |
|
 |
aikoncwd Grandmaster Cheater
Reputation: 23
Joined: 21 Dec 2012 Posts: 591 Location: Spain (Barcelona)
|
Posted: Mon Jan 19, 2015 4:59 pm Post subject: |
|
|
| 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 |
|
 |
PeaceKeep0r Cheater
Reputation: 0
Joined: 01 Sep 2014 Posts: 32
|
Posted: Mon Jan 19, 2015 5:39 pm Post subject: |
|
|
Found ya, named PeaceKeep0r, of course
I'm ready to learn my simple mistakes xD
_________________
P∃ɑ¢∈ƘεεքΘɼ |
|
| Back to top |
|
 |
|