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 


Beginner Problem: Auto Assembler

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

Joined: 08 Nov 2013
Posts: 2
Location: Germany

PostPosted: Fri Nov 08, 2013 12:37 pm    Post subject: Beginner Problem: Auto Assembler Reply with quote

Hey there, and sorry for opening a thread for such a little problem.

I've read the tutorial of samuri25404..
It was very helpful, but I still have an error.

Code:

[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat

alloc(Cheat, 512)

001C5BE8:
jmp Cheat

Cheat:
add 001C5BE8, #100


It is the CE-Tutorial.
I want to add 100 to the health, if I execute the script (assign to current Cheat Table)

Thanks in advance!

_________________
Done Tutorial, except last one.
Learning Auto Assembler..
Back to top
View user's profile Send private message
omoe
Grandmaster Cheater
Reputation: 8

Joined: 11 Jun 2013
Posts: 547

PostPosted: Fri Nov 08, 2013 2:24 pm    Post subject: Reply with quote

You must have a disable part .
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Fri Nov 08, 2013 2:30 pm    Post subject: Reply with quote

No, this must not be done with auto assembler in the first place.

Just use an table entry to increase the value

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Sepa72
How do I cheat?
Reputation: 0

Joined: 08 Nov 2013
Posts: 2
Location: Germany

PostPosted: Fri Nov 08, 2013 6:31 pm    Post subject: Reply Reply with quote

Dark Byte wrote:
Quote:
No, this must not be done with auto assembler in the first place.

Just use an table entry to increase the value


I know how it works, but I want to do it with a script.
The tutorial is just for testing it.
So how to I increment it using a AA script?

omoe wrote:
Quote:
You must have a disable part .


I do have.
One [ENABLE] and [DISABLE].[/quote]


Edit:
Forget it.
I have got this code:


Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat

alloc(Cheat, 1024)

00195BE8:
jmp Cheat

Cheat:
mov eax, (float)5
mov [esi+00195BE8],eax
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(Cheat)
alloc(newmem,256)


newmem:
mov byte ptr [Tutorial-i386.exe+1559D0],00
call Tutorial-i386.exe+154850
mov eax,Tutorial-i386.exe+2340A0
call Tutorial-i386.exe+10920
ret
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add bh,bh
db -01
db -01
inc [eax]
add [eax],al
add bh,bh
db -01
db -01
inc [eax]
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al
add [eax],al


The health value will be: 597955561

I just want to set the value to 100 using a script.

_________________
Done Tutorial, except last one.
Learning Auto Assembler..
Back to top
View user's profile Send private message
Redouane
Master Cheater
Reputation: 3

Joined: 05 Sep 2013
Posts: 363
Location: Algeria

PostPosted: Sun Nov 10, 2013 6:13 am    Post subject: Re: Beginner Problem: Auto Assembler Reply with quote

Sepa72 wrote:
Hey there, and sorry for opening a thread for such a little problem.

I've read the tutorial of samuri25404..
It was very helpful, but I still have an error.

Code:

[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat

alloc(Cheat, 512)

001C5BE8:
jmp Cheat

Cheat:
add 001C5BE8, #100


It is the CE-Tutorial.
I want to add 100 to the health, if I execute the script (assign to current Cheat Table)

Thanks in advance!


As I see,this code would crash your game,use returnhere at the end of your code cave,do this:
Code:

[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat

alloc(Cheat, 512)
label(returnhere)
001C5BE8:
jmp Cheat
returnhere:
Cheat:
add [001C5BE8], #100
jmp returnhere
[DISABLE]

If you do add 0015BE8,#100 it won't add 100 to the value that is stored at that address, add eax,5 will increase eax by 5 (can be used as storage while add [eax],5 will increase the value of the address of eax by 5 (it wont affect eax itself.
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