Disable Debug

The world's smallest script - but important to prevent ez cheaters.

Insert a new script at the very, very top of the list (before original scripts!)
Name it Disable Debug.

Here's the code.
Content Hidden Spoiler
  1.  
  2. $DEBUG = false
  3. $BTEST = false
  4.  
Expand to see the code.


How it works:
When Game.exe runs, it checks a commandline parameter, specifically "-debug". If this is present, it enables F9, and "hold CTRL to walk through walls and ignore encounters". The editor typically provides this parameter automatically. But assuming that your consumers don't know how to use command line parameters is a bit naive. This simple edit disables the features added by debug, problem solved.


If you're worried about more advanced cheaters, use a replacement Game.exe as that eliminates the "generic RPG Maker Game trainer"s (because known RAM addresses are suddenly very wrong). I won't provide a tutorial here as its kind of unclear how that falls on the rulebook, but there are plenty of tutorials out there, and I've done it myself a number of different ways.

Cheaters will still cheat. So these are more like a padlock - they won't stop a career criminal, but they'll keep the honest people honest.
(Did you know you can open a padlock with a soda can? You're welcome, YouTube, for the extra traffic 😉 )
(Edit: Did you know you can open canned goods with nothing but a cement floor? (cleanly!))
Hah, I normally edit out all the debug parts, it never occurred to me to just turn the flag off at the end of all the scripts. Cheers.
More precisely, at the *beginning* of all the scripts. Just in case ;) (shouldn't matter tremendously)

Edit: Updated to include forcing $BTEST off as well.
Not that it'll prevent people from decrypting your project anyway if they really wanted to, I suppose. But as you said, it's like a padlock. Deters the mostly honest ones, doesn't affect the completely honest ones, and hardly puts up a fight for the dishonest ones. That's really what DRM should do, but...so difficult to convince major corporations of that kind of thing.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=77749