  | 
				
				Cheat Engine The Official Site of Cheat Engine   
				
 
				 | 
			 
		 
		 
	
		| View previous topic :: View next topic   | 
	 
	
	
		| Author | 
		Message | 
	 
	
		s0ZNIz How do I cheat?
  Reputation: 0
  Joined: 21 Feb 2015 Posts: 6
 
  | 
		
			
				 Posted: Sat Feb 21, 2015 8:48 am    Post subject: [HELP] Super Jump | 
				       | 
			 
			
				
  | 
			 
			
				hey guys,
 
im trying to do Super jump for unity game that i found .
 
ive found the Y coordination and i want to like if i press Space that will
 
add +5 to the Y and i want to do that inside a script .
 
here is the code:
 
fstp dword ptr [eax+28]
 
what should i add to that line ?
 | 
			 
		  | 
	 
	
		| Back to top | 
		 | 
	 
	
		  | 
	 
	
		Zanzer I post too much
  Reputation: 126
  Joined: 09 Jun 2013 Posts: 3278
 
  | 
		
			
				 Posted: Sat Feb 21, 2015 9:38 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				This a 2D game? Would've expected jump on the Z axis.
 
 
Anyway, are you inside the jump routine?
 
 
I would try snooping around the code for the variable that is the jump height.
 
 
I don't know specifically how the code you found behaves, but the following may work.
 
 
Add this code to your injection:
 
 
 	  | Code: | 	 		  [ENABLE]
 
alloc(myvar,4)
 
registersymbol(myvar)
 
[DISABLE]
 
dealloc(myvar,4)
 
unregistersymbol(myvar) | 	  
 
 
Now you can add a new address to your table and set its address to myvar with a type of float.
 
 
Set a hotkey on that address which will set it to 5.0 when you push space.
 
 
Then, inside the code block you found, you can do this:
 
 
 	  | Code: | 	 		  fadd [myvar]
 
fstp dword ptr [eax+28]
 
mov [myvar],(float)0.0 | 	  
 
 
Still better to just find the variable holding the max height value and change that instead.
 | 
			 
		  | 
	 
	
		| Back to top | 
		 | 
	 
	
		  | 
	 
	
		s0ZNIz How do I cheat?
  Reputation: 0
  Joined: 21 Feb 2015 Posts: 6
 
  | 
		
			
				 Posted: Sat Feb 21, 2015 10:01 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				 	  | Zanzer wrote: | 	 		  This a 2D game? Would've expected jump on the Z axis.
 
 
Anyway, are you inside the jump routine?
 
 
I would try snooping around the code for the variable that is the jump height.
 
 
I don't know specifically how the code you found behaves, but the following may work.
 
 
Add this code to your injection:
 
 
 	  | Code: | 	 		  [ENABLE]
 
alloc(myvar,4)
 
registersymbol(myvar)
 
[DISABLE]
 
dealloc(myvar,4)
 
unregistersymbol(myvar) | 	  
 
 
Now you can add a new address to your table and set its address to myvar with a type of float.
 
 
Set a hotkey on that address which will set it to 5.0 when you push space.
 
 
Then, inside the code block you found, you can do this:
 
 
 	  | Code: | 	 		  fadd [myvar]
 
fstp dword ptr [eax+28]
 
mov [myvar],(float)0.0 | 	  
 
 
Still better to just find the variable holding the max height value and change that instead. | 	  
 
 
This is 3D Game .
 
and sorry im kinda new in create this scripts .
 
im using the auto assembler because there the address not changing every time . like if i found the address of Ammo and restart the game the ammo address change . So im using the Auto assembler .
 
 
i done what u said .
 
this is my code:
 
 
 	  | Code: | 	 		  [ENABLE]
 
//code from here to '[DISABLE]' will be used to enable the cheat
 
alloc(myvar,4)
 
registersymbol(myvar)
 
alloc(newmem,2048) //2kb should be enough
 
label(returnhere)
 
label(originalcode)
 
label(exit)
 
 
newmem: //this is allocated memory, you have read,write,execute access
 
fadd [myvar]
 
fstp dword ptr [eax+04]
 
mov [myvar],(float)5.0
 
 
originalcode:
 
//fstp dword ptr [eax+04]
 
fld dword ptr [ecx+08]
 
 
exit:
 
jmp returnhere
 
 
"webplayer_win.dll"+1B7F77:
 
jmp newmem
 
nop
 
returnhere:
 
 
 
 
 
 
[DISABLE]
 
dealloc(myvar,4)
 
unregistersymbol(myvar)
 
//code from here till the end of the code will be used to disable the cheat
 
 | 	  
 
The player jumps into the sky forever
 
i made hotkey only for the auto assembler script .
 
(enable script hotkey)
 | 
			 
		  | 
	 
	
		| Back to top | 
		 | 
	 
	
		  | 
	 
	
		Zanzer I post too much
  Reputation: 126
  Joined: 09 Jun 2013 Posts: 3278
 
  | 
		
			
				 Posted: Sat Feb 21, 2015 11:02 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				Click Add Address Manually. Use myvar for the address and float for the type.
 
Set the hotkey on that which sets the value to 5.0.
 
 
Change that (float)5.0 in the script back to (float)0.0.
 
 
The way this code works is as follows. By default, the variable will equal 0.0 and won't add anything to your height. Now when you activate the hotkey, it will set your variable to 5.0, adding 5.0 to your height. After it does that, it will immediately move 0.0 back into the custom variable. The hope is that as long as you are holding down the hotkey, it will continue to put a 5.0 in your custom variable and will continue to increase your height. When you let go of the hotkey, the code will go back to adding 0.0 so you stop going up.
 | 
			 
		  | 
	 
	
		| Back to top | 
		 | 
	 
	
		  | 
	 
	
		s0ZNIz How do I cheat?
  Reputation: 0
  Joined: 21 Feb 2015 Posts: 6
 
  | 
		
			
				 Posted: Sat Feb 21, 2015 12:25 pm    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				 	  | Zanzer wrote: | 	 		  Click Add Address Manually. Use myvar for the address and float for the type.
 
Set the hotkey on that which sets the value to 5.0.
 
 
Change that (float)5.0 in the script back to (float)0.0.
 
 
The way this code works is as follows. By default, the variable will equal 0.0 and won't add anything to your height. Now when you activate the hotkey, it will set your variable to 5.0, adding 5.0 to your height. After it does that, it will immediately move 0.0 back into the custom variable. The hope is that as long as you are holding down the hotkey, it will continue to put a 5.0 in your custom variable and will continue to increase your height. When you let go of the hotkey, the code will go back to adding 0.0 so you stop going up. | 	  
 
 
Thanks for replying , but it's not working.
 
it is changing the myvar address to 5.0 but jump still normal    
 
 
code:
 
 
 	  | Code: | 	 		  [ENABLE]
 
//code from here to '[DISABLE]' will be used to enable the cheat
 
alloc(myvar,4)
 
registersymbol(myvar)
 
alloc(newmem,2048)
 
label(returnhere)
 
label(originalcode)
 
label(exit)
 
 
newmem: //this is allocated memory, you have read,write,execute access
 
fadd [myvar]
 
fstp dword ptr [eax+04]
 
mov [myvar],(float)0.0
 
 
originalcode:
 
//fstp dword ptr [eax+04]
 
fld dword ptr [ecx+08]
 
 
exit:
 
jmp returnhere
 
 
"webplayer_win.dll"+1B7F77:
 
jmp newmem
 
nop
 
returnhere:
 
 
 
 
 
 
[DISABLE]
 
dealloc(myvar,4)
 
unregistersymbol(myvar)
 
//code from here till the end of the code will be used to disable the cheat
 
 | 	  
 
 
Edit: working but sometimes not.
 
 
im trying it in small zombies games and sometimes when i press Space 
 
that makes the zombie jump + 5.0 not only me lol.
 
 
but thanks bro , and another question this could work in any game if i find the Y ? 
 
i mean using this:
 
 	  | Code: | 	 		  fadd [myvar]
 
the code
 
mov [myvar],(float)0.0 | 	  
 | 
			 
		  | 
	 
	
		| Back to top | 
		 | 
	 
	
		  | 
	 
	
		Zanzer I post too much
  Reputation: 126
  Joined: 09 Jun 2013 Posts: 3278
 
  | 
		
			
				 Posted: Sat Feb 21, 2015 2:19 pm    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				When you're jumping, are you holding down the hotkey?
 
 
I'm not even sure if holding the hotkey down causes CE to repeatedly set the value, or if it only sets it once.
 
 
It's possible it would work for other games if their jump mechanic works the same.
 
 
However, it sounds like you found code dealing with an entity's position in the game world.
 
Not specifically the jump code.
 
 
Disable the previous hack.
 
Find the address again that specifically relates to the player's position.
 
Right-click it and select Find out what accesses this address.
 
Try to find the code block whose Count only increases when you actually jump.
 
If it still only finds the same address you're using... oh well.  
 | 
			 
		  | 
	 
	
		| Back to top | 
		 | 
	 
	
		  | 
	 
	
		 | 
	 
 
  
	 
	    
	   | 
	
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
  | 
   
 
		 |