Game Development Community

Taking out editor in TGE

by Jon Reesman · in Technical Issues · 09/13/2008 (6:06 am) · 1 replies

I just finished my game, it is ready in every way but I wanna take the f10 and f11 buttons out to prevent players from modding the game. How do you do it?

#1
09/13/2008 (6:13 am)
Take out the creator folder, and in main.cs (the one with the exe) change the following:
change
// Run the Torque Creator mod by default, it's needed for editors.


$isDedicated = false;
$modcount = 2;
$userMods = "creator;" @ $defaultGame;
To read:
// Run the Torque Creator mod by default, it's needed for editors.


$isDedicated = false;
$modcount = 1;
$userMods = $defaultGame;

I believe that's all you have to do. I normally just delete the creator folder as the only side effect you will get is a small error in the console.log.