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 


after auto assembler code restoration code still works.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Fresco
Grandmaster Cheater
Reputation: 4

Joined: 07 Nov 2010
Posts: 600

PostPosted: Fri Feb 17, 2012 9:53 am    Post subject: after auto assembler code restoration code still works. Reply with quote

how is it possible?

i made a simple script that changes a code that writes to multiple values but when i disable it, it doesn't get disabled.

i checked twice the original code (by restarting the game a few times)
also checked twice the [DISABLE] part of my script ...
i double checked the assambled address after code was enabled and then disabled, and every instruction around it is was just like the code had never been enabled

also... i tried to nop the code and then restore it ... (this way works) but only if the auto assamble code have not been executed

_________________
... Fresco
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25796
Location: The netherlands

PostPosted: Fri Feb 17, 2012 4:35 pm    Post subject: Reply with quote

What do you mean with "Doesn't get disabled" Does the checkbox stay enabled ?
Could be there is a syntax error in the disable part that wasn't detected when the script was added (e.g userdefined symbols defined previously but gone now)

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Fresco
Grandmaster Cheater
Reputation: 4

Joined: 07 Nov 2010
Posts: 600

PostPosted: Sat Feb 18, 2012 6:21 am    Post subject: Reply with quote

the code does get disabled (the checkbox does get disabled).
the addresses does return to their original values, but the game still executes my code:

let's just clear things up, I'll post an example:

Code:
[ENABLE]
alloc (mycode,2048)
label(returnhere)
mycode:
//...mycode
jmp returnhere
"game.exe"+0ABCF:
jmp mycode
nop
returnhere:
[DISABLE]
dealloc(mycode)
"game.exe"+0ABCF:
//... originalcode


now when i enable the code "game.exe"+0ABCF jumps to my code, executes it, and then returns after the instruction at "game.exe"+0ABCF

let's just say that original code writes 5 into address 0ABC000F
my code says: write 10 into address 0ABC000F

and it works

when i disable the code, address "game.exe"+0ABCF returns to it's original value, that says: write 5 into address 0ABC000F

but after the code was disabled, and then executed the original code (at address "game.exe"+0ABCF), into address 0ABC000F is still written 10

and like i said before i have checked the instructions before and after "game.exe"+0ABCF and they are the same as the my code was never been enabled

_________________
... Fresco
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25796
Location: The netherlands

PostPosted: Sun Feb 19, 2012 12:12 pm    Post subject: Reply with quote

Make sure you undo ALL the changes in the original code in the [disable] section

I have no idea what your situation is, but if you mean that after disabling the routine that changes your health to 100, it stays 100 and doesn't restore it to -292373 as it should be. That's normal

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Fresco
Grandmaster Cheater
Reputation: 4

Joined: 07 Nov 2010
Posts: 600

PostPosted: Sun Feb 19, 2012 12:33 pm    Post subject: Reply with quote

Quote:
if you mean that after disabling the routine that changes your health to 100, it stays 100 and doesn't restore it to -292373 as it should be. That's normal


i don't get it why it's normal ... if original code writes to health -292373 why health stays 100 after they shoot me ?

_________________
... Fresco
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25796
Location: The netherlands

PostPosted: Sun Feb 19, 2012 12:39 pm    Post subject: Reply with quote

What I meant was that if you changed to code to set health to 100 and you had only 12 hp at the time, disabling it would not set it back to 12 (let alone add the damage you got while it was enabled)

But from what you say it looks like the script is still being executed, so check the places you edited the code of

Also, some games are just bugged. E.g if you write health to a value above the allowed maximum, it will always stay above the max

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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