Skip to content

Document the ingame debug commands #58

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

Jaredl-Dev
Copy link
Contributor

@Jaredl-Dev Jaredl-Dev commented Jul 8, 2025

This pull request adds a new page to the Wiki that extensively documents the in-game debug commands that are available in debug builds.

What's left to do still:

  • Add descriptions for each command detailing what it does.
  • Add media for each command to showcase it.
  • Figure out where to put a link to this doc on the sidebar of the Wiki.

@Jaredl-Dev Jaredl-Dev changed the title Documented the ingame debug commands Document the ingame debug commands Jul 8, 2025
@Jaredl-Dev Jaredl-Dev force-pushed the jaredl/document-ingame-debugs branch from b7e7149 to 35cd870 Compare July 10, 2025 02:53
@aliendroid1
Copy link

aliendroid1 commented Jul 10, 2025

I tried to come up with categories to split the commands into and put them into tabular format. If you like the format you can update the last 2 columns with accurate information and have them link to the respective videos

Dev Command Hotkeys

This section lists special hotkeys that are only enabled in developer builds of Generals and Zero Hour.

  • Some hotkeys work outside of gameplay (in menus, etc.).
  • Most work in both Generals and Zero Hour; some are game-specific.
  • The commands below were extracted from the original EA CommandMapDebug.ini file. Community builds may change these.
  • The command names match those in the original INI files.

Cheat & Gameplay Hotkeys

Hotkey Command Name Description Accessible In
Ctrl + W DEMO_WIN Instantly win the match Both
Ctrl + = DEMO_ADDCASH Add cash to player Both
Ctrl + F DEMO_INSTANT_BUILD Toggle instant build for units Both
Ctrl + V DEMO_GIVE_VETERANCY Give veterancy to selected units Both
Ctrl + Shift + V DEMO_TAKE_VETERANCY Remove veterancy from selection Both
Ctrl + K DEMO_GIVE_RANKLEVEL Increase player rank Both
Ctrl + Shift + K DEMO_TAKE_RANKLEVEL Decrease player rank Both
Ctrl + Shift + P DEMO_GIVE_SCIENCEPURCHASEPOINTS Add science points Both
Ctrl + Alt + Shift + P DEMO_GIVE_ALL_SCIENCES Unlock all science upgrades Both
Ctrl + S DEMO_TOGGLE_SPECIAL_POWER_DELAYS Toggle special power cooldowns Both
Ctrl + Shift + X DEMO_KILL_SELECTION Kill selected units Both
Ctrl + X DEMO_TOGGLE_HURT_ME_MODE Toggle “hurt me” mode Both
Ctrl + Shift + Space DEMO_SWITCH_TEAMS Switch teams (cycle) Both
Ctrl + T DEMO_SWITCH_TEAMS_CHINA_USA Switch between China/USA teams Both
Ctrl + Shift + Numpad / DEMO_KILL_ALL_ENEMIES Kill all enemy units Both
Ctrl + Alt + G DEMO_TOGGLE_HAND_OF_GOD_MODE Toggle Hand of God mode Both
Ctrl + Alt + Shift + F DEMO_TOGGLE_FOGOFWAR Toggle fog of war Both
Ctrl + Alt + Shift + R DEMO_ENSHROUD Enshroud entire map Both
Ctrl + R DEMO_DESHROUD Reveal entire map Both

Audio & Music Hotkeys

Hotkey Command Name Description Accessible In
Ctrl + Shift + S DEMO_TOGGLE_SOUND Toggle all sound Both
Ctrl + Shift + M DEMO_TOGGLE_MUSIC Toggle music Both
Ctrl + M DEMO_MUSIC_PREV_TRACK Previous music track Both
Ctrl + Alt + Shift + M DEMO_MUSIC_NEXT_TRACK Next music track Both
Ctrl + Shift + A DEMO_TOGGLE_AUDIODEBUG Toggle audio debug info Both
Ctrl + Alt + Shift + A DEMO_SHOW_AUDIO_LOCATIONS Show audio emitter locations Both
Ctrl + Shift + B DEMO_BATTLE_CRY Trigger battle cry Both

Rendering & Visual Debug Hotkeys

Hotkey Command Name Description Accessible In
] DEMO_TOGGLE_WATERPLANE Toggle water plane rendering Both
[ DEMO_TOGGLE_TRACKMARKS Toggle track marks Both
F11 DEMO_TOGGLE_BEHIND_BUILDINGS Toggle see-behind-buildings Both
Ctrl + \ DEMO_TOGGLE_RENDER Toggle rendering Both
/ DEMO_TOGGLE_NO_DRAW Toggle drawing Both
Ctrl + Shift + J DEMO_TOGGLE_SHADOW_VOLUMES Toggle shadow volumes Both
Ctrl + Alt + W DEMO_TOGGLE_FEATHER_WATER Toggle feather water effect Both
Ctrl + E DEMO_SHOW_EXTENTS Show object extents Both
Ctrl + Alt + H DEMO_SHOW_HEALTH Display health bars Both
Ctrl + F10 DEMO_TOGGLE_BW_VIEW Black and white rendering Both
Ctrl + F11 DEMO_TOGGLE_RED_VIEW Red channel rendering Both
Ctrl + F12 DEMO_TOGGLE_GREEN_VIEW Green channel rendering Both
Ctrl + F9 DEMO_TOGGLE_MOTION_BLUR_ZOOM Motion blur/zoom effect Both
- DEMO_LOD_DECREASE Decrease Level of Detail Both
= DEMO_LOD_INCREASE Increase Level of Detail Both
Ctrl + Alt + - DEMO_CYCLE_LOD_LEVEL Cycle Level of Detail Both
Ctrl + Shift + D DEMO_TIME_OF_DAY Toggle/change time of day Both

Camera Hotkeys

Hotkey Command Name Description Accessible In
Ctrl + Shift + L DEMO_LOCK_CAMERA_TO_SELECTION Lock camera to selected object Both
Ctrl + Shift + C DEMO_TOGGLE_CAMERA_DEBUG Toggle camera debug info Both
Ctrl + Alt + Shift + C DEMO_TOGGLE_ZOOM_LOCK Toggle camera zoom lock Both
, DEMO_BEGIN_ADJUST_PITCH Begin adjusting camera pitch Both
, (Release) DEMO_END_ADJUST_PITCH End adjusting camera pitch Both
. DEMO_BEGIN_ADJUST_FOV Begin adjusting camera FOV Both
. (Release) DEMO_END_ADJUST_FOV End adjusting camera FOV Both

Benchmarking Hotkeys

Hotkey Command Name Description Accessible In
Ctrl + L DEMO_TOGGLE_METRICS Toggle metrics overlay Both
Ctrl + Shift + G DEMO_VTUNE_OFF Stop VTune profiling Both
Ctrl + Shift + Q DEMO_TOGGLE_GRAPHICALFRAMERATEBAR Toggle framerate bar Both
Ctrl + G DEMO_VTUNE_ON Start VTune profiling Both
Ctrl + Alt + Shift + Q DEBUG_OBJECT_ID_PERFORMANCE Object ID perf test Both
Ctrl + Alt + Shift + A DEBUG_DRAWABLE_ID_PERFORMANCE Drawable ID perf test Both
Ctrl + Alt + Shift + W DEBUG_SLEEPY_UPDATE_PERFORMANCE Sleepy update perf test Both

Debug Hotkeys

Hotkey Command Name Description Accessible In
Ctrl + Q DEMO_TOGGLE_DEBUG_STATS Toggle debug stats overlay Both
Ctrl + Alt + Shift + V DEMO_TOGGLE_VISIONDEBUG Toggle vision debug Both
Ctrl + Shift + O DEMO_TOGGLE_THREATDEBUG Toggle threat debug Both
Ctrl + Shift + B DEMO_TOGGLE_PROJECTILEDEBUG Toggle projectile debug Both
Ctrl + P DEMO_TOGGLE_PARTICLEDEBUG Toggle particle debug Both
Ctrl + O DEMO_TOGGLE_CASHMAPDEBUG Toggle cash map debug Both
Ctrl + A DEMO_TOGGLE_AI_DEBUG Toggle AI debug Both
Ctrl + D DEMO_DEBUG_SELECTION Debug currently selected object Both

Data Dump Hotkeys

Hotkey Command Name Description Accessible In
Ctrl + Alt + O DEBUG_DUMP_PLAYER_OBJECTS Dump player objects to file Both
Ctrl + Alt + Shift + O DEBUG_DUMP_ALL_PLAYER_OBJECTS Dump all player objects to file Both
Ctrl + Shift + A DEMO_DUMP_ASSETS Dump all loaded assets Both
Ctrl + Alt + Q DEMO_PERFORM_STATISTICAL_DUMP Perform and dump game stats Both

Script Hotkeys

Hotkey Command Name Description Accessible In
Ctrl + Shift + F1 DEMO_RUNSCRIPT1 Run script 1 Both
Ctrl + Shift + F2 DEMO_RUNSCRIPT2 Run script 2 Both
Ctrl + Shift + F3 DEMO_RUNSCRIPT3 Run script 3 Both
Ctrl + Shift + F4 DEMO_RUNSCRIPT4 Run script 4 Both
Ctrl + Shift + F5 DEMO_RUNSCRIPT5 Run script 5 Both
Ctrl + Shift + F6 DEMO_RUNSCRIPT6 Run script 6 Both
Ctrl + Shift + F7 DEMO_RUNSCRIPT7 Run script 7 Both
Ctrl + Shift + F8 DEMO_RUNSCRIPT8 Run script 8 Both
Ctrl + Shift + F9 DEMO_RUNSCRIPT9 Run script 9 Both

Miscellaneous/Other Hotkeys

Hotkey Command Name Description Accessible In
Ctrl + Alt + T DEMO_TOGGLE_MESSAGE_TEXT Toggle message text Both
Ctrl + Alt + Shift + N DEMO_TOGGLE_NETWORK Toggle network debug Both
Ctrl + Shift + F11 DEMO_TOGGLE_AVI Toggle AVI recording Both
Ctrl + Shift + Backspace DEMO_INSTANT_QUIT Instantly quit the game Both
Ctrl + Shift + Tab DEMO_NEXT_OBJECTIVE_MOVIE Next objective movie Both
Ctrl + Alt + Shift + S DEMO_TOGGLE_SUPPLY_CENTER_PLACEMENT Toggle supply center placement debug Both

@xezon
Copy link
Contributor

xezon commented Jul 10, 2025

The hotkey tables look useful.

@Jaredl-Dev
Copy link
Contributor Author

I tried to come up with categories to split the commands into and put them into tabular format. If you like the format you can update the last 2 columns with accurate information and have them link to the respective videos

Dev Command Hotkeys

This section lists special hotkeys that are only enabled in developer builds of Generals and Zero Hour.

* Some hotkeys work **outside of gameplay** (in menus, etc.).

* Most work in both **Generals** and **Zero Hour**; some are game-specific.

* The commands below were extracted from the original EA `CommandMapDebug.ini` file. Community builds may change these.

* The command names match those in the original INI files.

Cheat & Gameplay Hotkeys

Hotkey Command Name Description Accessible In
Ctrl + W DEMO_WIN Instantly win the match Both
Ctrl + = DEMO_ADDCASH Add cash to player Both
Ctrl + F DEMO_INSTANT_BUILD Toggle instant build for units Both
Ctrl + V DEMO_GIVE_VETERANCY Give veterancy to selected units Both
Ctrl + Shift + V DEMO_TAKE_VETERANCY Remove veterancy from selection Both
Ctrl + K DEMO_GIVE_RANKLEVEL Increase player rank Both
Ctrl + Shift + K DEMO_TAKE_RANKLEVEL Decrease player rank Both
Ctrl + Shift + P DEMO_GIVE_SCIENCEPURCHASEPOINTS Add science points Both
Ctrl + Alt + Shift + P DEMO_GIVE_ALL_SCIENCES Unlock all science upgrades Both
Ctrl + S DEMO_TOGGLE_SPECIAL_POWER_DELAYS Toggle special power cooldowns Both
Ctrl + Shift + X DEMO_KILL_SELECTION Kill selected units Both
Ctrl + X DEMO_TOGGLE_HURT_ME_MODE Toggle “hurt me” mode Both
Ctrl + Shift + Space DEMO_SWITCH_TEAMS Switch teams (cycle) Both
Ctrl + T DEMO_SWITCH_TEAMS_CHINA_USA Switch between China/USA teams Both
Ctrl + Shift + Numpad / DEMO_KILL_ALL_ENEMIES Kill all enemy units Both
Ctrl + Alt + G DEMO_TOGGLE_HAND_OF_GOD_MODE Toggle Hand of God mode Both
Ctrl + Alt + Shift + F DEMO_TOGGLE_FOGOFWAR Toggle fog of war Both
Ctrl + Alt + Shift + R DEMO_ENSHROUD Enshroud entire map Both
Ctrl + R DEMO_DESHROUD Reveal entire map Both

Audio & Music Hotkeys

Hotkey Command Name Description Accessible In
Ctrl + Shift + S DEMO_TOGGLE_SOUND Toggle all sound Both
Ctrl + Shift + M DEMO_TOGGLE_MUSIC Toggle music Both
Ctrl + M DEMO_MUSIC_PREV_TRACK Previous music track Both
Ctrl + Alt + Shift + M DEMO_MUSIC_NEXT_TRACK Next music track Both
Ctrl + Shift + A DEMO_TOGGLE_AUDIODEBUG Toggle audio debug info Both
Ctrl + Alt + Shift + A DEMO_SHOW_AUDIO_LOCATIONS Show audio emitter locations Both
Ctrl + Shift + B DEMO_BATTLE_CRY Trigger battle cry Both

Rendering & Visual Debug Hotkeys

Hotkey Command Name Description Accessible In
] DEMO_TOGGLE_WATERPLANE Toggle water plane rendering Both
[ DEMO_TOGGLE_TRACKMARKS Toggle track marks Both
F11 DEMO_TOGGLE_BEHIND_BUILDINGS Toggle see-behind-buildings Both
Ctrl + \ DEMO_TOGGLE_RENDER Toggle rendering Both
/ DEMO_TOGGLE_NO_DRAW Toggle drawing Both
Ctrl + Shift + J DEMO_TOGGLE_SHADOW_VOLUMES Toggle shadow volumes Both
Ctrl + Alt + W DEMO_TOGGLE_FEATHER_WATER Toggle feather water effect Both
Ctrl + E DEMO_SHOW_EXTENTS Show object extents Both
Ctrl + Alt + H DEMO_SHOW_HEALTH Display health bars Both
Ctrl + F10 DEMO_TOGGLE_BW_VIEW Black and white rendering Both
Ctrl + F11 DEMO_TOGGLE_RED_VIEW Red channel rendering Both
Ctrl + F12 DEMO_TOGGLE_GREEN_VIEW Green channel rendering Both
Ctrl + F9 DEMO_TOGGLE_MOTION_BLUR_ZOOM Motion blur/zoom effect Both

  • `DEMO_LOD_DECREASE` 	Decrease Level of Detail 	Both
    

= DEMO_LOD_INCREASE Increase Level of Detail Both
Ctrl + Alt + - DEMO_CYCLE_LOD_LEVEL Cycle Level of Detail Both
Ctrl + Shift + D DEMO_TIME_OF_DAY Toggle/change time of day Both

Camera Hotkeys

Hotkey Command Name Description Accessible In
Ctrl + Shift + L DEMO_LOCK_CAMERA_TO_SELECTION Lock camera to selected object Both
Ctrl + Shift + C DEMO_TOGGLE_CAMERA_DEBUG Toggle camera debug info Both
Ctrl + Alt + Shift + C DEMO_TOGGLE_ZOOM_LOCK Toggle camera zoom lock Both
, DEMO_BEGIN_ADJUST_PITCH Begin adjusting camera pitch Both
, (Release) DEMO_END_ADJUST_PITCH End adjusting camera pitch Both
. DEMO_BEGIN_ADJUST_FOV Begin adjusting camera FOV Both
. (Release) DEMO_END_ADJUST_FOV End adjusting camera FOV Both

Benchmarking Hotkeys

Hotkey Command Name Description Accessible In
Ctrl + L DEMO_TOGGLE_METRICS Toggle metrics overlay Both
Ctrl + Shift + G DEMO_VTUNE_OFF Stop VTune profiling Both
Ctrl + Shift + Q DEMO_TOGGLE_GRAPHICALFRAMERATEBAR Toggle framerate bar Both
Ctrl + G DEMO_VTUNE_ON Start VTune profiling Both
Ctrl + Alt + Shift + Q DEBUG_OBJECT_ID_PERFORMANCE Object ID perf test Both
Ctrl + Alt + Shift + A DEBUG_DRAWABLE_ID_PERFORMANCE Drawable ID perf test Both
Ctrl + Alt + Shift + W DEBUG_SLEEPY_UPDATE_PERFORMANCE Sleepy update perf test Both

Debug Hotkeys

Hotkey Command Name Description Accessible In
Ctrl + Q DEMO_TOGGLE_DEBUG_STATS Toggle debug stats overlay Both
Ctrl + Alt + Shift + V DEMO_TOGGLE_VISIONDEBUG Toggle vision debug Both
Ctrl + Shift + O DEMO_TOGGLE_THREATDEBUG Toggle threat debug Both
Ctrl + Shift + B DEMO_TOGGLE_PROJECTILEDEBUG Toggle projectile debug Both
Ctrl + P DEMO_TOGGLE_PARTICLEDEBUG Toggle particle debug Both
Ctrl + O DEMO_TOGGLE_CASHMAPDEBUG Toggle cash map debug Both
Ctrl + A DEMO_TOGGLE_AI_DEBUG Toggle AI debug Both
Ctrl + D DEMO_DEBUG_SELECTION Debug currently selected object Both

Data Dump Hotkeys

Hotkey Command Name Description Accessible In
Ctrl + Alt + O DEBUG_DUMP_PLAYER_OBJECTS Dump player objects to file Both
Ctrl + Alt + Shift + O DEBUG_DUMP_ALL_PLAYER_OBJECTS Dump all player objects to file Both
Ctrl + Shift + A DEMO_DUMP_ASSETS Dump all loaded assets Both
Ctrl + Alt + Q DEMO_PERFORM_STATISTICAL_DUMP Perform and dump game stats Both

Script Hotkeys

Hotkey Command Name Description Accessible In
Ctrl + Shift + F1 DEMO_RUNSCRIPT1 Run script 1 Both
Ctrl + Shift + F2 DEMO_RUNSCRIPT2 Run script 2 Both
Ctrl + Shift + F3 DEMO_RUNSCRIPT3 Run script 3 Both
Ctrl + Shift + F4 DEMO_RUNSCRIPT4 Run script 4 Both
Ctrl + Shift + F5 DEMO_RUNSCRIPT5 Run script 5 Both
Ctrl + Shift + F6 DEMO_RUNSCRIPT6 Run script 6 Both
Ctrl + Shift + F7 DEMO_RUNSCRIPT7 Run script 7 Both
Ctrl + Shift + F8 DEMO_RUNSCRIPT8 Run script 8 Both
Ctrl + Shift + F9 DEMO_RUNSCRIPT9 Run script 9 Both

Miscellaneous/Other Hotkeys

Hotkey Command Name Description Accessible In
Ctrl + Alt + T DEMO_TOGGLE_MESSAGE_TEXT Toggle message text Both
Ctrl + Alt + Shift + N DEMO_TOGGLE_NETWORK Toggle network debug Both
Ctrl + Shift + F11 DEMO_TOGGLE_AVI Toggle AVI recording Both
Ctrl + Shift + Backspace DEMO_INSTANT_QUIT Instantly quit the game Both
Ctrl + Shift + Tab DEMO_NEXT_OBJECTIVE_MOVIE Next objective movie Both
Ctrl + Alt + Shift + S DEMO_TOGGLE_SUPPLY_CENTER_PLACEMENT Toggle supply center placement debug Both

This looks really nice. I'm gonna see if I can incorporate it into my PR. Thanks!

@Jaredl-Dev Jaredl-Dev force-pushed the jaredl/document-ingame-debugs branch 4 times, most recently from b30b75c to 678bbcc Compare July 11, 2025 00:50
@Jaredl-Dev Jaredl-Dev force-pushed the jaredl/document-ingame-debugs branch from 678bbcc to 1ee94e7 Compare July 11, 2025 00:59
@Jaredl-Dev Jaredl-Dev marked this pull request as ready for review July 11, 2025 01:26
@Jaredl-Dev Jaredl-Dev added the documentation Improvements or additions to documentation label Jul 11, 2025
@Jaredl-Dev Jaredl-Dev requested a review from xezon July 11, 2025 01:29
@Jaredl-Dev Jaredl-Dev force-pushed the jaredl/document-ingame-debugs branch from 3004665 to 5736977 Compare July 11, 2025 01:34
@Jaredl-Dev Jaredl-Dev force-pushed the jaredl/document-ingame-debugs branch from 5736977 to 416dc4c Compare July 11, 2025 02:47
@roossienb
Copy link
Contributor

@Jaredl-Code do you want a review from xezon or aliendroid as well, or are you happy as is?

@Jaredl-Dev
Copy link
Contributor Author

Jaredl-Dev commented Jul 13, 2025

@Jaredl-Code do you want a review from xezon or aliendroid as well, or are you happy as is?

I wanted a review from xezon as he specifically requested having the in-game debugs documented. However, it can always be merged and updated if needed. I don't wish to take away time from him that he could be spending on the games source code.

Copy link

@aliendroid1 aliendroid1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think how to use the hotkeys is common know for anyone who who'd consider using them but if you're going to including that section then it probably makes more sense for it to come before rather than after the commands

I think it's better to refer to them as dev commands and dev builds since we plan to decouple dev tools like these from code DEBUG only stuff

This is purely a subjective preference but I'd prefer if the tables were set to open so that the start out expanded but can be collapsed. Otherwise it gives the impression that the page is barren and not maintained even though it's got a lot of up to date information here

@Jaredl-Dev
Copy link
Contributor Author

I think how to use the hotkeys is common know for anyone who who'd consider using them but if you're going to including that section then it probably makes more sense for it to come before rather than after the commands

I think it's better to refer to them as dev commands and dev builds since we plan to decouple dev tools like these from code DEBUG only stuff

This is purely a subjective preference but I'd prefer if the tables were set to open so that the start out expanded but can be collapsed. Otherwise it gives the impression that the page is barren and not maintained even though it's got a lot of up to date information here

I put the how to guide at the end so it would be out of the way as much as possible but so people could at least glance at it since the categories are collapsed by default.

I plan on updating them keeping up to date with what there gonna be called in the future. I'm just trying to be consistent with the codebase currently.

For the tables, do you mean like the primary categories, or also the secondary? I feel like with markdown I'm very limited in terms of making it look good or organizing it, so I collapsed them by default so there out of the way. I actually think it would look good if there were no collapsible lists and you used the sidebar to jump between categories.

@Jaredl-Dev Jaredl-Dev merged commit e0cb99f into TheSuperHackers:main Jul 14, 2025
1 check passed
@Jaredl-Dev Jaredl-Dev deleted the jaredl/document-ingame-debugs branch July 14, 2025 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document the ingame debugs
4 participants