vinanrra / Docker-7DaysToDie

7 days to die server using LinuxGSM in Docker with backups, monitor, auto-installable mods and more
GNU General Public License v3.0
206 stars 43 forks source link

[FEATURE] Overhaul mod auto-install #14

Closed vinanrra closed 4 days ago

vinanrra commented 4 years ago
JoshWobbles commented 4 years ago

This would be amazing!

vinanrra commented 4 years ago

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 commented 4 years ago

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

niekcandaele commented 4 years ago

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:

vinanrra commented 4 years ago

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 commented 3 years ago

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

vinanrra commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

Added Alloc Fixes

vinanrra commented 3 years ago

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 commented 2 years ago

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 commented 2 years ago

I will wait for mods packs to update to Alpha20

spannerman79 commented 2 years ago

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.

gymnae commented 1 year ago

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.

spannerman79 commented 1 year ago

@vinanrra any progress on adding Darkness Fall support?

vinanrra commented 1 year ago

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

gymnae commented 1 year ago

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

vinanrra commented 1 year ago

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 commented 1 year ago

159 Initial support here

vinanrra commented 1 year ago

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

@Gymnae @spannerman79

gymnae commented 1 year ago

Thank you, much better than my hacky shell script

vinanrra commented 4 days ago

Closing this because with the new auto-mod installation this seems to be redundant for most of the overhaul mods that only needs to be decompressed at mod folder, except Undead Legacy that needs special things.