Knowledgebase Factorio

How to Change the Difficulty on Your Factorio Server

factorio mods

How to Change the Difficulty on Your Factorio Server

Factorio
ยท
Nov 9, 2024
ยท
4 min read

Factorio uses a dynamic difficulty system to affect progression rate, enemy behaviour, and expansion. By using various commands, you can alter your world and/or playstyle post-world generation.

As there aren't traditional difficulties like easy, normal, and hard in Factorio, you will have to change individual enemy traits and attributes to adjust your game difficulty.

Important

Using these commands will disable achievements within your world save.


#Using Console Commands

To adjust in-game enemy difficulty settings, you'll need to send commands into the in-game console as an admin.

  1. Press the ~ key to open the in-game console.
  2. Input your desired command (some can be found in the list below); press the Enter key to send.

#Enemy Expansion Commands

An expansion is when a group of biters/spitters leave their base to create a new base, which will consist of as many worms/nests as there are members in the group.

To easily change your overall enemy difficulty, increasing the enemy expansion cooldown on your world may be your best option.

Note

The time values in these commands are in-game ticks. There are 60 game ticks in one second. Additionally, these values must be between 0 and 4294967295.

CommandDescription
/c game.map_settings.enemy_expansion.min_expansion_cooldown=<ticks>Set the minimum cooldown for enemy expansion events. The default is 14400 (4 minutes).
/c game.map_settings.enemy_expansion.max_expansion_cooldown=<ticks>Set the maximum cooldown for enemy expansion events. The default is 216000 (60 minutes).

#List of Difficulty Commands

Listed below are a few other common difficulty-related commands. For more in-game console commands, please visit this wiki page.

CommandDescription
/c game.forces["enemy"].evolution_factor=XSet enemy evolution factor. Ranges from 0 (new game) to 1.
/c game.map_settings.enemy_evolution.time_factor=0Disables time-based evolution.
/c game.forces["enemy"].kill_all_units()Kill all biters on the enemy force. This will only kill mobile units, spawners will persist.
/c game.map_settings.enemy_expansion.min_player_base_distance=-1Biters will ignore player structures and build next to walls.
/c game.map_settings.enemy_expansion.min_base_spacing=1Distance enemy bases can spawn next to each other (default 3).
/c game.map_settings.enemy_expansion.max_expansion_distance=4Distance between an existing and new enemy base (default 7).

If you require any further assistance, please contact our support at: https://shockbyte.com/billing/submitticket.php

Join Discord