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 


what else can you put in after [DISABLE]

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
guy960915
Expert Cheater
Reputation: 2

Joined: 17 Sep 2007
Posts: 168

PostPosted: Thu Jun 05, 2008 8:02 pm    Post subject: what else can you put in after [DISABLE] Reply with quote

what else can you put in after [DISABLE]?
Back to top
View user's profile Send private message
Skeer
Newbie cheater
Reputation: 0

Joined: 11 May 2007
Posts: 12

PostPosted: Thu Jun 05, 2008 8:20 pm    Post subject: Reply with quote

u can put dealloc, unregistersymbol, and if you changed a address with alloc then u can put what the address function returns to when u untick the code
Back to top
View user's profile Send private message
guy960915
Expert Cheater
Reputation: 2

Joined: 17 Sep 2007
Posts: 168

PostPosted: Fri Jun 06, 2008 8:13 pm    Post subject: Reply with quote

dealloc - i've encounter this
unregister symbol - can you elaborate more

i have some ex. below, is this posible, i tried it but it didn't work , maybe i'm missing something?
[ENABLE]
alloc(newmem,1024)
label(returnhere)
label(originalcode)
label(exit)

BF1942.exe+2ADB4D:
jmp newmem
nop
returnhere:

newmem:
mov [edi+38],4CBEBC20 //float=99999999

originalcode:
mov edx,[edi]
mov [esp+10],ecx

exit:
jmp returnhere

[DISABLE]
mov [edi+38],43480000 //float=200
mov edx,[edi]
mov [esp+10],ecx

dealloc(newmem)
BF1942.exe+2ADB4D:
mov edx,[edi]
mov [esp+10],ecx

What i want to do is when i disable the cheat the 99999999 will return to 200.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 475

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

PostPosted: Sat Jun 07, 2008 7:04 am    Post subject: Reply with quote

try this:
Code:

[ENABLE]
alloc(newmem,1024)
alloc(realaddress,4)
registersymbol(realaddress)
label(returnhere)
label(originalcode)
label(exit)

BF1942.exe+2ADB4D:
jmp newmem
nop
returnhere:

newmem:
push eax
lea eax,[esi+38]
mov [realaddress],eax
pop eax
mov [edi+38],4CBEBC20 //float=99999999

originalcode:
mov edx,[edi]
mov [esp+10],ecx

exit:
jmp returnhere

[DISABLE]
BF1942.exe+2ADB4D:
mov edx,[edi]
mov [esp+10],ecx

realaddress:
dd 43480000

dealloc(newmem)
unregistersymbol(realaddress)

Just when adding it to the cheat table, make sure realaddress is already an existing variable (so execute it manually once, or add realaddress to the userdefined symbols (ctrl+u)) else the verifier will complain

_________________
Tools give you results. Knowledge gives you control.

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

Joined: 17 Sep 2007
Posts: 168

PostPosted: Mon Jun 09, 2008 5:58 am    Post subject: Reply with quote

realaddress:
dd 43480000

what does this do and how does this work?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 475

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

PostPosted: Mon Jun 09, 2008 10:37 am    Post subject: Reply with quote

"dd 43480000" writes the 4 byte value 43480000 at the current address specifier (in this case that of realaddress, which is set to the address your code cave wrote last time to)
_________________
Tools give you results. Knowledge gives you control.

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

Joined: 17 Sep 2007
Posts: 168

PostPosted: Mon Jun 09, 2008 7:57 pm    Post subject: Reply with quote

is there any tut for this, can you give me a link

thanks
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 475

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

PostPosted: Mon Jun 09, 2008 8:14 pm    Post subject: Reply with quote

pressing F1 in ce brings up the helpfile (doesn't work if you have vista). Besides that check out the tutoruial section and auto assembler tut section
_________________
Tools give you results. Knowledge gives you control.

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 -> 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