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 assembler scripts in cheat tables
Goto page Previous  1, 2, 3, 4
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials -> Auto Assembler tutorials
View previous topic :: View next topic  
Author Message
majmun
Newbie cheater
Reputation: 1

Joined: 22 Dec 2012
Posts: 15

PostPosted: Sun Sep 16, 2012 5:50 am    Post subject: Re: Auto assembler scripts in cheat tables Reply with quote

Mr.DarkByte I have a big problem.Can you help me with this files (T-Search) to convert in AA script in Cheat Engine?
What shall i do with this files?Thanks in advanced!

Patched script:
Poke 131DDC0 90 90 90


UnPatched script:
Poke 131DDC0 89 47 14
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8516
Location: 127.0.0.1

PostPosted: Sun Sep 16, 2012 9:58 pm    Post subject: This post has 1 review(s) Reply with quote

It would look like this in Cheat Engine:

Code:

[ENABLE]
131DDC0:
db 90 90 90

[DISABLE]
131DDC0:
db 89 47 14

_________________
- Retired.


Last edited by atom0s on Mon Sep 17, 2012 5:53 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
majmun
Newbie cheater
Reputation: 1

Joined: 22 Dec 2012
Posts: 15

PostPosted: Mon Sep 17, 2012 3:31 am    Post subject: Reply with quote

Thank you Wiccaan!
Back to top
View user's profile Send private message
Elitis
How do I cheat?
Reputation: -1

Joined: 30 Apr 2012
Posts: 0

PostPosted: Mon Sep 17, 2012 11:04 am    Post subject: Reply with quote

Thankyou very awesome
_________________
VEXXUSARTS. COM
Back to top
View user's profile Send private message
xyz0x
Advanced Cheater
Reputation: 0

Joined: 02 Jan 2014
Posts: 78
Location: C:\Program Files (x86)\Cheat Engine 6.6\

PostPosted: Mon Jan 27, 2014 8:01 am    Post subject: Reply with quote

Thanks
Back to top
View user's profile Send private message
JEFERSON
How do I cheat?
Reputation: 0

Joined: 07 Apr 2016
Posts: 0

PostPosted: Thu Apr 07, 2016 5:46 pm    Post subject: Re: Auto assembler scripts in cheat tables Reply with quote

Dark Byte wrote:
Let's say you have a auto assemble script and want to put it in a cheat table so you can easily give it to friends, or to have the ability to enable/disable them with hotkeys.

Then write your script as always, but mark the part where you enable the cheat with [enable] and the part where you turn off the cheat with [disable].

It is recommended to place in the disable part the code to cleanup allocated memory in the enable part to save space, and restore the original code, or use another kind of machanism to define enabled or disabled (e.g a byte set to 0 for disabled cheat and 1 for enabled, etc...)

And if you're just too lazy to add the [enable]/[disable] parts yourself after writing a good script you can click on template->cheat table framework code

when done with your enable and disable parts, click on file->assign to current cheat table. CE will verify if the code is valid, and if it is add it to the cheat table


here is a auto assembler script that is valid for cheat tables (for the pinball game that came with xp sp2)
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)

Pinball.exe+175b7:
jmp newmem
nop
returnhere:

newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov eax,2//change the eax register to 2

//note that I could also have done mov [esi+00000146],2

originalcode:
mov [esi+00000146],eax

exit:
jmp returnhere
 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem) //free memory

Pinball.exe+175b7:
mov [esi+00000146],eax //place the original code back


also, I don't know if it's because I have installed all windows symbols, or if the symbols are suplied by default, but on my comp I can replace "Pinball.exe+175b7" with "TPinballTable::ChangeBallCount+D" and it'll work as well. (and should even work in different versions then)
Back to top
View user's profile Send private message
dpmage83
Newbie cheater
Reputation: 0

Joined: 11 Feb 2016
Posts: 12

PostPosted: Tue Jul 26, 2016 12:19 am    Post subject: Reply with quote

How do I turn something like this
cheatingvash wrote:
Quick Level Up

[ENABLE]

aobscanmodule(INJECT,Phantom Brave PC.exe,01 18 11 70 04) // should be unique
alloc(newmem,$1000)

label(code)
label(return)

newmem:

code:
add [eax],#999
//add [eax],ebx
adc [eax+04],esi
jmp return

INJECT:
jmp code
return:
registersymbol(INJECT)

[DISABLE]

INJECT:
db 01 18 11 70 04

unregistersymbol(INJECT)
dealloc(newmem)

into something that Cheat Engine will recognize? [/quote]
Back to top
View user's profile Send private message
hhhuut
Grandmaster Cheater
Reputation: 6

Joined: 08 Feb 2015
Posts: 607

PostPosted: Tue Jul 26, 2016 2:16 am    Post subject: Reply with quote

Memory View -> Tools -> Auto Assemble -> Paste your code in there

Code:
//Quick Level Up

[ENABLE]

aobscanmodule(INJECT,Phantom Brave PC.exe,01 18 11 70 04) // should be unique
alloc(newmem,$1000)

label(code)
label(return)

newmem:

code:
add [eax],#999
//add [eax],ebx
adc [eax+04],esi
jmp return

INJECT:
jmp code
return:
registersymbol(INJECT)

[DISABLE]

INJECT:
db 01 18 11 70 04

unregistersymbol(INJECT)
dealloc(newmem)


-> File -> Assign to current cheat table
Back to top
View user's profile Send private message
dpmage83
Newbie cheater
Reputation: 0

Joined: 11 Feb 2016
Posts: 12

PostPosted: Tue Jul 26, 2016 12:41 pm    Post subject: Reply with quote

@hhhuut
Ok thank you.
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 Tutorials -> Auto Assembler tutorials All times are GMT - 6 Hours
Goto page Previous  1, 2, 3, 4
Page 4 of 4

 
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