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 


Initialize section in AA script

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

Joined: 08 Jul 2006
Posts: 708
Location: USA, Mass

PostPosted: Tue Oct 24, 2006 6:32 am    Post subject: Initialize section in AA script Reply with quote

Hi DB,

I have a question regarding the AA scripts.
Right now you have the Enable and Disable section so we can allocate/deallocate memory. How do we initialize what is allocated? I have seen AA scripts that do something like this

variable:
add [eax], al
add [eax], al

to set variable to 0, but how can we set it to different value?
Since I wasn't able to bypass CRC yet, so it really is a waste if I have to use an EIP to set the variable.

The reason I ask about this is as of now hack scripts are becoming more complicate, with all the people scanner, changing your location etc. If every script use the same pointer, everytime there is an update all the script must be edited to change the address. If I can register a global variable and use it every where in the scripts then just set the variable in one script only, this way everytime there is a changed, all I need to do is change in one script.

Thanks,

_________________
People encountered at CEF.

* I don't care if he wrote the code, I say it is open source then it is open source.
* I don't care if it is his trainer, if I say he can't have that hack in there, then he can't.
* Appalsap, your trainer is L337
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 474

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

PostPosted: Tue Oct 24, 2006 6:42 am    Post subject: Reply with quote

alloc(myallocedmemory,128)

myallocedmemory:
db 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
db 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
db 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
db 1,1,1,1,1,1,1,1

will fill myallocedmemory memory with 128 times a 1.

of to place a 4 byte dword there:
myallocedmemory:
dd 12345678

and to make it even nice:
label(blaaa)

myallocedmemory:
dd blaaa
blaaa:
nop
nop
nop

makes myallocedmemory hold the memory as:
address of blaaaa
nop
nop
nop

_________________
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
xentar
Grandmaster Cheater
Reputation: 0

Joined: 08 Jul 2006
Posts: 708
Location: USA, Mass

PostPosted: Tue Oct 24, 2006 7:30 am    Post subject: Reply with quote

Thank you very much.

I understand everything above this
Quote:

and to make it even nice:
label(blaaa)

myallocedmemory:
dd blaaa
blaaa:
nop
nop
nop

makes myallocedmemory hold the memory as:
address of blaaaa
nop
nop
nop

This part I am not sure, but here is how I understand it.

blaaa can be an allocated memory with variable name or just a label.
so when "dd blaaa" like this under another label section that label will have the same value as blaaa.

If I understand that correctly, this is useful in case where you have to initialize a lot of variables with the same value, if it is a lot of data, all you have to do is defined under one label and use it everywhere else.

Is this correct?

again thank you, I only ask for a paragraph and i got the whole book.[/quote]

_________________
People encountered at CEF.

* I don't care if he wrote the code, I say it is open source then it is open source.
* I don't care if it is his trainer, if I say he can't have that hack in there, then he can't.
* Appalsap, your trainer is L337
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