We have upgraded to the latest version of MediaWiki and now support TLS1.2 and transcoding!
Please contact us via Discord or Twitter if you experience any problems.

Call of Duty: Modern Warfare 2 (Windows)/Debug Material

From The Cutting Room Floor
Jump to navigation Jump to search

This is a sub-page of Call of Duty: Modern Warfare 2 (Windows).

This page is dedicated to the debugging content from Call of Duty: Modern Warfare 2. They can be accessed using console commands or modding.

Hmmm...
To do:
Get more debugging commands. There is probably more than this.

Crash Debugger?

Elementary, my dear Cactus.
This needs some investigation.
Discuss ideas and findings on the talk page.
In this image, the Multiplayer section of the game crashed while attempting to write to a .cfg file.

It turns out the game has a built in crash debugger that can pop up if certain fatal errors occur during game play. For example, the debugger will not pop up if the game can't find the .ff of a map when it is trying to load it, but it will pop up if the game can't find the .d3dbsp of a map while loading that map.

If the player were to use a modified executable (specifically, one that adds the developer console back into the Singleplayer section of the game), they would be able to access the debugger by simply pressing F1 in-game. This would pop up the same window but the player is actually able to enter commands into a text box and see anything that is being logged.

developer_script

To access this, go into the developer console and type /developer_script 1. Below is the result.

CODMW2-DebugContent-DeveloperScript.png

phys_drawDebugInfo

To access this, go into the developer console and type /phys_drawDebugInfo 1. Below is the result. Judging from this command's name, it would definitely have been used to debug the physics engine or something that had to do with the physics.

CODMW2-Debug-PhysicsDebugging.png

cg_drawFPS

To access this, go into the developer console and type /cg_drawFPS *. Replace the * with either 1, 2, 3, or 4. Below are the results for each number.

Number 1 Number 2 Number 3 Number 4
CODMW2-Debug-DrawFPS1.png CODMW2-Debug-DrawFPS2.png CODMW2-Debug-CGShowFPS.png CODMW2-Debug-DrawFPS.png

ui_debugMode

Hmmm...
To do:
Get more screenshots - there is way more than this.

To access this, go into the developer console and type /ui_debugMode 1. Below are the results.

In-game Main Menu Pause Menu Quit Prompt
CODMW2-Debug-UIDebugMode-InGame.png CODMW2-Debug-UIDebugMode-MainMenu.png CODMW2-Debug-UIDebugMode-PauseMenu.png CODMW2-Debug-UIDebugMode-QuitPrompt.png

aim_autoaim_debug

To access this, go into the developer console and type /aim_autoaim_debug 1. Below is the result.

CODMW2-Debug-AimAutoAim.png

aim_automelee_debug

To access this, go into the developer console and type /aim_automelee_debug 1. Below is the result.

CODMW2-Debug-AimAutoMelee.png

aim_lockon_debug

To access this, go into the developer console and type /aim_lockon_debug 1. Below is the result.

CODMW2-Debug-AimLockon.png