Using cheat engine to modify variables

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Retardinjo
:warning: Old Version Published before Godot 3 was released.

Hello,

I was wondering about using cheat engine to change variables (e.g. player movement speed, hp or weapon shooting speed) how would you protect your multiplayer game from such cases?
Sample code would be great addition but is not necessity, just principle or explanation would suffice. Thanks in advance.

Usually you can protect your game from being modified by obfuscating it. There is a way to do it for scripts in Godot when you export the game, in the scripts section, choose “Encrypted” and choose a secret key.
Encrypting savegames is also great to prevent local player data from being edited.

If it’s not enough, server-side validation can help to prevent players from doing things they are not supposed to do, although the checks might become expensive depending on the CPU-intensiveness of the game and the amount of players.

You can also look for third-party solutions, such as EAC https://www.easyanticheat.net/, however you’ll have to write a module for this to work I think.

Zylann | 2016-07-09 21:15