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 


Outline

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
SLaYaH
Master Cheater
Reputation: 0

Joined: 02 Jul 2006
Posts: 356

PostPosted: Thu May 29, 2008 7:16 pm    Post subject: Outline Reply with quote

Can anyone show me or hint me towards making a script to change the value of an address to 0?

mov [address], 0

and would I have to alloc any memory .. ?
using [enable] and [disable]
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 475

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

PostPosted: Thu May 29, 2008 8:14 pm    Post subject: Reply with quote

Code:

address:
dd 0

will make it 0 when the script is executed. So no need to wait for the game to execute it for you

and [enable] / [disable] is only needed if you want to add it to your cheat table (and subsequently add it to a standalone trainer)

_________________
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
SLaYaH
Master Cheater
Reputation: 0

Joined: 02 Jul 2006
Posts: 356

PostPosted: Thu May 29, 2008 8:36 pm    Post subject: Reply with quote

Dark Byte wrote:
Code:

address:
dd 0

will make it 0 when the script is executed. So no need to wait for the game to execute it for you

and [enable] / [disable] is only needed if you want to add it to your cheat table (and subsequently add it to a standalone trainer)


Thanks for the reply, and yeah I mentioned that because I do want to add it to my cheat table.

I haven't seen that type of register before?
anyhow how do you return the address back to the value it was before?

So would it be
[enable]
028D515C:
dd 0

027C7F34:
dd 0

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

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

PostPosted: Thu May 29, 2008 8:43 pm    Post subject: Reply with quote

you really want to remember the original value?
if not, the script you have is valid

but if you want to store it:
Code:

[enable]
alloc(oldmem1,4);
registersymbol(oldmem1)

alloc(oldmem2,4);
registersymbol(oldmem2)

oldmem1:
readmem(028D515C,4)

oldmem2:
readmem(027C7F34,4)

028D515C:
dd 0

027C7F34:
dd 0

[disable]

028D515C:
readmem(oldmem1,4)

027C7F34:
readmem(oldmem2,4)

unregistersymbol(oldmem1)
unregistersymbol(oldmem2)
dealloc(oldmem1)
dealloc(oldmem2)


a small bug bypass:
when adding this this to the table, manually add oldmem1 and oldmem2 to the userdefined symbol list (ctrl+u in the memory view window)
else it'll complain it doesn't know oldmem1/oldmem2 when assigning to the table

_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping


Last edited by Dark Byte on Thu May 29, 2008 8:49 pm; edited 2 times in total
Back to top
View user's profile Send private message MSN Messenger
SLaYaH
Master Cheater
Reputation: 0

Joined: 02 Jul 2006
Posts: 356

PostPosted: Thu May 29, 2008 8:47 pm    Post subject: Reply with quote

ah thanks highly appreciated =)
Back to top
View user's profile Send private message
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