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 


How to enable built-in cheats in games via Auto Assembler??

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

Joined: 21 May 2014
Posts: 82
Location: India

PostPosted: Tue Jul 01, 2014 4:19 am    Post subject: How to enable built-in cheats in games via Auto Assembler?? Reply with quote

In the game 'Age of Empires II', there is a cheat code (aegis), which has to be typed in the chat box and pressed enter to enable. Is there an auto assembler script which will open the chat box automatically, write 'aegis' in it and then 'press enter'?? If not, what can I do??


pic13.jpg
 Description:
 Filesize:  664.62 KB
 Viewed:  17033 Time(s)

pic13.jpg



_________________
Don't underestimate the power of a common code.
Laughing
Back to top
View user's profile Send private message Visit poster's website
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Tue Jul 01, 2014 8:11 am    Post subject: Reply with quote

Macros are better suited for this sort of thing. However, if memory serves, aegis can be easily manipulated with a boolean.
Back to top
View user's profile Send private message
Sohail__Saha
Advanced Cheater
Reputation: 0

Joined: 21 May 2014
Posts: 82
Location: India

PostPosted: Tue Jul 01, 2014 12:12 pm    Post subject: Reply with quote

Please, can you elaborate what is boolean, and how to use it??
_________________
Don't underestimate the power of a common code.
Laughing
Back to top
View user's profile Send private message Visit poster's website
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Tue Jul 01, 2014 12:54 pm    Post subject: Reply with quote

Boolean... 1/0, true/false etc.

Activate cheat, search for byte type 1. Deactivate, search for 0 etc.
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 43

Joined: 09 Nov 2005
Posts: 2676

PostPosted: Tue Jul 01, 2014 2:25 pm    Post subject: Reply with quote

I believe there was for sending key presses to game. Search in the lua section, i just can't be arsed to do a job you need to do sorry
_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
Sohail__Saha
Advanced Cheater
Reputation: 0

Joined: 21 May 2014
Posts: 82
Location: India

PostPosted: Wed Jul 02, 2014 4:29 am    Post subject: Reply with quote

Sadly, there is not a 'deactivate' code. Once you enter it, it remains activated Crying or Very sad
@STN Stop being a jerk. No one asked for your dumb answer Mad

_________________
Don't underestimate the power of a common code.
Laughing
Back to top
View user's profile Send private message Visit poster's website
justa_dude
Grandmaster Cheater
Reputation: 23

Joined: 29 Jun 2010
Posts: 893

PostPosted: Wed Jul 02, 2014 8:51 am    Post subject: Reply with quote

He's just trying to get his signature with the link to his site, which I believe is a SCAM site, out in front of as many eyes as possible, to better get people to download his files (trojans according to my anti virus) and foolishly pay for them.
_________________
A nagy kapu mellett, mindig van egy kis kapu.
----------------------
Come on...
Back to top
View user's profile Send private message
Sohail__Saha
Advanced Cheater
Reputation: 0

Joined: 21 May 2014
Posts: 82
Location: India

PostPosted: Wed Jul 02, 2014 12:36 pm    Post subject: Reply with quote

Hey +++METHOS, I was wrong. It is working.
Code:

{ Game   : AoK HD.exe
  Version:
  Date   : 2014-07-02
  Author : WIN7

  This script does blah blah blah??
}

[ENABLE]

aobscanmodule(aegis,AoK HD.exe,83 B8 2C 07 00 00 00 75) // should be unique
alloc(newmem,$1000)

label(return)

newmem:
  cmp dword ptr [eax+0000072C],00//original
mov [eax+0000072C],1//cheat enabled
  jmp return

aegis:
  jmp newmem
  nop
  nop
return:
registersymbol(aegis)

[DISABLE]

aegis:
  db 83 B8 2C 07 00 00 00

unregistersymbol(aegis)
dealloc(newmem)

{
// ORIGINAL CODE - INJECTION POINT: "AoK HD.exe"+202D24

"AoK HD.exe"+202D09: 8A 67 44                 -  mov ah,[edi+44]
"AoK HD.exe"+202D0C: 80 FC 01                 -  cmp ah,01
"AoK HD.exe"+202D0F: 76 54                    -  jna "AoK HD.exe"+202D65
"AoK HD.exe"+202D11: 8A 47 45                 -  mov al,[edi+45]
"AoK HD.exe"+202D14: 0F B6 C8                 -  movzx ecx,al
"AoK HD.exe"+202D17: 0F B6 C4                 -  movzx eax,ah
"AoK HD.exe"+202D1A: 41                       -  inc ecx
"AoK HD.exe"+202D1B: 3B C1                    -  cmp eax,ecx
"AoK HD.exe"+202D1D: 7E 46                    -  jle "AoK HD.exe"+202D65
"AoK HD.exe"+202D1F: A1 6C 20 93 01           -  mov eax,["AoK HD.exe"+77206C]
// ---------- INJECTING HERE ----------
"AoK HD.exe"+202D24: 83 B8 2C 07 00 00 00     -  cmp dword ptr [eax+0000072C],00
// ---------- DONE INJECTING  ----------
"AoK HD.exe"+202D2B: 75 46                    -  jne "AoK HD.exe"+202D73
"AoK HD.exe"+202D2D: 8B 47 08                 -  mov eax,[edi+08]
"AoK HD.exe"+202D30: 8B 40 0C                 -  mov eax,[eax+0C]
"AoK HD.exe"+202D33: 8B 80 8C 00 00 00        -  mov eax,[eax+0000008C]
"AoK HD.exe"+202D39: F3 0F 10 80 AC 00 00 00  -  movss xmm0,[eax+000000AC]
"AoK HD.exe"+202D41: F3 0F 58 47 4C           -  addss xmm0,[edi+4C]
"AoK HD.exe"+202D46: 0F 2F 47 48              -  comiss xmm0,[edi+48]
"AoK HD.exe"+202D4A: F3 0F 11 47 4C           -  movss [edi+4C],xmm0
"AoK HD.exe"+202D4F: 72 14                    -  jb "AoK HD.exe"+202D65
"AoK HD.exe"+202D51: 8B 07                    -  mov eax,[edi]
}

One last help, I want to move '0' into [eax+0000072C] when I disable the cheat. Any ideas on how to do it??

_________________
Don't underestimate the power of a common code.
Laughing
Back to top
View user's profile Send private message Visit poster's website
STN
I post too much
Reputation: 43

Joined: 09 Nov 2005
Posts: 2676

PostPosted: Wed Jul 02, 2014 12:54 pm    Post subject: Reply with quote

Sohail__Saha wrote:
Sadly, there is not a 'deactivate' code. Once you enter it, it remains activated Crying or Very sad
@STN Stop being a jerk. No one asked for your dumb answer Mad


Wait what the fuck i am being a jerk ?. You asked for an auto assembler script that will send key presses. I told you there is one in lua section and you need to search instead of asking others to do the job you should be doing. This is the thread (first result i got when i searched keypresses)
http://forum.cheatengine.org/viewtopic.php?t=547656

I don't like spoon-feeding people and thats what i told you. +1 for Methos on suggesting a work-around for what you're trying to achieve.

@justa_dude: That is not even true and this thread is not even the place for your bitchiness especially when nothing i said was up for argument. Reported

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Wed Jul 02, 2014 1:28 pm    Post subject: Reply with quote

Sohail__Saha-
Just set up a custom address and use that for activation. For example:

Code:
[ENABLE]

aobscanmodule(aegis,AoK HD.exe,83 B8 2C 07 00 00 00 75)
alloc(newmem,$1000)

label(return)
label(aegis_enabled)

registersymbol(aegis_enabled)
registersymbol(aegis)

newmem:
push edi
mov edi,[aegis_enabled]
mov [eax+0000072C],edi
pop edi
cmp dword ptr [eax+0000072C],00
jmp return

aegis_enabled:
dd 0

aegis:
jmp newmem
nop
nop
return:

[DISABLE]
dealloc(newmem)
aegis:
db 83 B8 2C 07 00 00 00

unregistersymbol(aegis)
unregistersymbol(aegis_enabled)


All you will have to do is add a custom address to your cheat table with the address of aegis_enabled, and set up a hotkey for 1/0 on/off.

This is one way to do it.
Back to top
View user's profile Send private message
Sohail__Saha
Advanced Cheater
Reputation: 0

Joined: 21 May 2014
Posts: 82
Location: India

PostPosted: Thu Jul 03, 2014 12:32 pm    Post subject: Reply with quote

Thanks, I will upload my trainer here soon...
_________________
Don't underestimate the power of a common code.
Laughing
Back to top
View user's profile Send private message Visit poster's website
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