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 


qustion about enable and disable

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Negima
I post too much
Reputation: 5

Joined: 22 May 2007
Posts: 2221

PostPosted: Fri Aug 03, 2007 3:03 pm    Post subject: qustion about enable and disable Reply with quote

i understand enable, but I dont understand disable. lets say the enable of unlimited HP for a game is
Code:

[enable]
0033567:
mov eax,999999999


that moves the value of the HP to 999999999. but what would i put for disable? someone told me put it back to its original value. I dont understand that.
Back to top
View user's profile Send private message Visit poster's website
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Fri Aug 03, 2007 4:11 pm    Post subject: Reply with quote

That will change your HP to 41231686041 not 999999999, thats if the game will let it get that high.

Disable is writing th original instruction back so it basically will turn off the cheat. Im guessing it was ecx.
Code:

[ENABLE]
0033567:
mov eax,999999999

[DISABLE]
0033567:
mov eax,ecx


You need to also learn to convert hexadecimal and decimal since you think that gives you 999999999 HP.
If you want that to be your health you will move 3B9AC9FF to eax.
Code:
mov eax,3B9AC9FF


This thread should give you a little more knowledge about scripts for CE.
http://forum.cheatengine.org/viewtopic.php?t=112385


Last edited by Labyrnth on Fri Aug 03, 2007 4:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
Negima
I post too much
Reputation: 5

Joined: 22 May 2007
Posts: 2221

PostPosted: Fri Aug 03, 2007 4:20 pm    Post subject: Reply with quote

Labyrnth wrote:
That will change your HP to 41231686041 not 999999999, thats if the game will let it get that high.

Disable is writing th original instruction back so it basically will turn off the cheat. Im guessing it was ecx.
Code:

[ENABLE]
0033567:
mov eax,999999999

[DISABLE]
0033567:
mov eax,ecx


You need to also learn to convert hexadecimal and decimal since you think that gives you 999999999 HP.
If you want that to be your health you will move 3B9AC9FF to eax.
Code:
mov eax,3B9AC9FF


This thread should give you a little more knowledge about scripts for CE.
http://forum.cheatengine.org/viewtopic.php?t=101433
what about nopin. I know noping sets values to zero. but how would i set the disable for it
Back to top
View user's profile Send private message Visit poster's website
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Fri Aug 03, 2007 4:25 pm    Post subject: Reply with quote

Nop doesnt set values to zero.
It sets bytes to 90, But not the value of an address to zero

But to nop you would just use nop
Code:

[ENABLE]
71C6A4A1:
nop
nop
nop

or you can do
Code:

[ENABLE]
71C6A4A1:
DB 90 90 90

Depends on how many bytes you need to nop out.

Read the link i sent you, if you do read it you will understand what im saying.

Surly your not thinking you can disable the cheat by using nop?
If thats what your thinking you are way off, and need to read and learn to write scripts.
Back to top
View user's profile Send private message
Negima
I post too much
Reputation: 5

Joined: 22 May 2007
Posts: 2221

PostPosted: Fri Aug 03, 2007 5:03 pm    Post subject: Reply with quote

Labyrnth wrote:
Nop doesnt set values to zero.
It sets bytes to 90, But not the value of an address to zero

But to nop you would just use nop
Code:

[ENABLE]
71C6A4A1:
nop
nop
nop

or you can do
Code:

[ENABLE]
71C6A4A1:
DB 90 90 90

Depends on how many bytes you need to nop out.

Read the link i sent you, if you do read it you will understand what im saying.

Surly your not thinking you can disable the cheat by using nop?
If thats what your thinking you are way off, and need to read and learn to write scripts.
OHHHHHHHH i c. but how would i make a hex that is equal to the max hp?
Back to top
View user's profile Send private message Visit poster's website
injex
Master Cheater
Reputation: 0

Joined: 14 May 2007
Posts: 272

PostPosted: Fri Aug 03, 2007 7:26 pm    Post subject: Reply with quote

Change the dec number of the max hp into hex? o_o

Else: 9e99 Cool
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Fri Aug 03, 2007 8:49 pm    Post subject: Reply with quote

calc.exe
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Fri Aug 03, 2007 9:24 pm    Post subject: Reply with quote

Wait a minute. I though noping was like the equivalent of making something null, wait that is setting the value to 0 T.T. Yeah noping in AA sets the bytes to 90. The equivalent could be like DB 90 90 90
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Sat Aug 04, 2007 6:13 am    Post subject: Reply with quote

the orginal op-code...
becuase its acting normal when its normal (smart sentence) and when u change it it changes to what u changed...
u can change to whatever u want but when u want to disable just put the orginal op-code so it will act normal...
understand?
Back to top
View user's profile Send private message
smartz993
I post too much
Reputation: 2

Joined: 20 Jun 2006
Posts: 2013
Location: USA

PostPosted: Sat Aug 04, 2007 12:33 pm    Post subject: Re: qustion about enable and disable Reply with quote

Negima wrote:
i understand enable, but I dont understand disable. lets say the enable of unlimited HP for a game is
Code:

[enable]
0033567:
mov eax,999999999


that moves the value of the HP to 999999999. but what would i put for disable? someone told me put it back to its original value. I dont understand that.


Go to 0033567 in memory view of CE. Find out what the code is without the cheat enabled. Then put it under disable.

Enable is what happens when you tick the script. Disable is what happens when you untick the script. You usually want to set everything back to normal.
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sat Aug 04, 2007 3:37 pm    Post subject: Reply with quote

oib111 wrote:
Wait a minute. I though noping was like the equivalent of making something null, wait that is setting the value to 0 T.T. Yeah noping in AA sets the bytes to 90. The equivalent could be like DB 90 90 90


NOP stands for no operation, which does exactly as you would imagine. If I remember right, null isn't so much 0 as it is no real value at all. Though it's pretty much implemented as 0 in most cases.
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Sat Aug 04, 2007 5:11 pm    Post subject: Reply with quote

NULL is (void*)0

means something else in weird backwards languages like javascript.
Back to top
View user's profile Send private message
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Mon Aug 06, 2007 12:47 pm    Post subject: Reply with quote

"Nop" means simply,

"Ignore me! I do nothing!"

It doesn't edit anything, it doesn't set anything to 0, it doesn't do anything.
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Mon Aug 06, 2007 12:55 pm    Post subject: Reply with quote

nah... nop could be used for data alignment.
_________________
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 programming 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