Didstopia / 7dtd-server

Provides a dedicated linux server for 7 Days to Die running inside a Docker container.
MIT License
108 stars 45 forks source link

Env var or command line for using mods? #32

Open JoshWobbles opened 4 years ago

JoshWobbles commented 4 years ago

Is is possible to enable mods in this docker? if so is there a var or switch I can use to direct the mod folder? would like this to be on one of my shares so it is easy to update and manupulate.

twreid commented 4 years ago

I would also like to know how to install mods. I have created a Mods directory in the directory that has the server config xml, but at start the server always says no Mods directory found.

wolffstarr commented 4 years ago

I would also like to know how to install mods. I have created a Mods directory in the directory that has the server config xml, but at start the server always says no Mods directory found.

The Mods directory needs to be located with the game files, not the config files. So you would need to put the Mods directory in whatever directory you've got /steamcmd/7dtd mounted from; that will allow you to load mods.

JoshWobbles commented 4 years ago

I would also like to know how to install mods. I have created a Mods directory in the directory that has the server config xml, but at start the server always says no Mods directory found.

The Mods directory needs to be located with the game files, not the config files. So you would need to put the Mods directory in whatever directory you've got /steamcmd/7dtd mounted from; that will allow you to load mods.

I still had issues with that, I assume my modded files were getting overwritten by steam on each start

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

cryptton2004 commented 3 years ago

I added: RUN mkdir -p /steamcmd/7dtd/mods just below

# Create the volume directories
RUN mkdir -p /steamcmd/7dtd /app/.local/share/7DaysToDie

And for some reason:

# Fix permissions
RUN chown -R 1000:1000 \
    /steamcmd \
    /app \
    /steamcmd/7dtd/mods

Then just copy pasted my "mods" into the shared folder and everything went well. They persist after updates and stuff. Of course, wolffstarr's comment stands:

The Mods directory needs to be located with the game files, not the config files. So you would need to put the Mods directory in whatever directory you've got /steamcmd/7dtd mounted from; that will allow you to load mods.

jonneymendoza commented 3 years ago

I added: RUN mkdir -p /steamcmd/7dtd/mods just below

# Create the volume directories
RUN mkdir -p /steamcmd/7dtd /app/.local/share/7DaysToDie

And for some reason:

# Fix permissions
RUN chown -R 1000:1000 \
    /steamcmd \
    /app \
    /steamcmd/7dtd/mods

Then just copy pasted my "mods" into the shared folder and everything went well. They persist after updates and stuff. Of course, wolffstarr's comment stands:

The Mods directory needs to be located with the game files, not the config files. So you would need to put the Mods directory in whatever directory you've got /steamcmd/7dtd mounted from; that will allow you to load mods.

Where exactly did you add this? what file did you change/edit?