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 


Need some help with Auto Assembler? (I'm a noob)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
$hadow
Newbie cheater
Reputation: 1

Joined: 14 Aug 2009
Posts: 11
Location: Undefined

PostPosted: Tue Jan 04, 2011 5:34 pm    Post subject: Need some help with Auto Assembler? (I'm a noob) Reply with quote

First of all, thanks for taking the time to read this!

And second, I'm a complete noob at this.


So obviously I'm starting with Minesweeper.

I'm trying to make the timer increase to 60, then decrease to 0, and repeat.

I don't really know what's wrong with the script, although I have a few thoughts.


I did this with the code injection template:

Code:

alloc(increasing,1024)   //which was "newmem" in the template
alloc(decreasing,1024)
label(returnhere)
label(originalcode)
label(exit)

01002FF5:
jmp increasing
nop
returnhere:

increasing:
inc [0100579c]
cmp [0100579c],0
je decreasing
jne increasing

decreasing:
dec [0100579c]
cmp [0100579c],3C   //3C would be 60
je increasing
jne decreasing


originalcode:
nop   //it was inc [0100579c] first

exit:
jmp returnhere


Btw, I can inject it but nothing changes.

Thanks for any help!
Back to top
View user's profile Send private message
Geri
Moderator
Reputation: 111

Joined: 05 Feb 2010
Posts: 5627

PostPosted: Tue Jan 04, 2011 6:18 pm    Post subject: Reply with quote

This will set the timer to 0 when it is reaching 60.
Btw, I have no idea why it is making any sense to change it to 60 then 0 and 60 again and 0 again.


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)

newmem: //this is allocated memory, you have read,write,execute access
inc [0100579C]
cmp [0100579C],3C
jne originalcode
mov [0100579C],0

originalcode:
//inc [0100579C]

exit:
jmp returnhere

"winmine.exe"+2FF5:
jmp newmem
nop
returnhere:


 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"winmine.exe"+2FF5:
inc [0100579C]
//Alt: db FF 05 9C 57 00 01



Your code just seems to be an infinite loop. When will it end?

_________________
My trainers can be found here: http://www.szemelyesintegracio.hu/cheats

If you are interested in any of my crappy articles/tutorials about CE and game hacking, you can find them here:
http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles

Don't request cheats or updates.


Last edited by Geri on Tue Jan 04, 2011 6:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Tue Jan 04, 2011 6:19 pm    Post subject: Reply with quote

I don't know why he want this, but. Here:

Code:
alloc(newmem,1024)   //which was "newmem" in the template
label(returnhere)
label(inc1_dec0)
label(increase)
label(pass)

01002FF5:
jmp newmem
nop
returnhere:

newmem:
cmp [inc1_dec0],1
je increase

dec [0100579c]
cmp [0100579c],0
jne pass
mov [inc1_dec0],1
jmp short pass

increase:
inc [0100579c]
cmp [0100579c],3c
jne pass
mov [inc1_dec0],0

pass:
jmp returnhere
 
inc1_dec0:
db 01



Geri wrote:
Your code just seems to be an infinite loop. When will it end?

It will never end Razz

_________________
Back to top
View user's profile Send private message MSN Messenger
Geri
Moderator
Reputation: 111

Joined: 05 Feb 2010
Posts: 5627

PostPosted: Tue Jan 04, 2011 6:23 pm    Post subject: Reply with quote

Quote:
It will never end


Yeah, that's my point. It doesn't make sense.

_________________
My trainers can be found here: http://www.szemelyesintegracio.hu/cheats

If you are interested in any of my crappy articles/tutorials about CE and game hacking, you can find them here:
http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles

Don't request cheats or updates.
Back to top
View user's profile Send private message
$hadow
Newbie cheater
Reputation: 1

Joined: 14 Aug 2009
Posts: 11
Location: Undefined

PostPosted: Tue Jan 04, 2011 6:47 pm    Post subject: Reply with quote

I was doing it for the learning and experimenting part of it Razz

I observed the codes and I understand now.

Thank you both for your help!
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