I tried to map out all the commands of "teippi debug.qdp" (most of the commands apply to "ai_debug.qdp", as well) based on these 2 files:
scconsole.cppgenericconsole.cppI tested the commands out only with "teippi_dev.qdp", though.
There are some commands that I couldn't figure out. You'll find them along the other commands. If you have any idea about how they work, let me know, and I'll adjust the post.
Any of you know why I get "Failed to get ImageSize" below when I'm trying to link to an imgur image?
Legend
() - is used for mandatory values
[] - is used for optional values
<> - value type
Example: number, number decimal, number hexadecimal, string
"number" is the same as "number decimal"
"..." - type what's exactly between the quotes without the quotes
The debug info is controlled through console that can be opened with the "~" key.
Some of the commands descriptions was taken from
here.
The commands are ordered the same as they are presented in the help prompt:
Failed to get ImageSize (
http://i.imgur.com/9hcaBEZ.png )
spawn (unit name <string> or hexadecimal_id <number hexadecimal>) (amount <number>) (player_id <number>)Spawn a specific amount of units for a certain player
Example:
spawn probe 10 1 - spawns 10 probes for the player with the id of 1
spawn 3d 10 1 - spawns 10 dark templars for the player with the id of 1
It doesn't work for units that have a 2 word string, for example "dark templar". Instead, you have to use the hexadecimal_id for "dark templar", which is "3d". The hexadecimal_id is derived from the decimal_id of the unit, which for "dark templar" is 61. This 61 value can be found in DatEdit, SCMDraft 2, ChkDraft and some other tools
Every time you use a 2 word string, a suggestion gets printed showing both the name of the unit and its hexadecimal_id
color bg (value <number decimal or hexadecimal>)Sets console background color
Example:
color bg 255
color bg d1
color text (value <number decimal or hexadecimal>)Sets help font color
Example:
color text 255
color text d1
color own (value <number decimal or hexadecimal>)Sets command font color
Example:
color own bb
color border (value <number decimal or hexadecimal>)Sets console border color
Example:
color border 255
color typo (value <number decimal or hexadecimal>)Sets typo font color
Example:
color typo 255
color fail (value <number decimal or hexadecimal>)Sets fail font color
Example:
color fail 70
crashCrashes the game
quitExits the game
exitSame as quit
clsClears the console display
tcr (trigger check rate <number>)I'm not sure what this does, but I think the value it takes is expressed as milliseconds
Example:
tcr 100
trigger_speedSame as tcr
int3I think it exits the game in a different manner than quit
termSame as quit
terminateSame as quit
echo (value <string>)Prints a given string to console
Example:
echo am I doing it right?
pidShow Starcraft's process id
helpPrints help to console
aiscript countPrints all the AI scripts on the map, I think
aiscript info (player_id <number>) - the player must be a CPU player
Prints information related to AI scripts
Example:
aiscript info 1 - displays information for each AI script player 1 has
gsw (value <number>)Sets the game to wait *about* (value <number>) milliseconds between frames. Slowest working value is around 150, holding down the + key will go even faster than "gsw 0"
Example:
gsw 42 - runs game at the fastest speed
sleep (value <number>)Freezes the game for an amount of milliseconds
Example:
sleep 5000 - freezes the game for 5 seconds
cmdsSame as help
healSelect at least a unit/building (own/enemy/neutral) and type heal to restore its full health
killSelect at least a unit/building (own/enemy/neutral) and type kill to kill/destroy it
giveSelect a unit/building, not yours, and type "give" (unit's color won't change when it will become yours) for it to become yours
visReveals AI's visibility (perhaps all players' visibility, since I haven't tested it with other human players) under the Fog of War
uSelect a unit and then type "u" to see options
Options:
u aiSelect a CPU's unit and type "u ai"
u flags ["v"]Select a unit and type the command/s to shows related flags about a unit
Examples:
u flags
u flags v
u idSelect a unit and type the command to show a unit's id and its lookup_id
Example of results that might get displayed:
Unit id: 9a, lookup id: 0000003e
u ("f"/"find") (lookup_id <number hexadecimal>)Use the lookup_id value provided by "u id" to find the unit behind the value on the map. Once the command is triggered, it jumps on the map to the unit's location.
Example:
The example for for "u id" above has "0000003e" as the lookup_id, hence we can use:
u find 3e
or
u f 3e
unitSame as u
supplymaxSets your supply to half of a given value
Example:
supplymax 600 - sets your supply to 300
selfPrints to console the game number
It shows different things for, I think, when you're playing alone or when you're in a network game
airegionairegion (player_id <number>) (region code <number hexadecimal>)
Displays the state and the flags that an air region has for a player (I think it has to be CPU player)
Before using airegion, type "show regions" in the console.
Example:
airegion 2 c5 - c5 is not the number in the parentheses. See picture:
Failed to get ImageSize (
http://i.imgur.com/ng1p6pL.png )
airegSame as airegion
playerSelect a player's unit/building and type "player" to print the ID of the respective player
moneyPrints your minerals and gas
money (player_id <number>)Prints a player's minerals and gas
money set (player_id <number>) (minerals <number>) (gas <number>)Gives a player resources
Example:
money set 0 500 1000 - gives 500 minerals and 1000 gas to player 0
resourcesSame as money
supplySelect a player's unit and type supply to see that player's supply
supply (player_id <number>)Type "supply" along with a player's id
Example:
supply 0
framePrints the frame count
pausePauses / unpauses the game
show nothingHides any info on the screen related to "show"
show fpsShows frames per second in the top right side of the screen
show frameShows frame count in the top right side of the screen
show regionsShows the pathfinding regions. Useful with "show ai player (player_id <number>)", which shows extra info for each region
show locationsDraws location borders on the screen
show pathsDraws the paths of the units on the screen
show collisionDraws the collision boxes of the units as a rectangle
show coordsShows different kinds of coordinates (game, mouse, screen) in the top right side of the screen
show rangeDraws an *approximation* of a unit's range as a circle. BW's distance algorithm causes the range to be more of a 12-gon than a circle, so the shown circle is not perfect representation
Failed to get ImageSize (
http://imgur.com/vtolZoc )
Source
Source show infoShow different kind of info (units, bullets, sprites, images) in the top right side of the screen
show bulletsShows bullets on impact as rectangles on the screen. Attack a unit to see it in action
show resareasShows the base resource areas, which are locations the AI will be able to expand to
show ai (Abbreviation sai)
Toggles the main debug output on/off. Shows the request queue of AI players in the top left corner, the AI will always only look at the first request on the queue until it can start working on it, or discard it completely
show ai fullShow all AI info
show ai simpleTurns off "show ai full"
show ai namedShows named AI
show ai rawTurns off "show ai named"
show ai unitsAbbreviation saiu)
Draws lines from each AI unit to their related location. For workers and buildings the line shows their town, for military it shows the current region they are allocated to, and guards show their home point
show ai guards (Abbreviation saig)
Shows guard positions, for both alive guards and ones that the AI tries to build
show ai player (player_id <number>) Abbreviation saip (player id <number>))
Limits debug info to specific player and shows region info of a player. The player_id is 0-based, you can also use "player" command to show what player owns the currently selected unit
show ai player allReverts "show ai player (player_id <number>)"
show orders allShows the orders of all the units on the map
show orders selectedShows the orders of the currently selected unit
dcdc = death counter
Prints this:
dc["?"|";"] <unit name or hex id> [player id, player id, ...]
dc? (unit_name <string> or hex_id <number hex>) (player_id <number>)Prints the death counter of a unit for a specific player
dc; (unit_name <string> or hex_id <number hex>) (player_id <number>)No idea what it does
dc;;Death counter clear (doesn't seem to work)
It seems to be more to the dc command, but I don't know how it all works
gridCreates a grid on the screen providing a width, height and a color
grid ("+"|"-") w <number> [h <number>] [color <number decimal or hexadecimal>]
Example:
grid + 10 10 0 - draws a grid using 10 by 10 squares of beige color
grid - 10 10 - removes the previously created grid
test -1Print how to use test. You must be in an on-going game for this to work
test all (value <number>) (repeat <number>)test (begin_id <number>) (end_id <number>) (repeat <number>)Not sure how these work
test ai_tgtprioNo idea what this does
ais_exec (player_id <number>) (bytes <number not sure if hex or binary>)Not sure what this does
Post has been edited 2 time(s), last time on Mar 19 2022, 12:33 pm by NiceNowIHaveAName.
None.