Docker-7DaysToDie icon indicating copy to clipboard operation
Docker-7DaysToDie copied to clipboard

[FEATURE] Overhaul mod auto-install

Open vinanrra opened this issue 4 years ago • 21 comments

This would be amazing!

JoshWobbles avatar May 13 '20 00:05 JoshWobbles

Support for custom links instead of hardcoded links to avoid errors on mod updates because of that the user will provide the link of the mod and the server will unzip and install properly.

vinanrra avatar May 13 '20 09:05 vinanrra

I will start with this as soon i have time again, because it is gonna be a big update.

vinanrra avatar Jun 23 '20 19:06 vinanrra

Any chance Allocs Fixes can be included in this? If it helps, I have a script that downloads the latest version and installs it. Maybe that is useful for you

Awesome work on this image btw, I use it a lot for spinning up dev servers :smile:

niekcandaele avatar Jul 01 '20 17:07 niekcandaele

Any chance Allocs Fixes can be included in this? If it helps, I have a script that downloads the latest version and installs it. Maybe that is useful for you

Awesome work on this image btw, I use it a lot for spinning up dev servers 😄

I will add it too, thanks for the script.

I am glad that you like the image, i am trying to do my best with the image.

vinanrra avatar Jul 01 '20 19:07 vinanrra

I will keep waiting, because seems that 7 days to die devs will change they way mods works.

vinanrra avatar Sep 19 '20 18:09 vinanrra

I am back, i have update the image and added initial support for Alloc Fixes i hope @niekcandaele is still using the image :P

vinanrra avatar Oct 25 '20 11:10 vinanrra

Can someone test "vinanrra/7dtd-server:test" because rigth now i am unable to test it properly, if works i will release a stable version.

vinanrra avatar Oct 25 '20 13:10 vinanrra

Added Alloc Fixes

vinanrra avatar Oct 31 '20 18:10 vinanrra

I am facing a problem with mods and updates, because they use "custom" links for each release, and its gonna be a pain in the ass to add all, thats why i will try first to create a mod installer (like the link @niekcandaele did) that will:

1 - Download the URL you provide 2 - Unzip in a temp folder 3 - Override files 4 - Delete temp folder 5 - Start server with mod

Hope this works because if not i will need to add tons of links for each mod and update with every mod release.

vinanrra avatar Oct 31 '20 18:10 vinanrra

Added Undead Legacy, will start with Darkness Falls soon i hope @JoshWobbles still using the image, took me 2 years to start doing the mods scripts :(

If you want one in special, tell me and i will do it first, if not Darkness Falls will be the first

vinanrra avatar Jan 18 '22 15:01 vinanrra

I will wait for mods packs to update to Alpha20

vinanrra avatar Jan 22 '22 10:01 vinanrra

Support for custom links instead of hardcoded links to avoid errors on mod updates because of that the user will provide the link of the mod and the server will unzip and install properly.

This would be very handy. I could easily have a zip file located at an easily web accessable location and it would be pretty easy to have this downloaded and extracted.

spannerman79 avatar Mar 14 '22 17:03 spannerman79

Hi @vinanrra, thank you for this great image. Any ETA or rough idea when "darkness falls" support could be expected? We wanted to start a new run of the game and wanted to give this overhaul mod a try.

gymnae avatar Mar 09 '23 07:03 gymnae

@vinanrra any progress on adding Darkness Fall support?

spannerman79 avatar Mar 15 '23 23:03 spannerman79

@vinanrra any progress on adding Darkness Fall support?

Hi, I will work on this next week, because right now I'm working in another project, and it's almost done.

vinanrra avatar Mar 18 '23 17:03 vinanrra

@vinanrra any progress on adding Darkness Fall support?

I created an interim solution which works for our server. I use a shell script to spin up the 7dtd container and added the following before the block for docker:

# download darkness falls for A20, move into place & fix permissions
# apparently DF may require new savegames when updating, so automatic updates may not be the best idea
## initial clone - run online once or if major updates requires new save
# git clone https://dev.azure.com/KhaineUK/_git/DarknessFallsA20 tmp/
## Uncomment the following line if you want to pull the latest from the repo
## check for breaking changes before doing so
# git -C tmp pull
sudo rsync -av --exclude={'.git/','DarknessFallsConfig.xml'} tmp/ ServerFiles
sudo cp -r ServerFiles/Mods/0-DarknessFallsCore/Worlds/* ServerFiles/Data/Worlds/
#sudo cp DarknessFallsConfig.xml ServerFiles/
sudo cp DarknessFallsConfig.xml ServerFiles/sdtdserver.xml
sudo chown -R USERID:GROUPID ServerFiles
sudo chmod -R 755 ServerFiles/Mods

Note: You need to adjust the USERID and GROUPID to match the user running the process in the container. I'm using rootless docker, so I have a different id than default rootfull Docker.

gymnae avatar Apr 05 '23 17:04 gymnae

Thanks for sharing your solution @Gymnae I will adapt this to the docker image, so you will be able to install Darkness Falls without any manual step

vinanrra avatar Apr 05 '23 17:04 vinanrra

#159 Initial support here

vinanrra avatar Apr 05 '23 18:04 vinanrra

Added Darkness Falls support, with the possibility to choose a custom link, must be a Git repo

@Gymnae @spannerman79

vinanrra avatar Apr 12 '23 23:04 vinanrra

Thank you, much better than my hacky shell script

gymnae avatar Apr 13 '23 19:04 gymnae