Page 1 of 2

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

Posted: Sun Apr 17, 2016 5:11 pm
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. :)

Re: [Windows] FactorioServerTool

Posted: Tue Apr 19, 2016 4:52 pm
by Cr4zy
Not sure anyone is using it but I updated a few things :^)

Re: [Windows] FactorioServerTool

Posted: Thu Apr 21, 2016 10:54 pm
by Nickoplier
Specified Config File didn't exist error?

Re: [Windows] FactorioServerTool

Posted: Fri Apr 22, 2016 5:43 pm
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"?

Re: [Windows] FactorioServerTool

Posted: Sat Apr 23, 2016 4:14 pm
by Nickoplier
I keep getting trapped on the About page, any key I press, it does nothing..

Re: [Windows] FactorioServerTool

Posted: Sat Apr 23, 2016 4:48 pm
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

Re: [Windows] FactorioServerTool - Easy dedicated server setup

Posted: Sun Apr 24, 2016 8:02 pm
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.

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

Posted: Fri Apr 29, 2016 3:51 pm
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

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

Posted: Sat Apr 30, 2016 12:40 am
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?

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

Posted: Sat Apr 30, 2016 8:34 am
by yanik557
ok i send the file for u ( private message )

Factorio Server Tool - minor issue with 0.14.0 ver.

Posted: Fri Aug 26, 2016 7:03 pm
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

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

Posted: Tue Jan 24, 2017 10:34 pm
by mrfreez82
I get this error.
unrecognised option '--autosave interval'

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

Posted: Wed Jan 25, 2017 9:14 am
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.

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

Posted: Sun Jan 29, 2017 7:37 pm
by Crushim
Any idea how to fix this issue? I'm having the same problem

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

Posted: Wed Feb 22, 2017 11:26 am
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

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

Posted: Tue Mar 14, 2017 10:52 pm
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 :)

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

Posted: Sun Apr 02, 2017 10:59 pm
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

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

Posted: Fri Apr 28, 2017 11:53 am
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.

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

Posted: Thu May 04, 2017 4:06 pm
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

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

Posted: Fri May 26, 2017 4:40 am
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