Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does CheatEngine's speed hack work?

Cheat Engine comes with a feature called speed hack which basically can slow down or increase speed of the game. Actually, not only games, if there is a software with clock ticking it can speed-en up that too. How does that work? I might imagine there is some internal clock on which these things run but not sure how these things happen on low level.

While this feature has worked on most of the games I tried, it has also failed on many, for eg, NFS Most wanted. Why? Is there any different mechanism on which these games run or it is just some anti-cheat?

like image 585
Shubham Avatar asked Jul 07 '13 14:07

Shubham


People also ask

What is speed hack?

Speed Hacking is a game cheating technique where players in a mobile game modify the clock speed to move much faster than otherwise possible, thus gaining an unfair advantage. Some of the top methods used by game cheaters for Speed Hacking are: • Change internal clock speed to make a character run faster.

How do you slow down games on cheat engine?

Go back to Cheat Engine and select Wargame. Go to Edit > Settings > Hottekeys > Speedhack. You can choose 5 different speeds that suits you in 5 different hotkeys. You can also set a "more speed" and "less speed" buttons.


1 Answers

Cheat Engines Old Speedhack:

  • Runs the application in a very high priority thread
  • Uses timed sleeping to speed up the game
  • When a function is called, it will be given an emulated timer which is sped up

Cheat Engines New Speedhack:

  • When the Cheat Engine speed dll is injected into the program, it is modified to the speed you selected in the Cheat Engine panel
  • Sets a base reference of the current time
  • returned time = basetime+((currenttime-basetime)*speed

Detection:

  • Both Methods are easy to detect by sending a packet with the time every couple of seconds to be validated by a server
  • The game may be able to detect the dll being injected

Source: http://wiki.cheatengine.org/index.php?title=Cheat_Engine:Internals#Speedhack

like image 108
Harold Avatar answered Sep 21 '22 11:09

Harold