Factorio
十分な評価がありません
How to configure your server-settings file for your Factorio server
作者: K-Bean
This is a simple guide for how to apply your own server settings for your server in the server.bat file.
And might help with establishing other settings aswell.
Current version of game: 0.15
   
アワード
お気に入り
お気に入り
お気に入りから削除
Server.bat server settings configuration
You may or may not have yet created a .bat file under \Factorio\bin\64x\server.bat
(Insctructions for creating this file can be found in YouTube)

The .bat file should contain the following:

start /wait Factorio.exe --start-server MySaveGame.zip

And you are here for the errors: "No such path or file" when you've tried this:

start /wait Factorio.exe --start-server MySaveGame.zip --server-settings C:\Program Files (x86)\Steam\steamapps\common\Factorio\data\server-settings.json

1. The first reason here for the error is the permission problems with the program files directory.
2. The second reason here for the error is the file path and its name: Program_Files_(x86)

Solution:

1. The file path should NOT be in a permission restricted directory, like the Program Files.
2. Also the file path should NOT have any SPACES in its name, like ( \Users\"My_PC"\ ) the command line wont understand the spaces.

NOTE:

1. Find the example file named "server-settings.example.json" under the directory:
X:\Program Files\........\Factorio\data\server-settings.example.json (game installation directory)
2. Copy the file and put it under file path: C:\Users\Public\server-settings.example.json (for example)
3. Rename the file to "server-settings.json"
4. Open the file (using Notepad++ is recommended) and input all the settings how you'll like.

"name": "MyServer",
"description": "MyDescription",

5. Input your LOGIN credentials for factorio.com in the section:

"_comment_credentials": "Your factorio.com login credentials. Required for games with visibility public",
"username": "MyUsername",
"password": "MyPassword",

Note! You will need the login credentials whether or not you set the server to be PUBLIC or not. Else you'll get an ERROR for Connection failure with server.

FINAL:

With the examples above, the input of your "server.bat" file should look like this:

start /wait Factorio.exe --start-server MySaveGame.zip --server-settings C:\Users\Public\server-settings.json
21 件のコメント
VANGUARD 5月3日 5時27分 
Хоспаде, спасибо тебе большое
elat99 1月14日 5時33分 
Thanks for the article!
K-Bean  [作成者] 2021年10月17日 13時34分 
Good to know.
Talven 2021年10月16日 10時59分 
Thanks this guide helped me thank you, but I do want to correct one thing.

You CAN have spaces in your folder names. Simply put them in quotes. Example:

"C:\Program Files\Steam\steamapps\factorio\bin\x64\factorio.exe" --config="C:\Program Files\Steam\steamapps\factorio\config\config.ini" --server-settings="C:\Program Files\Steam\steamapps\factorio\data\server-settings.json" --start-server game1.zip
Tempus Thales 2021年1月27日 15時38分 
@K-Bean I just think its pretty sleazy of them to make the dedicated server install such a pain, that they almost hand take you to a rented server...
K-Bean  [作成者] 2021年1月27日 13時17分 
@AwfulCitizen Running a "dedicated" headless server is not meant to be customer-/user- friendly as that feature is not directly targeted for consumers. But it is nice to have an easy access to those headless clients. For free, you don't even need to own the game to host.
Tempus Thales 2021年1月26日 19時25分 
Yeah, I figured that out... I don't understand why the devs have put so many obstacles for a dedicated server... its beyond me.
K-Bean  [作成者] 2021年1月26日 2時58分 
@AwfulCitizen Well I have not run a server for Factorio since 0.16 but I believe you still need the credentials for Factorio. You can sign up at the website for free.
Tempus Thales 2021年1月25日 20時43分 
@K-Bean I wanted to ask you with regards that to launch the dedicated server, needing a Factorio Account... Since this write up is almost 3yrs old, do you know if this is the state still now that the game is launched?
Sapphonalia 2018年5月14日 12時19分 
Ah, thank you. I tried using Hamachi and Evolve and that didn't work either, so looks like I'll have to port-forward.