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 


[Problem] My first AA script for Minesweeper

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
eranj
How do I cheat?
Reputation: 0

Joined: 28 Feb 2010
Posts: 9

PostPosted: Thu Mar 04, 2010 3:28 pm    Post subject: [Problem] My first AA script for Minesweeper Reply with quote

I tried to make god mode for Minesweeper but when i click on a Mine the program get error and quit.

i found that there is a address (winmine.exe+5000) that when it equals to 1 it let you keep playing and when its equals to 16 its stop the game (because you loss..).
I know i can just freeze the address on the value 1 but I want to try it with AA.
here is my code:


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)

010034DE:
jmp newmem
returnhere:

newmem: //this is allocated memory, you have read,write,execute access
//place your code here
sub [eax],al

originalcode:
add [eax],al
pop esi
je 0100350f

exit:
jmp returnhere

 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
010034DE:
add [eax],al
pop esi
je 0100350f
//Alt: db 00 00 5E 74 2C


I know i newbie but if you correct it, can you explain?
Back to top
View user's profile Send private message
Tom331
Cheater
Reputation: 0

Joined: 14 Jul 2007
Posts: 25

PostPosted: Fri Mar 05, 2010 9:57 pm    Post subject: Reply with quote

The only problem I see with the actual code is that in the "newmem" bit you need to put a jump back to the original code Smile
so just add "jmp exit"

However you might wana check the addresses, 10034DE isn't the address of any instructions, its half way through one Wink

Note:I think you should practice and get a bit more experience with asm basics before getting ahead of yourself =]
Back to top
View user's profile Send private message
eranj
How do I cheat?
Reputation: 0

Joined: 28 Feb 2010
Posts: 9

PostPosted: Sat Mar 06, 2010 9:54 am    Post subject: Reply with quote

Have any recommendations for sources?
I know asm but i cant understand why when i loss a game the program crash..(because of this script).
10034DE is the the address that increase the number that in winmine.exe+5000 .
Back to top
View user's profile Send private message
Tom331
Cheater
Reputation: 0

Joined: 14 Jul 2007
Posts: 25

PostPosted: Sun Mar 07, 2010 9:32 am    Post subject: Reply with quote

Its not, its part way through the address that moves 16 into the address that stops you playing, the original instruction is

010034D6 MOV DWORD PTR DS:[1005000],10 //16 in hex

you are writing add [eax], al to 010034DE, which is part way through this instruction which basically messes up the flow of the program causing it to crash
Back to top
View user's profile Send private message
GutenLinux
How do I cheat?
Reputation: 0

Joined: 04 Oct 2010
Posts: 1
Location: China

PostPosted: Sun Oct 31, 2010 12:23 am    Post subject: Reply with quote

Tom331 wrote:
Its not, its part way through the address that moves 16 into the address that stops you playing, the original instruction is

010034D6 MOV DWORD PTR DS:[1005000],10 //16 in hex

you are writing add [eax], al to 010034DE, which is part way through this instruction which basically messes up the flow of the program causing it to crash


yeah, that's it.
infinite click

Code:

[ENABLE]
010034D6:
  nop
[DISABLE]
010034D6:
  mov [01005000], 10
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 Gamehacking 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