Linux command
factorio 命令
网络
复制后可按需替换文件名、目录或参数。
常用示例
Create
[path/to]/factorio --create [path/to/save_file.zip]
Start
[path/to]/factorio --start-server [path/to/save_file.zip]
Start server with settings
[path/to]/factorio --start-server [path/to/save_file.zip] --server-settings [path/to/server-settings.json]
Example
[path/to]/factorio --create [path/to/save.zip] --map-gen-settings [path/to/map_gen_settings.json] --map-settings [path/to/map_settings.json]
Shut
/quit
Example
[path/to]/factorio [-h|--help]
说明
factorio runs the Factorio game in headless server mode for multiplayer. It creates and hosts game worlds without requiring a graphical interface. Used for dedicated Factorio servers and automated testing.
参数
- --create _file_
- Create new save file
- --start-server _file_
- Start server with save file
- --map-gen-settings _file_
- Map generation settings JSON
- --map-settings _file_
- Map settings JSON
- -h, --help
- Display help
- --port _number_
- Server port number (default: 34197).
- --server-settings _file_
- Server configuration JSON file (name, description, visibility, passwords).
- --server-adminlist _file_
- JSON file listing admin usernames.
- --server-banlist _file_
- JSON file listing banned usernames.
- --console-log _file_
- Write server console output to a log file.
- --mod-directory _dir_
- Override mod directory path.
FAQ
What is the factorio command used for?
factorio runs the Factorio game in headless server mode for multiplayer. It creates and hosts game worlds without requiring a graphical interface. Used for dedicated Factorio servers and automated testing.
How do I run a basic factorio example?
Run `[path/to]/factorio --create [path/to/save_file.zip]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --create _file_ do in factorio?
Create new save file