Console commands

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 .

For example: help modcredits
 * SYNOPSIS
 * modcredits


 * DESCRIPTION
 * The modcredits command will modify the local player's credits by the value provided.


 * PARAMETERS
 * - numeric value to modify the credits by.

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


 * modcredits <1000000000>
 * modpop
 * modcult
 * modstat
 * liststat
 * colonize
 * createtraderesource
 * finish
 * event
 * unlock
 * fastunlock
 * destroy 
 * fow
 * fowtrans
 * displayfow
 * resources
 * killplayer
 * force desync error
 * ai
 * displayinfluence
 * dipstate
 * addmod
 * god
 * fps
 * hideui
 * setgov
 * localplayer
 * showmem
 * assetreport
 * savelog
 * turn
 * cam
 * gencompthumbs
 * genconfigthumbs
 * genleanmaps
 * help
 * clearlog
 * lighting
 * range
 * sectorlines
 * showRallyPoints
 * cameralock
 * objectgfxconfig
 * resetlighting
 * smoothinfluencelines
 * convertconfigs
 * upprime
 * upmeeting
 * soak
 * spawn
 * battle
 * spawn
 * battle
 * spawnfaction
 * assassination
 * spawnartifact
 * spawnanoamly
 * convertdeadplanet
 * convertdeadplanettothulium
 * convertasteroidstodurantium
 * convertgasgianttopromethion
 * spawnelerium
 * spawnrelic
 * spawnantimatter
 * grantrandomtechtoall
 * sounds
 * stopsounds
 * hotkeys
 * battlesync
 * battlepaths
 * run
 * info
 * debugcinecam
 * shortshipnames
 * enableheapasserts
 * wingame
 * losegame
 * allmercs
 * resetmercs
 * test


 * SYNOPSIS
 * modcredits


 * DESCRIPTION
 * The modcredits command will modify the local player's credits by the value provided


 * PARAMETERS
 * - numeric value to modify the credits by


 * SYNOPSIS
 * modpop

This works for any player's colony
 * DESCRIPTION
 * The modpop command will change the population of the colony on the currently selected planet


 * PARAMETERS
 * - numeric value to modify the population by


 * SYNOPSIS
 * modcult


 * DESCRIPTION
 * The modcult command will modify the local player's culture (ideology) points by the value provided


 * PARAMETERS
 * - numeric value to modify the culture (ideology) points by


 * SYNOPSIS
 * modstat


 * DESCRIPTION
 * The modstat command will set a specified stat value for the currently selected game object (or the local player, if none)

Use liststat to see options
 * PARAMETERS
 * - Name of stat to change
 * - Numeric value to set the stat to


 * SYNOPSIS
 * liststat


 * DESCRIPTION
 * The liststat command will list all stats that can be modified with modstat


 * PARAMETERS
 * None


 * SYNOPSIS
 * colonize


 * DESCRIPTION
 * The colonize command will colonize the currently selected planet for the current local player


 * PARAMETERS
 * - All uncolonized planets in the galaxy will become colonized


 * SYNOPSIS
 * createtraderesource


 * DESCRIPTION
 * Creates the trade resource at tilex, tiley on currently selected planet


 * PARAMETERS
 * - The internal name of the resource to be created
 * - The x location on the planet
 * - The y location on the planet


 * SYNOPSIS
 * finish

If no parameters are given, all items in the queue are completed
 * DESCRIPTION
 * The finish command can be used to complete production on items in the queue at the currently selected colony


 * PARAMETERS
 * - Specifying the optional paramater "next" will cause only the next item in the queue to be completed


 * SYNOPSIS
 * event


 * DESCRIPTION
 * Runs an arbitrary Galactic Event, or MegaEvent


 * PARAMETERS
 * - The InternalName of the Event or MegaEvent


 * SYNOPSIS
 * unlock

If no tech name is given, then all techs and culture traits will be unlocked
 * DESCRIPTION
 * The unlock command will unlock the specified tech for the local player


 * PARAMETERS
 * - An optional parameter to specify the internal name of the tech to unlock


 * SYNOPSIS
 * fastunlock

This does nothing else and takes no parameters
 * DESCRIPTION
 * A light weight unlock command that unlocks all the techs as quickly as possible


 * PARAMETERS
 * None


 * SYNOPSIS
 * destroy 


 * DESCRIPTION
 * The destroy command will destroy the currently selected object if no object ID is provided


 * PARAMETERS
 *  -  The ID of the object that should be destroyed


 * SYNOPSIS
 * fow

It can also select which player'sfog of war to show based on player index
 * DESCRIPTION
 * The fow command will toggle the fog of war on and off


 * PARAMETERS
 * - 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

It will also grant 1000 of every type of resource (to every player) It does this for up to ten turns, i.e. max 10,000, unless you toggle it off before ten turns
 * DESCRIPTION
 * Toggles whether or not resources are required for building ships


 * PARAMETERS
 * None


 * SYNOPSIS
 * killplayer

Omitting the player index will kill the local player
 * DESCRIPTION
 * The killplayer command will kill a player based on player index


 * PARAMETERS
 * - 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

The parameter "hold" will allow the user to increment the next turn instead of the AI doing it automatically
 * DESCRIPTION
 * This will toggle the local play to be AI and back

Let the user press the turn button
 * PARAMETERS
 * - Prevent the AI from automaticaly ending the turn


 * SYNOPSIS
 * displayinfluence


 * DESCRIPTION
 * The displayinfluence command will print a ascii representation of the influence map


 * PARAMETERS
 * None


 * SYNOPSIS
 * dipstate

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
 * DESCRIPTION
 * Sets the diplomacy state between two players

(Friendly, Foreign, Enemy, Trading) - The player index of the first player This must be given if the first player index is given
 * PARAMETERS
 * - The diplomatic state to set
 * - The player index of the second player


 * SYNOPSIS
 * addmod


 * 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 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

Pass in an empty parameter to clear it
 * DESCRIPTION
 * Sets the government def for the local player


 * PARAMETERS
 * - Internal name of the government to assign to the player


 * SYNOPSIS
 * localplayer


 * DESCRIPTION
 * Changes the local player to be the specified player index


 * PARAMETERS
 * - 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

If no file name is provided the contents will be written to %s by default
 * DESCRIPTION
 * The savelog command writes the current contents of the console log

The file is saved at %s
 * PARAMETERS
 * - Filename that the console log should be written to


 * 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
 * - An optional parameter to force generation of large thumbnails


 * SYNOPSIS
 * genleanmaps


 * DESCRIPTION
 * Generates lean maps for each texture set


 * PARAMETERS
 * None


 * SYNOPSIS
 * help


 * DESCRIPTION
 * The help command shows a list of commands


 * PARAMETERS
 * - 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

NOTE: This is only available in DEBUG builds
 * DESCRIPTION
 * The sectorlines command will toggle the rectangular sector lines on and off


 * PARAMETERS
 * None


 * SYNOPSIS
 * showRallyPoints

NOTE: This is only available in DEBUG builds
 * DESCRIPTION
 * The showRallyPoints command will toggle the other player rally points on and off


 * PARAMETERS
 * None


 * SYNOPSIS
 * cameralock


 * DESCRIPTION
 * Toggles the camera tilt lock on/off


 * PARAMETERS
 * None


 * SYNOPSIS
 * objectgfxconfig


 * DESCRIPTION
 * Generates a objectgfxconfig binary file by placing the specified model at the origin


 * PARAMETERS
 * - must be: dir
 * - source is the source directory where FBX files are located (do not include the final back-slash)
 * - output file name (only required if option is file)


 * SYNOPSIS
 * resetlighting


 * DESCRIPTION
 * Resets specified scene to original lighting settings in xml

mainmap - main map scene
 * PARAMETERS
 * - must be one of the following:


 * 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


 * DESCRIPTION
 * Creates several ships of specified type (and with specified owner) in the tiles around the selected ship


 * PARAMETERS
 * - Ship design name of the ship to spawn
 * - The player index of the player who will own the new ships


 * SYNOPSIS
 * battle


 * DESCRIPTION
 * Creates several ships of specified type (and with specified owners) in the tiles around the selected ship

- (optional) The player index of the player who will own the other half of the new ships (default = 1)
 * PARAMETERS
 * - Ship design name of the ship to spawn
 * - (optional) The player index of the player who will own half of the new ships (default = 0)


 * SYNOPSIS
 * spawn


 * DESCRIPTION
 * Creates several ships of specified blueprint (and with specified owner) in the tiles around the selected ship

- Blueprint name of the ship to spawn
 * PARAMETERS
 * - The player index of the player who will own the new ships


 * SYNOPSIS
 * battle


 * DESCRIPTION
 * Creates several ships of specified blueprint (and with specified owners) in the tiles around the selected ship

- (optional) The player index of the player who will own the other half of the new ships (default = 1)
 * PARAMETERS
 * - Blueprint name of the ship to spawn
 * - (optional) The player index of the player who will own half of the new ships (default = 0)


 * SYNOPSIS
 * spawnfaction


 * DESCRIPTION
 * Creates a new faction


 * PARAMETERS
 * - Name of faction
 * - Starting population of planet, if 0 then no planet
 * - Class of starting planet, if any
 * - (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
 * - Number to create, defaults to 1
 * - Specific anomaly (OR anomaly group) def to use, otherwise random


 * SYNOPSIS
 * convertdeadplanet


 * DESCRIPTION
 * Converts a random dead planet to be usable


 * PARAMETERS
 * - Planet class to convert dead planet to, defaults to 10
 * - Number of planets to convert


 * SYNOPSIS
 * convertdeadplanettothulium

- Number to convert, defaults to 1
 * DESCRIPTION
 * Converts N random dead planet(s) into a Thulium resource(s)


 * SYNOPSIS
 * convertasteroidstodurantium

- Number to convert, defaults to 1
 * DESCRIPTION
 * Converts N random asteroid(s) into a Durantium resource(s)


 * SYNOPSIS
 * convertgasgianttopromethion

- Number to convert, defaults to 1
 * DESCRIPTION
 * Converts N random Gas Giant(s) into a Promethion resource(s)


 * SYNOPSIS
 * spawnelerium


 * DESCRIPTION
 * Spawns an Elerium resource in a random empty location (in a nebula)


 * PARAMETERS
 * - Number to create, defaults to 1


 * SYNOPSIS
 * spawnrelic


 * DESCRIPTION
 * Spawns a Relic resource in a random empty location


 * PARAMETERS
 * - Number to create, defaults to 1


 * SYNOPSIS
 * spawnantimatter


 * DESCRIPTION
 * Spawns an Antimatter resource in a random empty location (around a black hole)


 * PARAMETERS
 * - 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

Use to kill leaked SFX loops
 * DESCRIPTION
 * Stops all sound instances in Miles Sound System


 * 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


 * 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

Be aware this means files can be overwritten
 * DESCRIPTION
 * When on, saved ship designs do not append a unique ID onto their internal name


 * SYNOPSIS
 * enableheapasserts


 * DESCRIPTION
 * Disables asserts for the scene node pools when they run out of nodes and use the heap


 * SYNOPSIS
 * wingame

Game will end
 * DESCRIPTION
 * Kills all players except for the local player


 * SYNOPSIS
 * losegame

Game will end
 * DESCRIPTION
 * Kills the local player


 * SYNOPSIS
 * allmercs


 * DESCRIPTION
 * Makes all mercenaries available for purchase


 * SYNOPSIS
 * resetmercs


 * DESCRIPTION
 * Any mercenaries that were purchased already will be purchasable again


 * SYNOPSIS
 * test

Go away
 * DESCRIPTION
 * Developer only command