We have begun migration of most wikis to our new host, Amazon Web Services. All but the top 100 wikis are in read-only mode until the migration is complete. Estimated completion: End of Week.

Console commands

From Galactic Civilizations III Wiki
Jump to: navigation, search

In order to either write cheats or use other console commands you first have to enable the debug console by adding the -cheat launch option to GalCiv's executable file.

Once done, open the console with the default tilde(~) key, the key can be changed in input options. If the console has opened, type help to see a full list of the commands. For information on specific commands type help <command>.

For example: help modcredits

SYNOPSIS
modcredits <amount>
DESCRIPTION
The modcredits command will modify the local player's credits by the value provided.
PARAMETERS
<amount> - numeric value to modify the credits by.

All commands[edit | edit source]

You can also view this list extracted from EXE file(v1.6.1.3):


SYNOPSIS
modcredits <amount>
DESCRIPTION
The modcredits command will modify the local player's credits by the value provided
PARAMETERS
<amount> - numeric value to modify the credits by
SYNOPSIS
modpop <amount>
DESCRIPTION
The modpop command will change the population of the colony on the currently selected planet
This works for any player's colony
PARAMETERS
<amount> - numeric value to modify the population by
SYNOPSIS
modcult <amount>
DESCRIPTION
The modcult command will modify the local player's culture (ideology) points by the value provided
PARAMETERS
<amount> - numeric value to modify the culture (ideology) points by
SYNOPSIS
modstat <amount>
DESCRIPTION
The modstat command will set a specified stat value for the currently selected game object (or the local player, if none)
PARAMETERS
<statname> - Name of stat to change
Use liststat to see options
<amount> - Numeric value to set the stat to
SYNOPSIS
liststat <amount>
DESCRIPTION
The liststat command will list all stats that can be modified with modstat
PARAMETERS
None
SYNOPSIS
colonize <all>
DESCRIPTION
The colonize command will colonize the currently selected planet for the current local player
PARAMETERS
<all> - All uncolonized planets in the galaxy will become colonized
SYNOPSIS
createtraderesource <internal name> <tilex> <tiley>
DESCRIPTION
Creates the trade resource at tilex, tiley on currently selected planet
PARAMETERS
<resource> - The internal name of the resource to be created
<tilex> - The x location on the planet
<tiley> - The y location on the planet
SYNOPSIS
finish <next>
DESCRIPTION
The finish command can be used to complete production on items in the queue at the currently selected colony
If no parameters are given, all items in the queue are completed
PARAMETERS
<next> - Specifying the optional paramater "next" will cause only the next item in the queue to be completed
SYNOPSIS
event <internalname>
DESCRIPTION
Runs an arbitrary Galactic Event, or MegaEvent
PARAMETERS
<internalname> - The InternalName of the Event or MegaEvent
SYNOPSIS
unlock <internal name>
DESCRIPTION
The unlock command will unlock the specified tech for the local player
If no tech name is given, then all techs and culture traits will be unlocked
PARAMETERS
<internal name> - An optional parameter to specify the internal name of the tech to unlock
SYNOPSIS
fastunlock
DESCRIPTION
A light weight unlock command that unlocks all the techs as quickly as possible
This does nothing else and takes no parameters
PARAMETERS
None
SYNOPSIS
destroy <object ID>
DESCRIPTION
The destroy command will destroy the currently selected object if no object ID is provided
PARAMETERS
<object ID> - The ID of the object that should be destroyed
SYNOPSIS
fow <player index>
DESCRIPTION
The fow command will toggle the fog of war on and off
It can also select which player'sfog of war to show based on player index
PARAMETERS
<player index> - The player index of whose fog of war should be displayed
SYNOPSIS
fowtrans
DESCRIPTION
The fowtrans command will toggle all objects on the map to be visible through the fog of war
PARAMETERS
None
SYNOPSIS
displayfow
DESCRIPTION
The displayfow command will print a ascii representation of the fog of war
PARAMETERS
None
SYNOPSIS
resources
DESCRIPTION
Toggles whether or not resources are required for building ships
It will also grant 1000 of every type of resource
PARAMETERS
None
SYNOPSIS
killplayer <player index>
DESCRIPTION
The killplayer command will kill a player based on player index
Omitting the
player index will kill the local player
PARAMETERS
<player index> - The player index that should be killed
SYNOPSIS
force desync error
DESCRIPTION
This command induces a desync error and associated logging
PARAMETERS
None
SYNOPSIS
ai <hold>
DESCRIPTION
This will toggle the local play to be AI and back
The parameter "hold" will allow the user to increment the next turn instead of the AI doing it automatically
PARAMETERS
<hold> - Prevent the AI from automaticaly ending the turn
Let the user press the turn button
SYNOPSIS
displayinfluence
DESCRIPTION
The displayinfluence command will print a ascii representation of the influence map
PARAMETERS
None
SYNOPSIS
dipstate <state> <player index> <player index>
DESCRIPTION
Sets the diplomacy state between two players
The players must be identified by their index ID
The player indices can be omitted in which case the state will be assigned between all players
PARAMETERS
<state> - The diplomatic state to set
(Friendly, Foreign, Enemy, Trading)
<player index> - The player index of the first player
<player index> - The player index of the second player
This must be given if the first player index is given
SYNOPSIS
addmod <internal name>
DESCRIPTION
For the currently selected starbase, the given module internal name will be added to the production queue for the starbase's associated colony
PARAMETERS
<internal name> - Internal name of the starbase module to add
SYNOPSIS
god
DESCRIPTION
Toggles the ability for the local player to control every player's empire
PARAMETERS
None
SYNOPSIS
fps
DESCRIPTION
Toggles the display framerate, draw call, and rendering info over the screen
PARAMETERS
None
SYNOPSIS
hideui
DESCRIPTION
The hideui command toggles UI visibility
PARAMETERS
None
SYNOPSIS
setgov <internal name>
DESCRIPTION
Sets the government def for the local player
Pass in an empty parameter to clear it
PARAMETERS
<internal name> - Internal name of the government to assign to the player
SYNOPSIS
localplayer <player index>
DESCRIPTION
Changes the local player to be the specified player index
PARAMETERS
<player index> - The player index the local player will assume control of
SYNOPSIS
showmem
DESCRIPTION
The showmem command displays memory usage information
PARAMETERS
None
SYNOPSIS
assetreport
DESCRIPTION
The assetreport command creates an asset usage report in the directory %s
PARAMETERS
None
SYNOPSIS
savelog <file>
DESCRIPTION
The savelog command writes the current contents of the console log
If no file name is provided the contents will be written to %s by default
PARAMETERS
<file> - Filename that the console log should be written to
The file is saved at %s
SYNOPSIS
turn
DESCRIPTION
Toggle if you are forced to deal with idle ships and colonies before ending the turn
PARAMETERS
None
SYNOPSIS
cam
DESCRIPTION
Prints position data for the camera
PARAMETERS
None
SYNOPSIS
gencompthumbs
DESCRIPTION
Generates thumbnails for ship components
PARAMETERS
None
SYNOPSIS
genconfigthumbs
DESCRIPTION
Generates thumbnails for all object gfx configs
PARAMETERS
<large> - An optional parameter to force generation of large thumbnails
SYNOPSIS
genleanmaps
DESCRIPTION
Generates lean maps for each texture set
PARAMETERS
None
SYNOPSIS
help <command>
DESCRIPTION
The help command shows a list of commands
PARAMETERS
<command> - Providing a command as a parameter shows additional information about that command
SYNOPSIS
clearlog
DESCRIPTION
The clearlog command clears the console log
PARAMETERS
None
SYNOPSIS
lighting
DESCRIPTION
Activates the lighting options in the main map screen
PARAMETERS
None
SYNOPSIS
range
DESCRIPTION
Toggles unlimited range for local player
PARAMETERS
None
SYNOPSIS
sectorlines
DESCRIPTION
The sectorlines command will toggle the rectangular sector lines on and off
NOTE: This is only available in DEBUG builds
PARAMETERS
None
SYNOPSIS
showRallyPoints
DESCRIPTION
The showRallyPoints command will toggle the other player rally points on and off
NOTE: This is only available in DEBUG builds
PARAMETERS
None
SYNOPSIS
cameralock
DESCRIPTION
Toggles the camera tilt lock on/off
PARAMETERS
None
SYNOPSIS
objectgfxconfig <option> <source> <output>
DESCRIPTION
Generates a objectgfxconfig binary file by placing the specified model at the origin
PARAMETERS
<option> - must be: dir
<source> - source is the source directory where FBX files are located (do not include the final back-slash)
<output> - output file name (only required if option is file)
SYNOPSIS
resetlighting <scenename>
DESCRIPTION
Resets specified scene to original lighting settings in xml
PARAMETERS
<scenename> - must be one of the following:
mainmap
- main map scene
SYNOPSIS
smoothinfluencelines
DESCRIPTION
Toggles whether the influence lines are smooth or curvy
SYNOPSIS
convertconfigs
DESCRIPTION
Saves loaded object gfx configs with the current version
SYNOPSIS
upprime
DESCRIPTION
Primes the United Planets, so you don't have to meet half of the other factions
SYNOPSIS
upmeeting
DESCRIPTION
Immediately opens a United Planets meeting once you close the debug console
SYNOPSIS
soak
DESCRIPTION
Calls several commands that are useful for soak testing
SYNOPSIS
spawn <shipdesignname> <ownerplayerindex>
DESCRIPTION
Creates several ships of specified type (and with specified owner) in the tiles around the selected ship
PARAMETERS
<shipdesignname> - Ship design name of the ship to spawn
<ownerplayerindex> - The player index of the player who will own the new ships
SYNOPSIS
battle <shipdesignname> <ownerplayerindex1> <ownerplayerindex1>
DESCRIPTION
Creates several ships of specified type (and with specified owners) in the tiles around the selected ship
PARAMETERS
<shipdesignname> - Ship design name of the ship to spawn
<ownerplayerindex1> - (optional) The player index of the player who will own half of the new ships (default = 0)
<ownerplayerindex2> - (optional) The player index of the player who will own the other half of the new ships (default = 1)
SYNOPSIS
spawn <blueprintname> <ownerplayerindex>
DESCRIPTION
Creates several ships of specified blueprint (and with specified owner) in the tiles around the selected ship
PARAMETERS
<blueprintname>
- Blueprint name of the ship to spawn
<ownerplayerindex> - The player index of the player who will own the new ships
SYNOPSIS
battle <blueprintname> <ownerplayerindex1> <ownerplayerindex1>
DESCRIPTION
Creates several ships of specified blueprint (and with specified owners) in the tiles around the selected ship
PARAMETERS
<blueprintname> - Blueprint name of the ship to spawn
<ownerplayerindex1> - (optional) The player index of the player who will own half of the new ships (default = 0)
<ownerplayerindex2> - (optional) The player index of the player who will own the other half of the new ships (default = 1)
SYNOPSIS
spawnfaction <factionname>
DESCRIPTION
Creates a new faction
PARAMETERS
<factionname> - Name of faction
<starting population> - Starting population of planet, if 0 then no planet
<planet class> - Class of starting planet, if any
<starting ship factor>- (Optional) Multiplier for starting ships/shipyard, multiplied by #habitable planets
SYNOPSIS
assassination
DESCRIPTION
Causes an assassination between player and faction with closest relation not on same team
SYNOPSIS
spawnartifact
DESCRIPTION
Creates a new artifact (and awards it to the weakest player)
PARAMETERS
SYNOPSIS
spawnanoamly
DESCRIPTION
Creates a random new anomaly in a random location
PARAMETERS
<count> - Number to create, defaults to 1
<name> - Specific anomaly (OR anomaly group) def to use, otherwise random
SYNOPSIS
convertdeadplanet
DESCRIPTION
Converts a random dead planet to be usable
PARAMETERS
<class> - Planet class to convert dead planet to, defaults to 10
<count> - Number of planets to convert
SYNOPSIS
convertdeadplanettothulium
DESCRIPTION
Converts N random dead planet(s) into a Thulium resource(s)
<count> - Number to convert, defaults to 1
SYNOPSIS
convertasteroidstodurantium
DESCRIPTION
Converts N random asteroid(s) into a Durantium resource(s)
<count> - Number to convert, defaults to 1
SYNOPSIS
convertgasgianttopromethion
DESCRIPTION
Converts N random Gas Giant(s) into a Promethion resource(s)
<count> - Number to convert, defaults to 1
SYNOPSIS
spawnelerium
DESCRIPTION
Spawns an Elerium resource in a random empty location (in a nebula)
PARAMETERS
<count> - Number to create, defaults to 1
SYNOPSIS
spawnrelic
DESCRIPTION
Spawns a Relic resource in a random empty location
PARAMETERS
<count> - Number to create, defaults to 1
SYNOPSIS
spawnantimatter
DESCRIPTION
Spawns an Antimatter resource in a random empty location (around a black hole)
PARAMETERS
<count> - Number to create, defaults to 1
SYNOPSIS
grantrandomtechtoall
DESCRIPTION
Determines a random tech that all players don't have and gives it to them
SYNOPSIS
sounds
DESCRIPTION
Prints a list of all sound instances, as reported by Miles Sound System
SYNOPSIS
stopsounds
DESCRIPTION
Stops all sound instances in Miles Sound System
Use to kill leaked SFX loops
SYNOPSIS
hotkeys
DESCRIPTION
Toggles whether cheat hot keys are enabled
SYNOPSIS
battlesync
DESCRIPTION
Toggles whether battle viewer is in synch-mode
SYNOPSIS
battlepaths
DESCRIPTION
Toggles whether battle viewer displays the ship paths
SYNOPSIS
run <textfilename>
DESCRIPTION
Runs the commands specified in the file: textfilename
SYNOPSIS
info
DESCRIPTION
Prints debugging information about the selected target
SYNOPSIS
debugcinecam
DESCRIPTION
Toggles cinematic camera selector in battle viewer window
SYNOPSIS
shortshipnames <scenename>
DESCRIPTION
When on, saved ship designs do not append a unique ID onto their internal name
Be aware this means files can be overwritten
SYNOPSIS
enableheapasserts
DESCRIPTION
Disables asserts for the scene node pools when they run out of nodes and use the heap
SYNOPSIS
wingame
DESCRIPTION
Kills all players except for the local player
Game will end
SYNOPSIS
losegame
DESCRIPTION
Kills the local player
Game will end
SYNOPSIS
allmercs <next>
DESCRIPTION
Makes all mercenaries available for purchase
SYNOPSIS
resetmercs
DESCRIPTION
Any mercenaries that were purchased already will be purchasable again
SYNOPSIS
test
DESCRIPTION
Developer only command
Go away