[Win] Factorio Server Tool - Easy server - 02/April/2017

Find multiplayer games.
Tools/scripts to run a dedicated server.
Cr4zy
Burner Inserter
Burner Inserter
Posts: 10
Joined: Sun Apr 17, 2016 4:49 pm
Contact:

[Win] Factorio Server Tool - Easy server - 02/April/2017

Post by Cr4zy »

why
Factorio Server Tool
Factorio Server Tool is a batch script to quickly and easily allow you to host a dedicated Factorio server on Windows

Image
(This is the setup wizard, this process only needs to be done once, consecutive launches will read the settings and go straight to the options/server start)


What it does

* Can quickly find your install folder (Steam install only) (Supports user input directories too)
* Write the server config file for you
* Quickly switch between save files before launching
* Set and store commandline parameters quickly
* Can restart the server after shutting it down with CTRL^C
* Add "FastStart=" to the config to skip the options screen and go straight to server start
* Also "ExtraParams=" to add any custom params not supported, both are documented under "About" from the options
* Puts the server IP:Port quickly into your clipboard at runtime
* Batch can be run from any location

Download the latest version from:
[02 April, 2017]v 0.1.40 - https://github.com/Cr4zyy/FactorioServe ... 0.1.40.zip
https://github.com/Cr4zyy/FactorioServerTool/releases
(FST 0.1.40 tested with Factorio 0.14.22)
Changelog
Source:
https://github.com/Cr4zyy/FactorioServerTool

As I said, im not great at this, just aimed to make what existed better and while it works for me Im not sure it will work for everyone. :)
Last edited by Cr4zy on Sun Apr 02, 2017 10:59 pm, edited 16 times in total.
Factorio Server Tool - Setup wizard and managing script for running a Factorio server on Windows
Cr4zy
Burner Inserter
Burner Inserter
Posts: 10
Joined: Sun Apr 17, 2016 4:49 pm
Contact:

Re: [Windows] FactorioServerTool

Post by Cr4zy »

Not sure anyone is using it but I updated a few things :^)
Factorio Server Tool - Setup wizard and managing script for running a Factorio server on Windows
Nickoplier
Burner Inserter
Burner Inserter
Posts: 6
Joined: Thu Apr 21, 2016 10:35 pm
Contact:

Re: [Windows] FactorioServerTool

Post by Nickoplier »

Specified Config File didn't exist error?
Cr4zy
Burner Inserter
Burner Inserter
Posts: 10
Joined: Sun Apr 17, 2016 4:49 pm
Contact:

Re: [Windows] FactorioServerTool

Post by Cr4zy »

Nickoplier wrote:Specified Config File didn't exist error?
I fixed some bugs earlier, they might resolve the issue, you can find the new version here: https://github.com/Cr4zyy/FactorioServe ... 0.1.30.zip

If they don't it sounds like it fails to locate the config.ini for factorio, im guessing? If so have you launched the game to create that, if yes does the config.ini exist in either "%appdata%/Factorio/config" or "wherever you installed Factorio/config"?
Factorio Server Tool - Setup wizard and managing script for running a Factorio server on Windows
Nickoplier
Burner Inserter
Burner Inserter
Posts: 6
Joined: Thu Apr 21, 2016 10:35 pm
Contact:

Re: [Windows] FactorioServerTool

Post by Nickoplier »

I keep getting trapped on the About page, any key I press, it does nothing..
Cr4zy
Burner Inserter
Burner Inserter
Posts: 10
Joined: Sun Apr 17, 2016 4:49 pm
Contact:

Re: [Windows] FactorioServerTool

Post by Cr4zy »

Nickoplier wrote:I keep getting trapped on the About page, any key I press, it does nothing..
Thanks for trying it, that is indeed a bug, damn not sure how I missed that one! I've fixed it and released 0.1.31

https://github.com/Cr4zyy/FactorioServe ... 0.1.31.zip
Factorio Server Tool - Setup wizard and managing script for running a Factorio server on Windows
Cr4zy
Burner Inserter
Burner Inserter
Posts: 10
Joined: Sun Apr 17, 2016 4:49 pm
Contact:

Re: [Windows] FactorioServerTool - Easy dedicated server setup

Post by Cr4zy »

Ok latest version 0.1.34, available in the links in the OP.

Found out the hard way some of the stuff I was using didn't work if your Windows install was in English, doh, I'm arrogant brit, obviously!

Code: Select all

Now compatible with NON-English windows locales!
Check for older versions and warn/attempt to update
If the latest savefile is an autosave, it is automatically copied and renamed to avoid conflicts
Fix git setting line endings to unix style breaking half the stuff for a batch.
Hopefully this should now work for many more people.
Factorio Server Tool - Setup wizard and managing script for running a Factorio server on Windows
User avatar
yanik557
Inserter
Inserter
Posts: 22
Joined: Thu Mar 10, 2016 5:05 pm
Contact:

Re: [Windows] Factorio Server Tool - Easy dedicated server setup

Post by yanik557 »

Hi when i try to start the server 1 i got the message : the server has been shutdown , Why ?
Sorry for bad english
Cr4zy
Burner Inserter
Burner Inserter
Posts: 10
Joined: Sun Apr 17, 2016 4:49 pm
Contact:

Re: [Windows] Factorio Server Tool - Easy dedicated server setup

Post by Cr4zy »

That sounds like the server is getting incorrect options sent to it. Could you run it and when it shuts down could you upload the factorio-current.log which should be in your server data folder.

You can find it easily with the tool:

1. Run the tool
2. get to the options screen
3. press 8 for the "factorio data folder"
4. go into the server folder
5. find factorio-current

If you could upload that as an attachment here or open it and paste its contents to http://pastebin.com/

I can try to figure out what is causing that to happen.

Also are you running the latest version? 0.1.35?
Factorio Server Tool - Setup wizard and managing script for running a Factorio server on Windows
User avatar
yanik557
Inserter
Inserter
Posts: 22
Joined: Thu Mar 10, 2016 5:05 pm
Contact:

Re: [Windows] Factorio Server Tool - Easy dedicated server setup

Post by yanik557 »

ok i send the file for u ( private message )
DeathGhosts
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sat Jul 09, 2016 4:07 pm
Contact:

Factorio Server Tool - minor issue with 0.14.0 ver.

Post by DeathGhosts »

This script is actually quite brilliant, and i thank the developer for this great work here. however due to the latest update ( 0.14.0 ) the script crashes. so, i figured out what caused it. apparently the latency command has been removed so by removing it from the launch script is fixes the startup issue.

steps on how to fix this.

open and edit the script in Notepad ++

navigate down to line 1667 where the launch command is, and remove the --latency-ms %latency% from that launch line there. save and exit...

that line looks like:
start /wait bin\%WinOS%\Factorio.exe --start-server "%ServerSaveFolder%\%SaveFile%" --autosave-interval ......etc
hope this helps for everyone that like this script.

//DG
Attachments
Screenshot of the brief error before it jumps to the exit menu
Screenshot of the brief error before it jumps to the exit menu
error0.14.0Dump.png (47.56 KiB) Viewed 14851 times
mrfreez82
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Jan 20, 2017 7:42 pm
Contact:

Re: [Win] Factorio Server Tool - Easy dedicated server - 23 July

Post by mrfreez82 »

I get this error.
unrecognised option '--autosave interval'
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: [Win] Factorio Server Tool - Easy dedicated server - 23 July

Post by daniel34 »

mrfreez82 wrote:I get this error.
unrecognised option '--autosave interval'
The script is outdated. Since 0.14.12 the --autosave-interval and --autosave-slots options are no longer settable using the command line but have to be defined in a server-settings.json file.
quick links: log file | graphical issues | wiki
Crushim
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sun Jan 29, 2017 7:35 pm
Contact:

Re: [Win] Factorio Server Tool - Easy dedicated server - 23 July

Post by Crushim »

Any idea how to fix this issue? I'm having the same problem
Ice-Cue
Manual Inserter
Manual Inserter
Posts: 3
Joined: Wed Feb 22, 2017 11:22 am
Contact:

Re: [Win] Factorio Server Tool - Easy dedicated server - 23 July

Post by Ice-Cue »

Crushim wrote:Any idea how to fix this issue? I'm having the same problem
look at the top of this tread.... there is the answer

viewtopic.php?f=133&t=23838#p199337
darkrid3r911
Burner Inserter
Burner Inserter
Posts: 6
Joined: Tue Mar 14, 2017 10:04 pm
Contact:

Re: [Win] Factorio Server Tool - Easy dedicated server - 23 July

Post by darkrid3r911 »

So I ended up with this at the end of my window.

0.477 Info UDPSocket.cpp:27: Opening socket at (0.0.0.0:34197)
0.478 Hosting game at 0.0.0.0:34197
0.478 Info ServerMultiplayerManager.cpp:658: mapTick(0) changing state from(CreatingGame) to(InGame)

I will test if I can connect when I get home.

Current questions:
Will this allow my server to be seen by the public?

TEST RESULTS
So I connected with the IP/Port that was on my clip board with no issues, it treated it as if it was a lan, with my NAT ip in the logs.
Now just to figure out how to make it public :)
Cr4zy
Burner Inserter
Burner Inserter
Posts: 10
Joined: Sun Apr 17, 2016 4:49 pm
Contact:

Re: [Win] Factorio Server Tool - Easy server - 02/April/2017

Post by Cr4zy »

Released an update. Haven't played in a long time didn't realise things changed and broke it and as it looks like some people are using it figured I might as well do something productive :) Tested it on 14.22 Steam build.

Download the latest version from:
[02 April, 2017]v 0.1.40 - https://github.com/Cr4zyy/FactorioServe ... 0.1.40.zip
https://github.com/Cr4zyy/FactorioServerTool/releases
(FST 0.1.40 tested with Factorio 0.14.22)

Code: Select all

v 0.1.40
Delete all temp files on launch to avoid issues
Removed depreciated command line options
Some options now save directly to the factorio server config
Added a quick way to create the server-settings.jsonn file for public servers (this has to be manually edited however)
Auto-detect and launch with server-settings.json if the file exists in your Factorio Data path
Factorio Server Tool - Setup wizard and managing script for running a Factorio server on Windows
Spider
Burner Inserter
Burner Inserter
Posts: 18
Joined: Sat Feb 01, 2014 3:12 pm
Contact:

Re: [Win] Factorio Server Tool - Easy server - 02/April/2017

Post by Spider »

Is this still supported? Always getting "ERROR Config option for [AutoSaveTimer] [] will be reset" at the start of the script and have to redo the config every start.
vincent41103
Manual Inserter
Manual Inserter
Posts: 1
Joined: Thu May 04, 2017 3:54 pm
Contact:

Re: [Win] Factorio Server Tool - Easy server - 02/April/2017

Post by vincent41103 »

First of all, thank you for developing this wonderful tools for us.

I'll like to know if i can choose the version for my didacate server, my friend and I want to stay in version 0.15.x
Szentigrade
Fast Inserter
Fast Inserter
Posts: 109
Joined: Mon Mar 28, 2016 7:27 am
Contact:

Re: [Win] Factorio Server Tool - Easy server - 02/April/2017

Post by Szentigrade »

Spider wrote:Is this still supported? Always getting "ERROR Config option for [AutoSaveTimer] [] will be reset" at the start of the script and have to redo the config every start.
same error for me too, on 0.15.13
Post Reply

Return to “Multiplayer / Dedicated Server”