Factorio server-settings.json gerador

Factorio's server-settings.json é JSON rigoroso, que é implacável numa coisa específica que apanha quase todos: vírgulas finais.

Começar com um preset

Definições Visuais

Formato json
Identity

Name shown in the public server browser.

Description in the browser.

Comma-separated tags used by the server browser filters.

Gameplay

Who may run console commands. Note that using commands disables achievements for the save.

World

Minutes between autosaves. Each one briefly stutters a large factory, so long intervals trade safety for smoothness.

How many autosaves to rotate through.

Players & Access

0 means unlimited, not closed. Setting it to 0 to block joins gives you an uncapped public server instead — use a password or the visibility settings for that.

Join password. Unquoted numbers are a JSON error here, so a numeric password still needs quotes.

Verifies players against their Factorio account.

Minutes before an idle player is kicked. 0 disables it.

Performance

Pauses the game when nobody is connected. Your factory stops producing while the server is empty.

Saves in a background process so the game does not stall. Uses roughly double the memory during a save.

Network

Publishes the server to the public list. This — not your router — is what decides whether the server appears in the browser or in an external status check.

Announces the server on the local network.

Factorio account username. Required for public visibility; without valid credentials the server stays invisible however it is configured.

Factorio account token that goes with the username. Treat it like a password.

server-settings.json

usernamePublic visibility needs valid Factorio account credentials. Without them the server runs but never appears in the browser or in a status check.
max_players0 means unlimited, not closed. Use a password or the visibility settings to restrict who can join.
{
  "name": "Spawnly Factory",
  "description": "The factory grows.",
  "tags": "",
  "max_players": 0,
  "game_password": "",
  "require_user_verification": 1,
  "visibility_public": 1,
  "visibility_lan": 1,
  "username": "",
  "token": "",
  "autosave_interval": 10,
  "autosave_slots": 5,
  "afk_autokick_interval": 0,
  "allow_commands": "admins-only",
  "auto_pause": 1,
  "non_blocking_saving": 0
}

Como funciona a sintaxe do server-settings.json

Regras JSON padrão aplicam-se sem extensões. Nenhum comentário de qualquer tipo, nenhuma vírgula final depois do último item num objeto, strings entre aspas duplas, números e booleanos sem aspas. Citar um número é um erro real aqui em vez de um inofensivo - max_players escrito como "10" é uma string e não será aceite onde um número é esperado.

O erro que custa horas às pessoas

max_players definido como 0 significa ilimitado, não fechado. As pessoas definem como 0 com a intenção de bloquear entradas e obter um servidor público sem limite em vez disso. Se quiseres o servidor fechado, usa as definições de visibilidade ou uma palavra-passe em vez do limite de jogadores.

Suporte e Ajuda