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 


I have a question!!!! [Please help me]
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Shahryar
Advanced Cheater
Reputation: 0

Joined: 11 Jun 2011
Posts: 85

PostPosted: Sat Apr 21, 2012 9:35 am    Post subject: Reply with quote

Fresco wrote:
what do you mean with : "the game comes out"

Sorry. I mean, the game crashed or stopped.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Fresco
Grandmaster Cheater
Reputation: 4

Joined: 07 Nov 2010
Posts: 600

PostPosted: Tue Apr 24, 2012 7:53 am    Post subject: Reply with quote

that has nothing to do with the code Wink
does the game crash only when you activate the code ?
because that code has nothing to do with the exit

_________________
... Fresco
Back to top
View user's profile Send private message
Shahryar
Advanced Cheater
Reputation: 0

Joined: 11 Jun 2011
Posts: 85

PostPosted: Thu Apr 26, 2012 5:52 pm    Post subject: Reply with quote

Fresco wrote:
does the game crash only when you activate the code ?

No, after activation, and when I wanted to close the game. (The code is still active).
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Fresco
Grandmaster Cheater
Reputation: 4

Joined: 07 Nov 2010
Posts: 600

PostPosted: Sat May 19, 2012 10:29 am    Post subject: Reply with quote

then you should make a script that checks the pointer and makes changes only when the code is writing to that address.

btw i don't think it's a big problem since the crash "comes out" only when you exit the game.

anyways to solve that problem place a breakpoint at the begining of all your codes / scripts and then exit game ... good luck.

_________________
... Fresco
Back to top
View user's profile Send private message
withyou
How do I cheat?
Reputation: 0

Joined: 21 May 2012
Posts: 0

PostPosted: Mon May 21, 2012 9:21 pm    Post subject: Reply with quote

Totally confusing . . . I am a noob in these . . .
Back to top
View user's profile Send private message
Fresco
Grandmaster Cheater
Reputation: 4

Joined: 07 Nov 2010
Posts: 600

PostPosted: Sun May 27, 2012 10:24 am    Post subject: Reply with quote

if so, you'd better give up.
it's difficult and time consuming ...
just add in the about box of your trainer or remind the user to deactivate the code before exiting the game.
PS: no one can help you remotely, you have to figure how to do that out yourself.

_________________
... Fresco
Back to top
View user's profile Send private message
Shahryar
Advanced Cheater
Reputation: 0

Joined: 11 Jun 2011
Posts: 85

PostPosted: Sun Jul 01, 2012 12:36 pm    Post subject: Reply with quote

I'm back. Smile
Is a way to use step 9 in cheat engine tutorial for health in Stronghold 3?
I think its a better way, if possible. I'm waiting for your advice. Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website
oLaudix
Expert Cheater
Reputation: 3

Joined: 25 Mar 2010
Posts: 138

PostPosted: Sun Jul 01, 2012 12:41 pm    Post subject: Reply with quote

step 9 in tutorial is helpfull for 99,9% of RTS games.
Back to top
View user's profile Send private message
Shahryar
Advanced Cheater
Reputation: 0

Joined: 11 Jun 2011
Posts: 85

PostPosted: Sun Jul 01, 2012 1:05 pm    Post subject: Reply with quote

How can I use of step 9 for Stronghold 3?
Please help. tnx
Back to top
View user's profile Send private message Send e-mail Visit poster's website
oLaudix
Expert Cheater
Reputation: 3

Joined: 25 Mar 2010
Posts: 138

PostPosted: Sun Jul 01, 2012 4:06 pm    Post subject: Reply with quote

You search for your unit health and then enemy unit health and compare it in data dissect just like in step 9 tutorial.
Back to top
View user's profile Send private message
Shahryar
Advanced Cheater
Reputation: 0

Joined: 11 Jun 2011
Posts: 85

PostPosted: Sun Jul 01, 2012 4:43 pm    Post subject: Reply with quote

I'll try it. tnx Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Shahryar
Advanced Cheater
Reputation: 0

Joined: 11 Jun 2011
Posts: 85

PostPosted: Tue Jul 03, 2012 4:09 pm    Post subject: Reply with quote

Hi. I'm back again. Smile
I search for my unit health and then enemy unit health and etc like you said but I don't know exactly what should I do? Sad
I use it for battlefield 3 but I don't know how can I do that. Can you help me? Please help. Sad
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Fresco
Grandmaster Cheater
Reputation: 4

Joined: 07 Nov 2010
Posts: 600

PostPosted: Wed Jul 04, 2012 5:04 am    Post subject: Reply with quote

you basically need to:
find your unit's heath
find the cod that writes to it, nop it, see if the enemy can be killed, if not ...
well if not, you un-nop (make the code original),
find two unit's hp of your tem, two of it's(AI's) team,
freeze all 4 hp,
.... why am i writing ?, have you finished the last step of ce's tutorial in ce 6.2 ?
if you did, you already know how to continue ...

_________________
... Fresco
Back to top
View user's profile Send private message
Shahryar
Advanced Cheater
Reputation: 0

Joined: 11 Jun 2011
Posts: 85

PostPosted: Wed Jul 04, 2012 9:14 am    Post subject: Reply with quote

I did it but I don't know how can I use it to my games. Sad
Who can make a video of how to use this step to the games?
Please help me. tnx Embarassed
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Fresco
Grandmaster Cheater
Reputation: 4

Joined: 07 Nov 2010
Posts: 600

PostPosted: Wed Jul 04, 2012 3:28 pm    Post subject: Reply with quote

Fresco wrote:
you basically need to:
find your unit's heath
find the cod that writes to it, nop it, see if the enemy can be killed, if not ...
well if not, you un-nop (make the code original),
find two unit's hp of your tem, two of it's(AI's) team,
freeze all 4 hp,
.... why am i writing ?, have you finished the last step of ce's tutorial in ce 6.2 ?
if you did, you already know how to continue ...

so, let's continue then,
after freezing all the 4 addresses, just like in the tutorial, find out what code writes to all of them, it has to be the same code for all the 4 addresses.
look in that code then and extract the offset (well find the base pointer)
like this:
[eax+20]
[eax+20] is the pointer
+20 is the offset
[eax] is the base pointer
got it ?
you need to find the offset.
so, after you have the offset, you open the dissector data/structures!
add 4 addresses, the addresses of the 2 units of yours and 2 of the other team. group them, make 2 groups, one group in the left (your team) and the other in the right.
now subtract the offset from the addresses of all 4 units:
like this:
address1-offset address2-offset address3-offset address4-offset
and if the offset was negative, add it
example:
if [eax-20]
address1+offset address2+offset ...etc...
________________________________________________________

analyse the addresses (offsets) and find a match, well not a match, it has to be an unique value that every and each restart doesn't change for your player nor the offset has to change.
once you find that match, auto assemble at the point where the game writes to health of all players, code injection, add [ENABLE] and [DISABLE]
and do this:
Code:
// let's suppose that this is code writes to your hp: mov [eax+10],ebx
// we also suppose that if the offset 14 has a value = 2, that means the unit is yours
push ecx //save ecx (use a register that you don't see in your entire code i use ecx since eax and ebx were use by the original code)
pushfd // save flags
cmp [eax+14],2 // compare the value that you find at offset 14 with value 2, wich is your units
je exit // if it's true that offset 14 = 2 just exit without decreasing the hp
mov [eax+10],ebx //if it's not true that offset 14 = 2, that mean the unit that is about to get hurt is not yours so hurt it!!
exit:
//here goes some originalcode
popfd //restore flags
pop ecx //restore ecx

add to the table the code
i saved ecx even thought i didn't used because sometime it requires for the compare function,
if you don't need it don't save it, nor restore it.

_________________
... Fresco
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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