- Factorio Forums
- Settings on headless server (Windows)
- Settings on headless server (Windows)
- Re: Settings on headless server (Windows)
- Re: Settings on headless server (Windows)
- Re: Settings on headless server (Windows)
- Re: Settings on headless server (Windows)
- Factorio headless server windows
- Factorio Forums
- Dedicated Server Guide on Windows
- Dedicated Server Guide on Windows
- Re: Dedicated Server Guide on Windows
- Re: Dedicated Server Guide on Windows
- Re: Dedicated Server Guide on Windows
- Factorio Forums
- Full headless server setup guide
- Full headless server setup guide
- Re: Full headless server setup guide
- Re: Full headless server setup guide
- Re: Full headless server setup guide
- Factorio headless server windows
Factorio Forums
Settings on headless server (Windows)
Settings on headless server (Windows)
Post by ActivistLime02 » Mon Jul 10, 2017 11:30 am
Re: Settings on headless server (Windows)
Post by AlienX » Mon Jul 10, 2017 4:19 pm
Hey,
Simply copy and paste the file to where the current file is located, but rename it correctly.
Re: Settings on headless server (Windows)
Post by ActivistLime02 » Mon Jul 10, 2017 6:09 pm
AlienX wrote: Hey,
Simply copy and paste the file to where the current file is located, but rename it correctly.
Re: Settings on headless server (Windows)
Post by AlienX » Mon Jul 10, 2017 10:12 pm
Hey,
I don’t think so. it should load the settings file for you — if it does not there is a —server-setting startup argument you can use to point to the settings file.
Also, you want to use —start-server-load-latest on it’s own instead of specifying a map file.
Re: Settings on headless server (Windows)
Post by ActivistLime02 » Wed Jul 12, 2017 2:23 pm
AlienX wrote: Hey,
I don’t think so. it should load the settings file for you — if it does not there is a —server-setting startup argument you can use to point to the settings file.
Also, you want to use —start-server-load-latest on it’s own instead of specifying a map file.
Factorio headless server windows
2,526 | уникальных посетителей |
29 | добавили в избранное |
- Go to the Factorio [www.Factorio.com] website.
- In the upper right, click Login.
- Setup your account.
- When finished, click your profile name in the upper right.
- Scroll all the way down and click the Link To Steam Account button.
- This makes Steam ask you if it can connect to a 3rd party thing and let them query your account. (to confirm you own the game). Once linked/confirmed, you can download various versions of the game.
Now that you are linked up on the website.
- Click the big huge Download button on the main website page.
- The default page shown next is for older builds. If you want the latest which is 0.13.5 when I wrote this then you have to click the «experimental release» button near the top.
- Download the appropriate version that you want.
- Install it like you normally install things.
You need a .bat file to run Factorio with arguments.
If you installed to the default directory like a normal human being,
- Go to C:\Program Files\Factorio\bin\x64 .. You should see Factorio.exe in this folder, just look around if that isnt the exactly location on your end.
- In the same folder as Factorio.exe create a new .bat file and name it something like Start.bat (if you don’t know how, you can just create a .txt file and change the extension to .bat. Bat files are little executable files)
- Edit the file with Notepad or Notepad++ and write this in it.
Factorio.exe —start-server C:\Users\Owner\AppData\Roaming\Factorio\saves\_autosave1.zip —autosave-slots 1 —server-settings «server-settings.json»
It has to be one single line, paste it exactly as it is. Whats happening here is we’re telling the server to start, load the autosave at that location on your HDD, put a max on the number of autosave slots, then use the following server settings found in the file «server-settings.json». Basically it loads the autosave, then autosaves over it. This way you’re always loading the latest data on reboots.
You do need to provide a starter save file in that save location. These are located in that same folder, but you could download one and just name it _autosave1.zip and be good to go.
So the remaining things to do is assign the server settings.
- You can find a template server settings file in \Factorio\data\, it is named «server-settings.example.json».
- Copy that file into the same folder as your Factorio.exe file, where your Start.bat file also is. (you don’t have to put it there, you could just write the whole directory in there like the save location is. I just preferred to put it there to get things going)
- Edit the file with Notepad or Notepad++.
Change the lines that look like these, to these values:
- «max_players»: «15»,
- «visibility»: «hidden»,
- «verify_user_identity»: false
Now, as long as that file is in the same folder as Start.bat and Factorio.exe then things will work fine. Create a shortcut to Start.bat and paste it onto your desktop and run it.
You have to setup Port Forwarding, but I’m not going to explain how to do that here since it varies based on your router. Just forward port 34197 to your local IP.
If people cannot connect to the server while it is running then your port forwarding may not be working. Setup port 34197 on UDP to forward to your local network IP.
Factorio Forums
Dedicated Server Guide on Windows
Dedicated Server Guide on Windows
Post by skalibran » Sat Jul 18, 2015 10:00 am
Note: Some of the information in this thread is a little bit outdated, see the Wiki — Multiplayer for more up-to-date info on servers and multiplayer in general.
— daniel34
I’ve seen some players wondering on how to set up a headless/dedicated server on Windows. For Unix, see this topic.
Setting up a Factorio server using Windows is very easy.
- Go to your Factorio.exe folder (Probably ‘C:\Program Files\Factorio\bin\x64\’)
- Create a text document and write into it: start Factorio.exe —start-server YOURSAVEGAME.zip
- If you haven’t already done, replace YOURSAVEGAME with, guess what, your save game
- Save the file as server.bat. Important: At ‘Save as type:’ select ‘All Files’
- Now you can use the server.bat to start your server. Isn’t it easy?
- Forward Ports: You will find detailed instructions for your specific router on the web. Sorry that I can’t give detailed infos here
- Now to the most important part: Enjoy your server!
Important: There is no feedback that the server is running except the factorio.exe in the task manager. That means you won’t see a window or a console!
This can be changed by adding /wait to the .bat-file, for example:
start /wait Factorio.exe —start-server YOUR_SAVE.zip
Thanks to posila for this information!
If a topic like this already exists, I’m sorry. Just want to help!
Re: Dedicated Server Guide on Windows
Post by ssilk » Sat Jul 18, 2015 11:51 am
I made this sticky, due to authors request, but to be honest, this doesn’t make sense for me.
The wiki should be used for that kind of information , cause — as you already see — the old docs are not actual anymore. Or you don’t see, if they are actual, cause they don’t have a history and a date of last change.
So, if you want to do this board a good, please move such infos into the wiki. The right place seems to be below https://forums.factorio.com/wiki/inde . ultiplayer
Re: Dedicated Server Guide on Windows
Post by skalibran » Sat Jul 18, 2015 11:55 am
thanks for making it sticky. I think it does make sense, because people can ask questions specifically for windows servers
I requested a wiki account and will — if accepted — add the server guide later this day.
Re: Dedicated Server Guide on Windows
Post by Boogalo » Sat Jul 18, 2015 2:26 pm
I thought I tried that combination of command lines last night, but must not have had it quite right. Seems to be working.
One issue I have might be rare, but affects my setup. I have a server I run a few games on from my house, sharing a single external IP. Ports forwarded to the box running the server. External people can connect just fine, but I can’t connect from another machine on my local network. I believe this is due to everything still working peer to peer. I had to set up a port forward on my router so external folks can connect, but then all traffic on that port goes to the server, and none to my client, and thus it can’t talk to other players. I can’t see a way around this other than a server working on one port, and clients talking port+1 or something (would need to be coded for it). I understand this is a limitation how the multiplayer works in that a headless server is just a characterless client with no GUI.
Factorio Forums
Full headless server setup guide
Full headless server setup guide
Post by Liemander » Tue Jan 03, 2017 4:04 am
I created a guide on how I set up my server for Factorio.
It is a full guide from beginning to end including installing Ubuntu.
It includes the information you will need to set up multiple Factorio servers running on one Ubuntu server.
I have verified it works with 0.14.21
https://1drv.ms/w/s!Am6ec-B57UlIhCKUYiGeTWu_R-DO
Let me know if there is anything I missed or should Add.
Re: Full headless server setup guide
Post by noliVe » Thu Jan 05, 2017 1:19 am
its insane to teach how to set up a ubuntu server for new players way to much Info. ;D still a worth praise for this work. congrats!
I read through and learnd some new commands i can use. Thank you!
Re: Full headless server setup guide
Post by impetus maximus » Thu Jan 05, 2017 6:20 am
Re: Full headless server setup guide
Post by Liemander » Thu Jan 05, 2017 1:28 pm
noliVe wrote: its insane to teach how to set up a ubuntu server for new players way to much Info. ;D still a worth praise for this work. congrats!
I read through and learnd some new commands i can use. Thank you!
I was thinking the same thing when I finished up the guide but hadn’t thought much about how to make it better, what do you think about breaking it up into multiple guides, one for just how to set up the Factorio server with a link back to how to set up Ubuntu if they don’t have it set up yet?
I think the Ubuntu information isn’t too hard since it does most of the work for you, mostly just next next next.
Factorio headless server windows
2,526 | уникальных посетителей |
29 | добавили в избранное |
- Go to the Factorio [www.Factorio.com] website.
- In the upper right, click Login.
- Setup your account.
- When finished, click your profile name in the upper right.
- Scroll all the way down and click the Link To Steam Account button.
- This makes Steam ask you if it can connect to a 3rd party thing and let them query your account. (to confirm you own the game). Once linked/confirmed, you can download various versions of the game.
Now that you are linked up on the website.
- Click the big huge Download button on the main website page.
- The default page shown next is for older builds. If you want the latest which is 0.13.5 when I wrote this then you have to click the «experimental release» button near the top.
- Download the appropriate version that you want.
- Install it like you normally install things.
You need a .bat file to run Factorio with arguments.
If you installed to the default directory like a normal human being,
- Go to C:\Program Files\Factorio\bin\x64 .. You should see Factorio.exe in this folder, just look around if that isnt the exactly location on your end.
- In the same folder as Factorio.exe create a new .bat file and name it something like Start.bat (if you don’t know how, you can just create a .txt file and change the extension to .bat. Bat files are little executable files)
- Edit the file with Notepad or Notepad++ and write this in it.
Factorio.exe —start-server C:\Users\Owner\AppData\Roaming\Factorio\saves\_autosave1.zip —autosave-slots 1 —server-settings «server-settings.json»
It has to be one single line, paste it exactly as it is. Whats happening here is we’re telling the server to start, load the autosave at that location on your HDD, put a max on the number of autosave slots, then use the following server settings found in the file «server-settings.json». Basically it loads the autosave, then autosaves over it. This way you’re always loading the latest data on reboots.
You do need to provide a starter save file in that save location. These are located in that same folder, but you could download one and just name it _autosave1.zip and be good to go.
So the remaining things to do is assign the server settings.
- You can find a template server settings file in \Factorio\data\, it is named «server-settings.example.json».
- Copy that file into the same folder as your Factorio.exe file, where your Start.bat file also is. (you don’t have to put it there, you could just write the whole directory in there like the save location is. I just preferred to put it there to get things going)
- Edit the file with Notepad or Notepad++.
Change the lines that look like these, to these values:
- «max_players»: «15»,
- «visibility»: «hidden»,
- «verify_user_identity»: false
Now, as long as that file is in the same folder as Start.bat and Factorio.exe then things will work fine. Create a shortcut to Start.bat and paste it onto your desktop and run it.
You have to setup Port Forwarding, but I’m not going to explain how to do that here since it varies based on your router. Just forward port 34197 to your local IP.
If people cannot connect to the server while it is running then your port forwarding may not be working. Setup port 34197 on UDP to forward to your local network IP.