» » Factorio - Useful Console Commands (Cheat Codes)

Factorio - Useful Console Commands (Cheat Codes)

Mar 4, 2016     Factorio
Want to mine at stupid speeds? Hate nights? Hate biters? Spawn in stuff? All possible using console commands! Read this guide to learn how to use the Factorio console commands (cheat codes).

Factorio - Useful Console Commands (Cheat Codes)

How to open the console?

Using the Factorio console is surprisingly simple. Just open the chat box (default is ~ or /).

If you can't find the right key: open the options screen and look for controls, you should be able to find a control named "Toggle Lua console" with a key right next to it.

If you want to repeat a previously executed command, press the up arrow on your keyboard to scroll through the chat/command history.

Console commands (cheat codes)

You can use the console to spawn items, walk faster, unlock researches and many more. Here's a bunch of useful commands.

Mine faster (Default - 1).
/c game.local_player.force.manual_mining_speed_modifier=100

Craft faster (Default - 1).
/c game.local_player.force.manual_crafting_speed_modifier=100

Laboratories research faster (Default - 1).
/c game.local_player.force.laboratory_speed_modifier=100

Complete all researches (This activates all researches as if you have researched them).
/c game.local_player.force.research_all_technologies()

Zoom out further than usual (Zoom resets when you zoom in again. Note: values below 0.07 are buggy and impact game performance negatively).
/c game.local_player.zoom=0.1

Always daytime
/c game.always_day=true

Set game speed (Warning: higher speeds negatively affect your framerate/game performance).
/c game.speed=2

Kill all biters
/c game.forces['enemy'].kill_all_units()

Spawn items (Internal name: iron-plate, copper-plate, coal, steam-engine, submachine-gun, etc. You can find more internal item names here.)
/c game.local_player.insert{name='internal-name', count=1}
8 April 2016 09:29 | kalebboren

I know how to kill biters but is there a way to destroy the spammers and worms as well?
8 April 2016 21:32 | R513

Basically you write this in the chat box:

/c for _, entity in ipairs(game.findentitiesfiltered{

area={{game.player.position.x-{INSERT_RADIUS_HERE}, game.player.position.y-{INSERT_RADIUS_HERE}},

{game.player.position.x+{INSERT_RADIUS_HERE}, game.player.position.y+{INSERT_RADIUS_HERE}}},


And replace {INSERT_TILE_NAME_HERE} and {INSERT_RADIUS_HERE} with your choice! Use "spitter-spawner", "biter-spawner", "small-worm-turret", "medium-worm-turret" and "big-worm-turret" in a radius of 5000 tiles!
19 April 2016 21:01 | mokawilloghby

is there a way to spawn some of the hives?
28 April 2016 07:39 | Luckyca

Anyone know the insert name to spawn ammo magazines, I have tried their names but it never works.
28 April 2016 14:50 | R513

5 October 2016 01:31 | caeden4804

i need help i put the command in and it gives me an error something about lua script thing
13 October 2016 17:32 | R513

Try to turn off the all mods.
26 October 2016 02:47 | corbinaddison

is there a way to increase the research time but only by a bit
26 October 2016 18:14 | R513

You can choose the modifier in the range of 1 to 100. Default - 1.
27 October 2016 01:49 | corbinaddison

27 October 2016 17:04 | R513

This command is working?
/c game.local_player.force.laboratory_speed_modifier=30
29 October 2016 00:34 | corbinaddison

nope it does not work
Contact | RSS | Sitemap

© 2016 | Gameplay.tips - Guides, Cheat Codes, Trainers and Easter Eggs.