Page 1 of 1

Command line - mod update

Posted: Sun Nov 20, 2016 4:22 pm
by mcgoff360
Hello,

First of all, I have to say that I absolutely love this game. I have been playing lately with my brother on a dedicated server I set up on amazon ec2 with a large selection of mods. The only issue I am running into is that I would love to be able to update the mods via a command like you can do in the client. I am not sure if this is already possible, but I looked in the forums for a while and did not see anything.

TL;DR
/c updatemods

Re: Command line - mod update

Posted: Sun Nov 20, 2016 7:55 pm
by ssilk
Can you tell me the use-case of that? Why do you think you need this and cannot update over the mods-gui to the portal?

Re: Command line - mod update

Posted: Sun Nov 20, 2016 11:39 pm
by mcgoff360
It would be for headless servers

Re: Command line - mod update

Posted: Mon Nov 21, 2016 12:27 am
by ssilk
Such a command would mean, save current game, quit game, load mods, restart Factorio, load current game.

Re: Command line - mod update

Posted: Mon Nov 21, 2016 1:00 am
by mcgoff360
yes or it could be like the --update-server type command where it runs when the server isn't running as well

Re: Command line - mod update

Posted: Mon Nov 21, 2016 1:31 am
by ssilk
Much more useful suggestion. :)

Re: Command line - mod update

Posted: Mon Nov 21, 2016 7:37 am
by ssilk
I found this one: viewtopic.php?f=137&t=29509 fac - A command-line mod manager for Factorio 0.13+

Re: Command line - mod update

Posted: Tue Nov 22, 2016 3:29 pm
by mcgoff360
oh, very nice. i will have to try it out. it would be nice if it could be a built in command but that should work for me at least

Re: Command line - mod update

Posted: Fri Nov 25, 2016 7:37 pm
by mcgoff360
so ive been trying to get that script / program to work and im having a ton of trouble with it since it uses python3 and my ec2 server is using 2.7. long story short, it would be a lot nicer if i could just run a command line script to have factorio do the update checking itself =/

Mod upfdates\downloads on headless server

Posted: Mon Jan 22, 2018 10:22 pm
by CyberMan
What about to allow headless server to update\download mods on its onw? I know taht there's some kind of ruby script to update it, but you know...

Server Mod download

Posted: Sun Mar 17, 2019 4:54 pm
by Maharaja
so right now when we want to update mods on a dedicted server we need to manuly put all the mods in the server
is there a way to give the mods.json file the version of the mod if its the same as the mod then do nothing if its not the same download the correct version befor the server starts

that way we can only have to upload / change the mods.json file to update the mods

Cli command for update mods

Posted: Wed Mar 20, 2019 7:49 pm
by Mifczu
TL;DR
An option for the headless version that allows updating all modes. It should work the same as in the game when we choose all possible updates.

What ?
Updating mods on the server is probably the most troublesome yet. Now update them in the game and then upload to the server. Since the game itself has such options it would be nice to add it to the server.
Why ?
This will facilitate server administration and, consequently, the joy of players from the ever-current server with current mods. Everyone wins :-)

Re: Command line - mod update

Posted: Sun Mar 24, 2019 10:27 am
by Koub
[Koub] Did a multi-merge of topics asking for a way to update mods more or less automatically on a a headless server

Re: Command line - mod update

Posted: Sun Mar 24, 2019 12:52 pm
by Mifczu
ssilk wrote: Sun Nov 20, 2016 7:55 pm Can you tell me the use-case of that? Why do you think you need this and cannot update over the mods-gui to the portal?
If you have server localy it's not big problem. But if you heve server on remote machine, then you must send new mods using ssh or some ftp. It is not comfortable. For update server I have simple 5 line bash script. For mods it's complicated but game in gui has this option. So it would be nice to share it in cli command.

[edit]
ok, I did not notice that it was the result of fasting the post

Re: Command line - mod update

Posted: Mon Mar 25, 2019 9:24 am
by bobingabout
Personally, I think some kind of external tool (Commonly known as a launcher) to handle mod downloads, updates and configurations would be useful.
when you consider a situation like a headless server where you don't actually have an in game menu to download, update and configure mods, it does feel more important to have the option to configure everything outside of the game.

Re: Command line - mod update

Posted: Mon Mar 25, 2019 1:19 pm
by nuhll
Maybe allow the client (if admin, if enabled in config) when logged into outdated server to update the server? :o (while logging in)