Page 1 of 1

Updating Windows Dedicated Server

Posted: Sat Nov 25, 2017 11:45 pm
by Saint
Hi
I try at the moment to create a bash script for updating my factorio server automatically on my windows root.

after 2 hours searching i found this command
factorio.exe --apply-update arg

but i did not work. I Try as test update a server from version 0.14.23 to the newest experimentel

Code: Select all

 0.000 2017-11-26 00:31:17; Factorio 0.14.23 (build 25374, win64, alpha)
   0.001 Operating system: Windows 10 (version 1607)
   0.001 Program arguments: "factorio.exe" "--apply-update" "arg"
   0.001 Read data path: [My Factorio Path]/data
   0.001 Write data path: [My Factorio Path]
   0.001 Binaries path: [My Factorio Path]/bin
   0.021 System info: [CPU: Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz, 4 cores, RAM: 4095MB]
   0.022 Running in headless mode
   0.025 Loading mod core 0.0.0 (data.lua)
   0.031 Loading mod base 0.14.23 (data.lua)
   0.151 Checksum for core: 1291735968
   0.151 Checksum for mod base: 786624017
   0.509 Info PlayerData.cpp:55: Local player-data.json available, timestamp 1511652128
   0.509 Info PlayerData.cpp:62: Cloud player-data.json unavailable
   0.513 Custom inputs active: 0
   0.513 Info Updater.cpp:749: Downloading https://updater.factorio.com/get-available-versions?username=Saint&token=<private>&apiVersion=2
   2.182 37 packages available to download (experimental updates disabled).
   2.189 Factorio initialised
   2.191 Error Util.cpp:57: copy_file(p1, p2, options): invalid arguments: operation not permitted

what must I enter for arg ? or better what is the correct command for updating the server always to the newest experimantal version ?

I will not longer update the server complete manuelly, login on website, download the file, move to the correct dir, unzip...... this all needs to much time. I like to automatically this.

Re: Updating Windows Dedicated Server

Posted: Tue Nov 28, 2017 5:02 pm
by Saint
No one can help me ?

Re: Updating Windows Dedicated Server

Posted: Tue Nov 28, 2017 6:16 pm
by Loewchen

Code: Select all

--apply-update
requires the location of the update file as parameter.
This might help you: https://github.com/narc0tiq/factorio-updater.

Re: Updating Windows Dedicated Server

Posted: Sat Dec 02, 2017 12:12 am
by Saint
can anyone help me to complete the link / bash script row what i need to download via url/console to download/update the server the newwest experimental update ?

i do not unterstand the python script, i see the parameters but dont undertand how to use them correct.

i know this is the link
https://updater.factorio.com/get-available-versions

and i know the most Parameters:
--user=Saint
--token=[myToken]
--package= ??? <=dont know the correct name for a windows x64 bit server
--delete-after-applying
--output-path
--experimental
--apply-to

--output-path <= no need if using temp ???
--for-version <= no need if using apply-to ??? If this not correct use for the example 0.15.36 as version

please can someone give me a correct url or basch script row for download the update or direct update the server or both :D :!:

Re: Updating Windows Dedicated Server

Posted: Tue Dec 05, 2017 4:25 pm
by Saint
don't help me too much :(

No Dev and no other can help me ?

Re: Updating Windows Dedicated Server

Posted: Thu Dec 14, 2017 9:42 pm
by posila
So, --apply-update expects path to one or more update packages as is used for testing updater changes.
You could mirror logic of in-game updater, and download packages from script (python script Loewchen posted is good reference).

I would recommand you to use Steam version for Windows headless server instead. You can use steamcmd to manage games from command line or scripts, so it should be much easier to do.