Contents
Search

/c game.player.surface.always_day=true

Console Command
Command /c game.player.surface.always_day=true
Command Category Description Run Lua scripts. WARNING: The use of scripting and cheat commands will disable achievements. Please proceed with caution.
Description Turn off night. Enables eternal day.
Example None
Admin None
Category
How To Use

The command console is Factorio's command-line interface, which can be used for running cheat commands, as well as chatting with other players and receiving occasional status updated.

To open the console, press the / or ~ key. The ~ key is usually located below the Esc key. The / key is also usually the ? key.

The console can accept raw Lua code as well as game commands.

Use the Tab key to auto-complete commands and player IDs. Enter the first few letters and then press the Tab key.

Disclaimer: Because commands can sometimes make unexpected changed to your game, it is recommended that you save your game before using any commands.

/c
Category
Scripting and Cheat Commands
Description
Executes a Lua command.
Read More
See example for the script
Category
Scripting and Cheat Commands
Description
Reveal the map around the player. Reveals the map around the player, similar to a radar.
Read More
/c game.player.print(game.player.position.x .. ", " .. game.player.position.y)
Category
Scripting and Cheat Commands
Description
Get player position. Prints coordinates of your current position.
Read More
See example for the script
Category
Scripting and Cheat Commands
Description
Unresearch all technologies. This does not reset manually applied bonuses
Read More
/c game.player.cheat_mode=
Category
Scripting and Cheat Commands
Description
Allows for infinite free crafting. Disable by replacing true with false.
Read More
See example for the script
Category
Scripting and Cheat Commands
Description
Completely turn off pollution
Read More
/c game.player.force.technologies[' '].researched=
Category
Scripting and Cheat Commands
Description
Research specific technologies. The internal technology names can be found in the infoboxes on their respective pages.
Read More
/c game.player.game_view_settings.show_rail_block_visualisation =
Category
Scripting and Cheat Commands
Description
Always show rail block visualization. Permanently show the rail block visualization instead of only when holding a rail signal. Disable by replacing true with false.
Read More
/c game.map_settings.enemy_expansion.enabled =
Category
Scripting and Cheat Commands
Description
Enable/Disable biter expansion. Biter expansion allows biters to create new nests, it is enabled by default. Substitute true for false to disable.
Read More
/measured-command
Category
Scripting and Cheat Commands
Description
Executes a Lua command and measures time it took.
Read More
/c game.forces[" "].evolution_factor=X
Category
Scripting and Cheat Commands
Description
Set evolution factor. Ranges from 0 (new game) to 1.
Read More
/c game.player.insert{name=" ", count= }
Category
Scripting and Cheat Commands
Description
Add items to the player's inventory. Replace iron-plate with the internal name of the item desired.
Read More
/c game.player.surface.peaceful_mode =
Category
Scripting and Cheat Commands
Description
Enable/Disable peaceful mode. Enabling peaceful mode prevents biter attacks until provoked. Substitute true for false to disable. Already existing biters are not affected by this command so attacks could continue for a while after activating peaceful mode.
Read More
/c game.player.surface.freeze_daytime=
Category
Scripting and Cheat Commands
Description
Freeze time. Stops the advancement of the time if you replace "BOOL" with "true" or unfreezes it if you replace it with "false".
Read More