OpenFactorioServerManager / factorio-server-manager

A tool to help manage Factorio multiplayer servers including mods and save games.
MIT License
556 stars 131 forks source link

Allow updating server from UI #10

Open jjcf89 opened 8 years ago

jjcf89 commented 8 years ago

Moving this to its own issue. The updater script could be used for reference. https://github.com/narc0tiq/factorio-updater

travisdieckmann commented 7 years ago

I second this motion...

sean-callahan commented 7 years ago

Currently working on this.

Wyrrrd commented 5 years ago

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).

dgw commented 5 years ago

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.

knoxfighter commented 4 years ago

A helpful link, where the update is done with the command-line: https://forums.factorio.com/viewtopic.php?t=14395

knoxfighter commented 4 years ago

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/

Psychomantis71 commented 4 years ago

@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.

sean-callahan commented 4 years ago

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?

Bykow commented 3 years ago

Hey, any news regarding this feature ?

adrian-golawski commented 3 years ago

Hello, any updates? 😢

jannaahs commented 3 years ago

Nope, nothing has changed. We will post an update here, if there is any progress.

llann commented 3 years ago

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.

knoxfighter commented 3 years ago

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).

llann commented 3 years ago

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 ;)

knoxfighter commented 2 years ago

Command line argument to apply a patch (downloadable from wube): --apply-update arg

Eurymachus commented 1 year ago

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?

knoxfighter commented 1 year ago

Restart the docker container, it contains an update mechanism

Eurymachus commented 1 year ago

Running on linux not docker :D

knoxfighter commented 1 year ago

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).

Eurymachus commented 1 year ago

Alrighty! Looking forward to when this is added into the manger! \o/