Skip to content

Instantly share code, notes, and snippets.

@flbuddymooreiv
Last active May 30, 2021 19:09
Show Gist options
  • Save flbuddymooreiv/ae30bbada711ec1580dad83b79466a48 to your computer and use it in GitHub Desktop.
Save flbuddymooreiv/ae30bbada711ec1580dad83b79466a48 to your computer and use it in GitHub Desktop.
Factorio Commands/Workarounds

When biter "Unit groups" in the debug info display reaches into the many hundreds and thousands and the biters are standing around not attacking, this will clear the units and update the fog of war to get rid of stale entries.

/c game.forces["enemy"].kill_all_units() --[[ not a semicolon --]] game.forces.player.chart_all()

Start all the trains in a given area:

/c for k,v in pairs(game.player.surface.find_entities_filtered({name='locomotive', area={{x1,y1},{x2,y2}}})) do v.train.manual_mode=false end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment