Create a backup copy of the file before proceeding. Use a text editor to edit the "civ4config" file in the game folder. Change the "CheatCode = 0" line to "CheatCode = chipotle". Press ~ during game play to display the console window.
| Code: | Result: |
| Player.changeGold <player number>, <gold> | Change players gold; 0 is active player |
| Map.setActiveLandscapeID <landscape number> | Change the active landscape info |
| Console.Clear | Clear the console |
| Game.clear | Clear the listbox below |
| Log.clear | Clear the log file |
| App.calcFolderChechsum <directory> | Compute md5 checksum for the directory tree specified |
| App.crash | Crash game |
| Game.createSelectedUnitKFs | Create sequences associated with the selected unit |
| Game.showWBPalette bool bCreate | Debugging |
| help | Display all console window codes |
| Log.status | Display current logging status |
| Graphics.displayTerrain bool bOn | Display terrain |
| Game.helpScreen | Display the help popup |
| Profile.dumpAnimLog | Dump animation information to debugging window |
| Console.History | Dump console command history |
| Graphics.showTexturePalette | Dump texture palette |
| Map.erasePlots | Erase all plots |
| Map.eraseGameElements | Erase Rivers, Features, Bonuses and Goodies |
| Map.empty | Erase units and cities from map |
| Map.fill | Fill map with units and cities for performance testing |
| Graphics.FindBlackPlotsAndCities | Finds entities with black emissivity |
| Game.AIPlay <integer> | Force AI to play for indicated number of turns |
| Graphics.ForceLightingUpdate | Force light update on all entities |
| Game.freeSelectedUnitKFs | Free sequences associated with the selected unit |
| Graphics.HideAttachables | Hide attachables |
| Profile.morphGlobe <integer> | Morph the globeview count times. |
| Sound.play string <filename> | Play sound - AS2D, AS3D, ASSS |
| Profile.rebuildCity <x coordinate>, <y coordinate>, <integer> | Rebuild city indicated number of times |
| Profile.rebuildPlot <x coordinate>, <y coordinate>, <integer> | Rebuild plot indicated number of times |
| Graphics.ReBuildTerrain | Rebuild terrain and lighting |
| Sound.reload | Reload audio scripts |
| Xml.reloadArtDefines | Reload Civ4ArtDefines.xml |
| Xml.reloadLandscapeInfo | Reload Civ4TerrainSettings.xml |
| Xml.reloadGameText | Reload Game Text xml files |
| Map.replaceGameElements | Replace Rivers, Features, Bonuses and Goodie |
| Map.generateBonuses | Replot Bonuses |
| Map.generateFeatures | Replot Features |
| Map.generateGoodies | Replot Goodies |
| Map.generateRivers | Replot Rivers |
| App.getBuildTime | Return the application link time |
| Game.saveWorldBuilderSave <filename> | Save WorldBuilder save description file |
| Game.scrollBottom | Scroll to the bottom |
| Game.scrollTop | Scroll to the top |
| App.setMooseDbg2 <integer> | Set debugging value |
| App.setMooseDbg1 <integer> | Set debugging value |
| Graphics.SetHillScale <floating number> | Set Hill scale |
| App.setMaxFrameRate <floating number> | Set maximum frame rate; 0 to disable |
| Profile.setSpikeThreshold <milliseconds> | Set minimum time to capture spikes; set to 0 to disable spikelock |
| Graphics.SetPeakScale <floating number> | Set Peak scale |
| Player.setGold <player number>, <gold> | Set players gold; 0 is active player |
| Graphics.quadTreeDepth <integer> | Set render depth for quad tree |
| Graphics.setTextureMode bool bOn | Set texturing |
| Graphics.setWaterHeight <floating number> | Set water plane height |
| Graphics.setWireframe bool bOn | Set wireframe |
| Game.gfcDirChooser | Show GFC directory chooser |
| Game.gfcfiledlg | Show GFC file dlg window |
| Game.testGFC <integer> | Show GFC test popup |
| Game.testFont bool bEnable | Show test popup |
| Game.testPopup | Show test popup |
| Game.testPythonPopup | Show the Python test popup |
| Sound.noMusic | Stop music |
| Sound.stopSoundScape | Stop Soundscape from playing |
| Player.testUnitIter <integer> | Test player unit iteration |
| App.takeFullScreenShot | TGA full screen shot in .ScreenShot directory; requires "AllowScreenShots=1" in ini. |
| App.takeScreenShot | TGA screen shot in .ScreenShot directory; requires "AllowScreenShots=1" in ini. |
| Game.toggleAnimationTest | Toggle Animation Test Tool |
| Game.toggleDebugMode | Toggle debug mode |
| Graphics.toggleGridMode | Toggle grids |
| Log.toggle | Toggle logging |
| Game.toggleTextureAccessInfo | Toggle output of texture loads/accesses to debug output |
| Graphics.toggleWater | Toggle water |
| App.setIniFile <group key>, <key>, <value> | Update existing value in the ini file |
| Console.CreateDocumentation <filename> | Writes HTML documentation for the current console commands |
Use the following commands after enabling the Game.toggleDebugMode code.