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 


auto script--help

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

Joined: 26 Mar 2006
Posts: 25
Location: israel

PostPosted: Fri Feb 16, 2007 11:00 am    Post subject: auto script--help Reply with quote

hello
im having abit trobble with a scrip i wanna make:

i want to take a value from one addres --> 010057a0
and place it into another --> 010057a4

and to put this script into a trainer lets say..
Quote:

[ENABLE]
alloc(newmem,1024)
label(return)

01003033:
jmp newmem
nop
return:

newmem:
mov [010057a4], 010057a0
jmp return

[DISABLE]
dealloc(newmem)

01003033:
inc [010057a4]

but the script wont work..
it wont change the address..
any help?
Back to top
View user's profile Send private message MSN Messenger
SXGuy
I post too much
Reputation: 0

Joined: 19 Sep 2006
Posts: 3551

PostPosted: Fri Feb 16, 2007 12:28 pm    Post subject: Re: auto script--help Reply with quote

from what i can tell, your script is moving the address into the other address. not the value.

you need to compare the value of one address, and jump if equal to the value you want to place in the other address.

then move the value of that address into the other.

understand?

_________________
Proud member of "The DACEF" (Distruction Against Criminal Egotistical Forces"

Sign up today and receive your free "I Hate x0r Badge"
Back to top
View user's profile Send private message
moshe
Cheater
Reputation: 0

Joined: 26 Mar 2006
Posts: 25
Location: israel

PostPosted: Fri Feb 16, 2007 1:58 pm    Post subject: Reply with quote

i understood..
but i dont have a clue on how to write it..
can you help me?
Back to top
View user's profile Send private message MSN Messenger
SXGuy
I post too much
Reputation: 0

Joined: 19 Sep 2006
Posts: 3551

PostPosted: Sat Feb 17, 2007 3:10 am    Post subject: Reply with quote

where is the value stored? eax? edi?
Code:

[ENABLE]
010057a0:
push (value)
jmp 01003033
mov [010057a4], (value)

[DISABLE]
01003033:
inc [010057a4]


replace (value) with whatever its stored in.
not the exact way of writing it, but you should get what im trying to do

_________________
Proud member of "The DACEF" (Distruction Against Criminal Egotistical Forces"

Sign up today and receive your free "I Hate x0r Badge"
Back to top
View user's profile Send private message
moshe
Cheater
Reputation: 0

Joined: 26 Mar 2006
Posts: 25
Location: israel

PostPosted: Sat Feb 17, 2007 5:38 am    Post subject: Reply with quote

the value is stored in the addres .. 010057a0
and can you explain to me what you wrote?
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 475

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

PostPosted: Sat Feb 17, 2007 5:57 am    Post subject: Reply with quote

so at the address that stores the number of spaces you've cleaned you want to store the total number of non-mine spots, so you instantly win

Code:

[ENABLE]
alloc(newmem,1024)
label(return)

01003033:
jmp newmem
nop
return:

newmem:
push eax  //save the state of eax
mov eax,[010057a0]  //place in eax the value of 010057a0
mov [010057a4], eax  //store the value of eax at 010057a4
pop eax  //restore eax
jmp return

[DISABLE]
dealloc(newmem)

01003033:
inc [010057a4]

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

Joined: 26 Mar 2006
Posts: 25
Location: israel

PostPosted: Sat Feb 17, 2007 7:51 am    Post subject: Reply with quote

thanks dark byte!
my brother got home a few min b4 you posted this
and explained to me what to do...
thanks anyway! how did you know im talking about minesweeper?!
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 475

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

PostPosted: Sat Feb 17, 2007 7:53 am    Post subject: Reply with quote

I know it's sad, but I actually remember the addresses of those simple games
_________________
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
SXGuy
I post too much
Reputation: 0

Joined: 19 Sep 2006
Posts: 3551

PostPosted: Sat Feb 17, 2007 10:52 am    Post subject: Reply with quote

LOL thanx db. i personally didnt have a clue what game it was refering to.
_________________
Proud member of "The DACEF" (Distruction Against Criminal Egotistical Forces"

Sign up today and receive your free "I Hate x0r Badge"
Back to top
View user's profile Send private message
moshe
Cheater
Reputation: 0

Joined: 26 Mar 2006
Posts: 25
Location: israel

PostPosted: Sat Feb 17, 2007 2:08 pm    Post subject: Reply with quote

i found a much easry way of doing this..(as i think.. what do i know?!)
but i got a problem...

i looked in the game and noticed that every time you press on a squere
the game checks and see if the number or squerse you pressed
is equal to the max number of squers you can press

Quote:
mov eax,[010057a4]
cmp eax,[010057a0]
jne 010035b0


so you have 2 ways of bypassing this:..(as i think.. what do i know?!)

comper the EAX to himself-
Quote:
mov eax,[010057a4]
cmp eax,eax
jne 010035b0


or placing a NOP instad of the jump if not equal-
Quote:
mov eax,[010057a4]
cmp eax,[010057a0]
NOP


and this is what i did-
i changed the cmp eax,[010057a0]
to cmp eax,eax
Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat

alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)

010035A1:
jmp newmem
nop
returnhere:

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

cmp eax,eax

exit:
jmp returnhere
 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat

dealloc(newmem)
010035A1:
cmp eax,[010057a0]


in the CT it worked fine..
but when i tryed to put it into a trainer it didnt worked at all..
anyhelp?
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