Debug mode

General feedback and discussion of the game.

Moderator: Forum Moderators

Post Reply
Scott97sf
Posts: 1
Joined: July 11th, 2017, 12:03 am

Debug mode

Post by Scott97sf »

Does anyone know where in the source file I can remove access to debug mode? I have a horrible and irresistible habit of cheating and it's really killing the game for me. I'd like to have some way of removing, or just preventing access from debug mode.

Any ideas?
Tad_Carlucci
Inactive Developer
Posts: 503
Joined: April 24th, 2016, 4:18 pm

Re: Debug mode

Post by Tad_Carlucci »

Give it a few days. You're asking a complex issue. I am fairly sure there is no *EASY* way to disable the Debug command. So the question is: is it worth putting together a Pull Request adding a command-line option to do so. Basically, that option would probably simply disable the hotkey function. If, however, you just want a patch for personal use, you'll do better finding the function and disabling it yourself.
I forked real life and now I'm getting merge conflicts.
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: Debug mode

Post by zookeeper »

Of course there's an easy way; just edit/remove the "game_config::debug = true;" statements from both game_controller.cpp (game_launcher.cpp in 1.13) and menu_events.cpp.
Post Reply