Command line - mod update

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

mcgoff360
Burner Inserter
Burner Inserter
Posts: 18
Joined: Sat Dec 20, 2014 1:30 pm
Contact:

Command line - mod update

Post 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
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Command line - mod update

Post 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?
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
mcgoff360
Burner Inserter
Burner Inserter
Posts: 18
Joined: Sat Dec 20, 2014 1:30 pm
Contact:

Re: Command line - mod update

Post by mcgoff360 »

It would be for headless servers
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Command line - mod update

Post by ssilk »

Such a command would mean, save current game, quit game, load mods, restart Factorio, load current game.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
mcgoff360
Burner Inserter
Burner Inserter
Posts: 18
Joined: Sat Dec 20, 2014 1:30 pm
Contact:

Re: Command line - mod update

Post by mcgoff360 »

yes or it could be like the --update-server type command where it runs when the server isn't running as well
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Command line - mod update

Post by ssilk »

Much more useful suggestion. :)
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Command line - mod update

Post by ssilk »

I found this one: viewtopic.php?f=137&t=29509 fac - A command-line mod manager for Factorio 0.13+
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
mcgoff360
Burner Inserter
Burner Inserter
Posts: 18
Joined: Sat Dec 20, 2014 1:30 pm
Contact:

Re: Command line - mod update

Post 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
mcgoff360
Burner Inserter
Burner Inserter
Posts: 18
Joined: Sat Dec 20, 2014 1:30 pm
Contact:

Re: Command line - mod update

Post 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 =/
CyberMan
Burner Inserter
Burner Inserter
Posts: 9
Joined: Thu Jan 04, 2018 7:19 pm
Contact:

Mod upfdates\downloads on headless server

Post 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...
Maharaja
Burner Inserter
Burner Inserter
Posts: 13
Joined: Tue Mar 15, 2016 3:45 pm
Contact:

Server Mod download

Post 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
User avatar
Mifczu
Inserter
Inserter
Posts: 36
Joined: Wed Feb 01, 2017 7:01 pm
Contact:

Cli command for update mods

Post 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 :-)
Koub
Global Moderator
Global Moderator
Posts: 7784
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: Command line - mod update

Post 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
Koub - Please consider English is not my native language.
User avatar
Mifczu
Inserter
Inserter
Posts: 36
Joined: Wed Feb 01, 2017 7:01 pm
Contact:

Re: Command line - mod update

Post 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
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: Command line - mod update

Post 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.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
nuhll
Filter Inserter
Filter Inserter
Posts: 942
Joined: Mon Apr 04, 2016 9:48 pm
Contact:

Re: Command line - mod update

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

Return to “Ideas and Suggestions”