Updating Windows Dedicated Server

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
User avatar
Saint
Inserter
Inserter
Posts: 23
Joined: Wed Jun 22, 2016 9:49 pm
Contact:

Updating Windows Dedicated Server

Post 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.
Playtime Factorio ~1300 hours Last Stand
Achievement 100% since a very long Time
User avatar
Saint
Inserter
Inserter
Posts: 23
Joined: Wed Jun 22, 2016 9:49 pm
Contact:

Re: Updating Windows Dedicated Server

Post by Saint »

No one can help me ?
Playtime Factorio ~1300 hours Last Stand
Achievement 100% since a very long Time
Loewchen
Global Moderator
Global Moderator
Posts: 9183
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Updating Windows Dedicated Server

Post 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.
User avatar
Saint
Inserter
Inserter
Posts: 23
Joined: Wed Jun 22, 2016 9:49 pm
Contact:

Re: Updating Windows Dedicated Server

Post 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 :!:
Playtime Factorio ~1300 hours Last Stand
Achievement 100% since a very long Time
User avatar
Saint
Inserter
Inserter
Posts: 23
Joined: Wed Jun 22, 2016 9:49 pm
Contact:

Re: Updating Windows Dedicated Server

Post by Saint »

don't help me too much :(

No Dev and no other can help me ?
Playtime Factorio ~1300 hours Last Stand
Achievement 100% since a very long Time
posila
Factorio Staff
Factorio Staff
Posts: 5350
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: Updating Windows Dedicated Server

Post 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.
Post Reply

Return to “Technical Help”