| View previous topic :: View next topic   | 
	
	
	
		| Author | 
		Message | 
	
	
		BilliardBully Miniclip How do I cheat?
  Reputation: 0
  Joined: 01 Dec 2014 Posts: 6
 
  | 
		
			
				 Posted: Mon Dec 08, 2014 6:26 am    Post subject: Cheat Engine simple AoB replace trainer. | 
				       | 
			 
			
				
  | 
			 
			
				Hello Cheat Engine forum. 
 
 
I need to make a trainer which is able to automatically scan and replace AoB codes that I would integrate. I have made a trainer which allocates the address (initial Aob) and then replaces it. Unfortunately the address is not constant unlike the AoB. So I need a trainer generator or some sort of tutorial. I have the codes with its respective replace codes. I would like it to be customizable (add my image etc.). 
 
 
I know I should be using this/similar function: 
 
 
{'1. Break No Guideline Rooms',
 
[[LuaCall(Aobswap("27 61 c1 4f 47 47","26 61 c1 4f 47 47"))]],
 
[[Enable Guideline in No Line Rooms]]},
 
 
Any help, kindly appreciated - BBH.  
 
Note: Dealing with Miniclip's .swf
 | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		daspamer Grandmaster Cheater Supreme
  Reputation: 54
  Joined: 13 Sep 2011 Posts: 1588
 
  | 
		
			
				 Posted: Mon Dec 08, 2014 2:17 pm    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				that's the easy trainer generator format I've made for the hacks.... just use it instead.
 _________________
 I'm rusty and getting older, help me re-learn lua.  | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		BilliardBully Miniclip How do I cheat?
  Reputation: 0
  Joined: 01 Dec 2014 Posts: 6
 
  | 
		
			
				 Posted: Tue Dec 09, 2014 6:19 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				Thanks Boss, that's some fine work   
 
 
Where do I paste my search and replace AoB codes? 
 
Must I substitute it where is says: 
 
 
function Aobswap(search, change) 
 
 
I would like to scan and replace multiple AoBs.
 | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		daspamer Grandmaster Cheater Supreme
  Reputation: 54
  Joined: 13 Sep 2011 Posts: 1588
 
  | 
		
			
				 Posted: Tue Dec 09, 2014 4:29 pm    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				Either assign it in parts or just add the 	  | Code: | 	 		  |  luacall(Aobswap("in","out")) | 	  
 
in several lines
 
 
So it'd be for example like this
 
 	  | Code: | 	 		   luacall(Aobswap("ff 01 00","00 00 02"))
 
luacall(Aobswap("ff 02 00","00 00 02"))
 
luacall(Aobswap("ff 03 00","00 00 02"))
 
luacall(Aobswap("ff 04 00","00 00 02")) | 	  
 _________________
 I'm rusty and getting older, help me re-learn lua.  | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		Dark Byte Site Admin
  Reputation: 470
  Joined: 09 May 2003 Posts: 25807 Location: The netherlands
  | 
		
			
				 Posted: Tue Dec 09, 2014 4:51 pm    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				The {$lua} sections can also be used to have multipe lines
 
 	  | Code: | 	 		  
 
{$lua}
 
Aobswap("ff 01 00","00 00 02")
 
Aobswap("ff 02 00","00 00 02")
 
Aobswap("ff 03 00","00 00 02")
 
Aobswap("ff 04 00","00 00 02")
 
{$asm}
 
 | 	  
 _________________
 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 | 
		 | 
	
	
		  | 
	
	
		panraven Grandmaster Cheater
  Reputation: 62
  Joined: 01 Oct 2008 Posts: 958
 
  | 
		
			
				 Posted: Tue Dec 09, 2014 6:27 pm    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				Multiple Aobswaps in a single cheat entry at DaSpamer's easy trainer format may cause inconsistent activation result (success/fail). For example, if 1st 2 aob can be found but not the last 2, the first 2 aob will be patched by aobswap, but the activation result will be return as fail.
 
 
May be Aobswap should be extend to something like that:
 
 
Aobswap(search1, change1, search2, change2, search3, change3), so that
 
change will be made only when all search1, search2 and search3 can be found, and return a success result.
 | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		daspamer Grandmaster Cheater Supreme
  Reputation: 54
  Joined: 13 Sep 2011 Posts: 1588
 
  | 
		
			
				 Posted: Wed Dec 10, 2014 11:04 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				 	  | panraven wrote: | 	 		  Multiple Aobswaps in a single cheat entry at DaSpamer's easy trainer format may cause inconsistent activation result (success/fail). For example, if 1st 2 aob can be found but not the last 2, the first 2 aob will be patched by aobswap, but the activation result will be return as fail.
 
 
May be Aobswap should be extend to something like that:
 
 
Aobswap(search1, change1, search2, change2, search3, change3), so that
 
change will be made only when all search1, search2 and search3 can be found, and return a success result. | 	  
 
Yes I know that, it's an old script.
 
I've improved it by verifying each and each hack... I parse now trainers using <tags>.
 _________________
 I'm rusty and getting older, help me re-learn lua.  | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		panraven Grandmaster Cheater
  Reputation: 62
  Joined: 01 Oct 2008 Posts: 958
 
  | 
		
			
				 Posted: Sun Dec 14, 2014 12:24 pm    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				 	  | DaSpamer wrote: | 	 		   	  | panraven wrote: | 	 		  | ..snip... | 	  
 
Yes I know that, it's an old script.
 
I've improved it by verifying each and each hack... I parse now trainers using <tags>. | 	  
 
 
Is the improved script available for download?
 
thank you~
 | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		daspamer Grandmaster Cheater Supreme
  Reputation: 54
  Joined: 13 Sep 2011 Posts: 1588
 
  | 
		
			
				 Posted: Sun Dec 14, 2014 3:54 pm    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				 	  | panraven wrote: | 	 		   	  | DaSpamer wrote: | 	 		   	  | panraven wrote: | 	 		  | ..snip... | 	  
 
Yes I know that, it's an old script.
 
I've improved it by verifying each and each hack... I parse now trainers using <tags>. | 	  
 
 
Is the improved script available for download?
 
thank you~ | 	  
 
No, those are private.
 _________________
 I'm rusty and getting older, help me re-learn lua.  | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		Dark Byte Site Admin
  Reputation: 470
  Joined: 09 May 2003 Posts: 25807 Location: The netherlands
  | 
		
			
				 Posted: Sun Dec 14, 2014 4:40 pm    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				just an fyi, 
 
if the aob is unique you're better of using auto assembler's aobscan:
 
 	  | Code: | 	 		   
 
aobscan(_aobresult1,aa bb cc dd ee ff 00)
 
_aobresult1:
 
db 90 90 50 60 ee ff 01
 
 
aobscan(_aobresult2,44 55 66 77 ce) 
 
_aobresult2:
 
db 44 55 f3 90 ce
 
 | 	   
 
this is because the auto assembler will group aobscans and finds all results in one pass instead of doing a full scan for every aob
 
It also ends the scan when all results have been found
 _________________
 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 | 
		 | 
	
	
		  | 
	
	
		 |