Cunning fox

dedicated_server_mods_setup overrides on start

Recommended Posts

Cunning fox    136

Hello! I have a Linux-hosted server, and every time I start the server dedicated_server_mods_setup becomes blank again, so I'm unable to download mods. Is there any way to fix it? Thanks for your advice!

Edited by Cunning fox

Share this post


Link to post
Share on other sites
Daniel86268    302

You can check out my guide on how to set up mods on a dedicated server, where I explained this issue:

 

On 13.10.2018 at 7:59 PM, Daniel86268 said:

Addition:
On some occasions the dedicated_server_mods_setup.lua file get's overwritten by the launch script with the empty original script, if it's configured to first check if there are any server updates.
If that's happening for you as well, you have to check your startup script for a line like this:


./steamcmd.sh +force_install_dir "$install_dir" +login anonymous +app_update 343050 validate +quit

Just delete or uncomment it for the time being, but keep in mind that you need to either manually enter it every time the server updates, or readd it once after each update.

  • Like 1

Share this post


Link to post
Share on other sites
Lucidi0us    1

Quote from a similar thread

43 minutes ago, Lucidi0us said:

I solved this by creating a script for updating the app that includes something like this:


#!/bin/bash

# Stop DST servers
/bin/systemctl stop dontstarve.service;

# Copy current dedicated_server_mods_setup.lua to backup
/bin/cat /home/steam/dontstarve/mods/dedicated_server_mods_setup.lua > /home/steam/backup_dedicated_server_mods_setup.lua;

# Update DST
/home/steam/steamcmd +force_install_dir "$install_dir" +login anonymous +app_update 343050 validate +quit;

# Restore dedicated_server_mods_setup.lua from backup
/bin/cat /home/steam/backup_dedicated_server_mods_setup.lua > /home/steam/dontstarve/mods/dedicated_server_mods_setup.lua;

# Start DST servers
/bin/systemctl start dontstarve.service;

# Leave happy
exit 0;

You can then run it in a chron job

You can find the systemd and start scripts here:

 

Here is the crontab entry to run updates at 3 am every Monday


0 3 * * 1 /usr/local/bin/dontstarve_update > /dev/null 2>&1 –

make sure to chmod +x the script to allow execution


chmod +x /usr/local/bin/dontstarve_update

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now