mickael9 / fac

Command-line mod manager for Factorio (install, update...)
MIT License
51 stars 18 forks source link

Suggestion for a modpack feauture #9

Open benkibejs opened 7 years ago

benkibejs commented 7 years ago

Hey! I think it would be amazing for a feauture that stores away a certain set of mods, maybe in a folder within the mods folder, which then is considered a modpack. Then the program could list the different modpacks by just listing the folders in the mods folder with mods in them, and the user could switch between by mv all zipfiles into the current modpack folder and cp the ones from the desired modpack. example of usage: fac listmodpacks solocampaign lazyman privateserver arumbas

fac chmodpack solocampaign saving current modpack: lazyman... loading modpack: solocampaign...

I hope this could be in the scope of the program.

zopieux commented 7 years ago

Seems cool. It looks like the virtual environment feature of many programming langage package managers. I would rather have a pack (or similar) subcommand for namespacing purposes:

$ fac pack list
solo
arumbas

$ fac pack new lazyman

$ fac pack add lazyman yarm foreman 5dim_logistic

$ fac pack load lazyman
Loaded lazyman pack with: YARM, Foreman, 5dim_logistic

Not sure what would be the "default" pack, though.

benkibejs commented 7 years ago

That seems to make more sence doing fac pack! when you create a new package i think it should be assumed that the current loaded mods should be a part of it. Such as downloading a modpack to your mods folder and then doing fac pack new. Or have an "add all" command to add all mods in mods folder to this modpack. Default should be empty or current i think.