[Win] Factorio Server Tool - Easy server - 02/April/2017
Posted: Sun Apr 17, 2016 5:11 pm
by Cr4zy
why
So after purchasing Factorio and getting addicted. I found the "server" batch file that exists was super simple and doesn't let you do much stuff quickly and if you have no idea what you're doing the setup process sucks.
I aimed to create a better approach to that, this tool is in testing still, this could just not work for you.
I'm not a coder or a scripter, so potentially it's a mess, if it doesn't work I can only try to fix it, it has worked for me without issue across 4 pcs at this point.
You should be able to run the batch from anywhere, desktop, install folder, etc.
Factorio Server Tool
Factorio Server Tool is a batch script to quickly and easily allow you to host a dedicated Factorio server on Windows
(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
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
v 0.1.36
If for some reason the config contains a blank value (user edit) CMD will no longer close
If we don't write correct server config, then error
"E" on the "Server shutdown" screen will create factorio-server-latest.log in /server folder containing the latest log and all relevant config options if people need to upload logs one file is easier.
If you opt to only create a new save and not copy other single player saves, only copy the new one.
Check the config-server.ini on startup
If FST_Config exists but we reset the setup value don't delete the whole file
Fixed value range check failing because it didn't reset errorlevel
v 0.1.35
If the latest/selected save is an autosave it will now be renamed to avoid overwriting it.
New users will be told to make sure the game is run before starting a server, and also error before completing any setup steps if not done.
Show some more files in the save selection lists.
Ability to create a new save file from the options page.
Ability to select a save after quitting the server, without reloading all the options.
Small fixes and wording changes in descriptions.
v 0.1.34
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.
v 0.1.30
Checks to see if the tool can write files and error accordingly (generally just permission errors)
Fixed issue when writing config-backup and config-server it failed even when it succeeded
Error screens no longer quit automatically
Some other small clean ups and re-wording in descriptions
v 0.1.27
Save file date and time displayed
Save files with spaces now work
Config file can be stored in the location of the .bat file, and this will become the default ini file unless deleted/renamed.
End screen doesn't auto quit after 10s
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
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...
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
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.
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.