Open jjcf89 opened 8 years ago
I second this motion...
Currently working on this.
narc0tiq/factorio-updater uses the Factorio binary to update properly. This means that the server should be down for that time and then be restarted.
Some kind of inactivity detection may be needed for player convenience (e.g. tracking logged-in players or game state).
If updating on manual command from a FSM admin, activity detection is likely not a requirement for initial implementation.
Later, such a feature could be added. Also, notifying the players in-game through RCon and giving them some configurable amount of time to find a stopping point would be a nice enhancement.
A helpful link, where the update is done with the command-line: https://forums.factorio.com/viewtopic.php?t=14395
Information about the download API: https://wiki.factorio.com/Download_API
More information about the downloading API (some parts are out of date): https://artentus.github.io/FactorioApiDoc/update-api/
@knoxfighter me and @jannaahs just discussed this topic on discord.
Implementation for the linux headless version would be relatively easy, on the other hand I am not sure how this would work on windows.
It's been a while, but I had this partially implemented and my drive died. Whoops...
IIRC, the auto-downloaded Windows binary ran fine. The only problem was killing the existing process. Which I believe @knoxfighter has fixed since, right?
Hey, any news regarding this feature ?
Hello, any updates? 😢
Nope, nothing has changed. We will post an update here, if there is any progress.
Waiting there is something integrated in factorio-server-manager you can use https://github.com/Bisa/factorio-init on your server and use it just to update factorio (you can do more but then you start to have some features overlap with factorio-server-manager).
Then to update you can simply run factorio update
:)
Maybe something that could be included in this project as it's "just" a shell script, but I understand that it is never easy to integrate other tools.
Something like that is already included in the docker image. If you use our docker image, you can simply restart it and the newest version of factorio is downloaded (depending on the FACTORIO_VERSION
env variable).
Ok nice :)
I'm only using docker to dev not to host services, but thanks for the info :) Could be cool to integrate something in the non docker install. But I completly understand how it's not in your top priorities ;)
Command line argument to apply a patch (downloadable from wube): --apply-update arg
Greetings! Is there anyway to update from the Manager yet? I noticed there wasn't an update for some time.
How can I do it otherwise?
Restart the docker container, it contains an update mechanism
Running on linux not docker :D
Then you have to update manually or use one of the update scripts, that exist. (Make sure the addon manager is turned off while doing so).
Alrighty! Looking forward to when this is added into the manger! \o/
Moving this to its own issue. The updater script could be used for reference. https://github.com/narc0tiq/factorio-updater