- Remove all enemies from the map:
- / c local surface = game.local_player.surface for c in surface.get_chunks () do for key, entity in pairs (surface.find_entities_filtered ({area = {{cx * 32, cy * 32}, {cx * 32 + 32 , cy * 32 + 32}}, force = “enemy”})) do entity.destroy () end end
- Using the calculator:
- / c game.local_player.print (5 * 2)
- Bite Evolution Coefficient Check:
- / c game.local_player.print (game.evolution_factor)
- Turn off night:
- / c game.always_day = true
- Reduce game zoom (handy for blueprints):
- / c game.local_player.zoom = 0.1
- Kill all enemies within the radius of your screen:
- / c game.forces [“enemy”]. kill_all_units ()
- Adds 100 iron plates: (the value can be changed as I found for copper and steel)
- / c game.local_player.insert {name = “iron-plate”, count = 100} iron
- / c game.local_player.insert {name = “steel-plate”, count = 100} steel
- / c game.local_player.insert {name = “copper-plate”, count = 100} copper
- Adds the amount of resources to the resource deposit (you need to move the cursor to the deposits) (iron ore, oil, etc.)
- / c game.local_player.selected.amount = 7500
- Creates deposits of new resources around your character (“stone” to “iron-ore”, “copper-ore”, or “coal”) (do not do close to other resources, otherwise when you install borax it will interfere with them)
- / c local surface = game.local_player.surface;
for y = -2.2 do
for x = -2.2 do
surface.create_entity ({name = “stone”, amount = 5000, position = {game.local_player.position.x + x, game.local_player.position.y + y}})
end
end - Researches all technologies:
- / c for name, technology in pairs (game.local_player.force.technologies) do technology.researched = technology.enabled end
- Accelerates exploration speed: (1 minimum value 100 maximum)
- / c game.local_player.force.laboratory_speed_modifier = 100
- Speeds up mining with your pickaxe:
- / c game.local_player.force.manual_mining_speed_modifier = 1000
- Speeds up crafting in your inventory:
- / c game.local_player.force.manual_crafting_speed_modifier = 1000
- Change the color of your character:
- / c game.local_player.color = {g = 50, b = 200, r = 200, a = .9}
- Show the number of units in the game (enemies, players, neutrals):
- / c game.player.print (game.forces.enemy.get_entity_count (“small-biter”))
- Time counter in the game:
- / c game.player.print (“The game has run for” .. math.floor (game.tick / 60) .. “seconds.”)
- Day parameter changes:
- / c game.always_day = true
- / c game.always_day = false
- In-game speed changes:
- / c game.speed = 2
- Setting peacetime (enemies do not attack first, but defend themselves):
- / c game.peaceful_mode = false
- Setting a stable wind to / north / east / south / west:
- game.wind_speed = 2 * game.windspeed
game.wind_orientation = 0.125
game.wind_orientation_change = 0 - End of the game:
- .with game.set_game_state {gamefinished = true, playerwon = true}
- Displaying a dialog box by your character:
- game.show_message_dialog {text = {“hello world”}, pointto = {type = “entity”, entity = game.player.character}}
Factorio: Additional cheat codes
August 7, 2020
3 minutes
90