jdog5000
Jun 22, 2008, 03:20 PM
Debug mode is kind of fun and extremely useful for figuring out why the AI has made the choices it has. Many of these comments work without BTS and this mod, but this mod has several customizations to make seeing certain things easier.
WARNING: Debug mode exposes the entire map, all cities and units (including spies). You may not want to do this on a game you intend to keep playing ...
1. With civ closed, open \My Games\BTS\CivilizationIV.ini and on the line CheatCode enter chipotle.
2. Start up civ and load/start a game. You can enter/exit debug mode at any time once the cheat code is entered, doesn't effect saves or anything like that.
Method 1:
3. Press Ctrl-Z to flip between debug mode and normal civ. (thanks Nor Me for the tip)
Method 2: (Python console instructions left for use running automation)
3. Press SHIFT+~ to open the in game Python console. This is a very useful tool for forcing things to happen in game to test them.
4. Type CyGame().toggleDebugMode() into the Python console. This turns debug mode on or off. The game will take a little while to expose the whole map.
5. Press SHIFT+~ to close the Python console.
In debug mode you can get all kinds of internal information on the state of the AI from the map. All civs in the game will show up in the scoreboard and you can see what they're researching. You can enter any city to see what it's doing as well as see every unit and what AI they're running.
In addition, as you move your mouse over the screen you can get extra info by holding down various combinations of CTRL, SHIFT, and ALT. Some particular highlights (some of which are specific to this mod):
ALT over owned territory - Strategies the owner is using, their area AI plus info on all wars they are in and what war plan they are using.
ALT over land - Values for city founding in that plot for all relevant players plus info on the number of sites an AI has selected in the area. If the plot is one of the selected ones for an AI then a yellow X appears next to the player.
CTRL over city - Closeness calculations for city and sum for player/team. Info on num of defenders the AI has/needs.
CTRL or SHIFT over unit - Mission and AI the unit is using or stats on the unit.
SHIFT and ALT near city - Whether the plot is being worked by the city, values the city assigns to working the plot, plus info on how important various resources are to different AIs.
SHIFT over empty owned territory - Values the AI assigns to various civics.
There are other bits of info as well, play around with various combinations. If you are curious what a particular value means for the AI you can search in CvGameTextMgr.cpp ... most label strings like "Closeness" or whatever are not localized so you can easily find the relevant selection by searching for them.
Finally, this mod includes AIAutoPlay and using it you can have the AI play for you to fully simulate the game. This can be run independently of debug mode, when not in debug mode you'll see only what one player sees. Open the Python console and enter CyGame().setAIAutoPlay(10) to simulate 10 turns.
WARNING: Debug mode exposes the entire map, all cities and units (including spies). You may not want to do this on a game you intend to keep playing ...
1. With civ closed, open \My Games\BTS\CivilizationIV.ini and on the line CheatCode enter chipotle.
2. Start up civ and load/start a game. You can enter/exit debug mode at any time once the cheat code is entered, doesn't effect saves or anything like that.
Method 1:
3. Press Ctrl-Z to flip between debug mode and normal civ. (thanks Nor Me for the tip)
Method 2: (Python console instructions left for use running automation)
3. Press SHIFT+~ to open the in game Python console. This is a very useful tool for forcing things to happen in game to test them.
4. Type CyGame().toggleDebugMode() into the Python console. This turns debug mode on or off. The game will take a little while to expose the whole map.
5. Press SHIFT+~ to close the Python console.
In debug mode you can get all kinds of internal information on the state of the AI from the map. All civs in the game will show up in the scoreboard and you can see what they're researching. You can enter any city to see what it's doing as well as see every unit and what AI they're running.
In addition, as you move your mouse over the screen you can get extra info by holding down various combinations of CTRL, SHIFT, and ALT. Some particular highlights (some of which are specific to this mod):
ALT over owned territory - Strategies the owner is using, their area AI plus info on all wars they are in and what war plan they are using.
ALT over land - Values for city founding in that plot for all relevant players plus info on the number of sites an AI has selected in the area. If the plot is one of the selected ones for an AI then a yellow X appears next to the player.
CTRL over city - Closeness calculations for city and sum for player/team. Info on num of defenders the AI has/needs.
CTRL or SHIFT over unit - Mission and AI the unit is using or stats on the unit.
SHIFT and ALT near city - Whether the plot is being worked by the city, values the city assigns to working the plot, plus info on how important various resources are to different AIs.
SHIFT over empty owned territory - Values the AI assigns to various civics.
There are other bits of info as well, play around with various combinations. If you are curious what a particular value means for the AI you can search in CvGameTextMgr.cpp ... most label strings like "Closeness" or whatever are not localized so you can easily find the relevant selection by searching for them.
Finally, this mod includes AIAutoPlay and using it you can have the AI play for you to fully simulate the game. This can be run independently of debug mode, when not in debug mode you'll see only what one player sees. Open the Python console and enter CyGame().setAIAutoPlay(10) to simulate 10 turns.