Jump to content

Linux Dedicated Server - Mods not Downloading Consistently / Not Working In-Game


sdfe07
  • Fixed

After the latest March QoL update, my dedicated server can no longer download or run mods.

  • I am running a hosted Linux dedicated server
  • I have configured
    /mods/dedicated_server_mods_setup.lua
    to use
    ServerModSetup("WORKSHOP-ID")
  • As previously required, I have enabled these mods in
    /mods/modsettings.lua
    using
    ForceEnableMod("workshop-WORKSHOP-ID")
  • According to a post we read, mods should download to a new location
    /data/steamapps/workshop/content/322330
  • However, only one of the mods downloaded there

With the latest update, how do we get mods working on Linux dedicated servers again? Please help! As of the most recent hotfix, the server is finally able to load up just fine, but it is not able to consistently download all mods to the destination folder and the 1 mod that was successfully downloaded to this directory did not actually work in-game.

Attached is the server log from 

/.klei/DoNotStarveTogether/MyDediServer/Master

I'm not sure that we're enabling the mod appropriately either as mod folders of the form "workshop-XXXXXX" are no longer downloaded to the modsettings.lua script's location.

image.png

image.png

image.png


Steps to Reproduce
  • Start a Linux dedicated server
  • Add mods
  • Check to see if they download
  • Try to connect to server

 

 

 




User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.

In general, modsettings should not be used to enable server mods, that should be done in modoverrides.lua in the servers save location, I believe that will solve the issue in this instance, that being said, because I forgot about this feature, I failed to properly update its support for the new API, so that will get fixed in the next hotfix.

  • Thanks 1
  • Big Ups 1

Share this comment


Link to comment
Share on other sites

15 hours ago, zarklord_klei said:

In general, modsettings should not be used to enable server mods, that should be done in modoverrides.lua in the servers save location, I believe that will solve the issue in this instance, that being said, because I forgot about this feature, I failed to properly update its support for the new API, so that will get fixed in the next hotfix.

Gotcha thank you!! When can we expect another hotfix? You da best. 

After reading your post, I tried removing the content of modsettings and added a modoverrides.lua to Caves and Master directory. I finally found some log messages related to logs that seemed to indicate the files were downloading. However for many, it says for XXXXX_legacy.bin

Quote

size is 0!

image.thumb.png.c982b848fe212f118601d41965c710fd.png

And I don't see any files actually downloaded to that directory other than for camp security mod.
image.png.5b0541ce462e9f8fef202240cdd05d60.png

Attached log files.

image.png

server_log (1).txt

 

Edited by sdfe07

Share this comment


Link to comment
Share on other sites

if that ever occurs, you can delete the entire steamapps folder that is inside data/ I have only ever seen that error occur if players have manually removed mods from that folder.

  • Thanks 2

Share this comment


Link to comment
Share on other sites

Thank you! That helped.

Issue #1: Mods not Downloading/Loading
I deleted the entire data/steamapps folder and that allowed more mod folders to download. However, I'm still seeing issues with loading/opening mod files.

Yay, downloaded!
image.thumb.png.a6d9026043aa5a822c3a9043a8687c3b.png

Oh no, errors!

It's difficult to tell because we have a new issue with the update where we can't load into the server without it crashing to validate if mods truly work or not. Using modoverrides.lua and enabling a single mod at a time: 

  • Camp Security - Seems to have issue importing mod
    image.thumb.png.6b4235269ed40894573f5533e91abc9b.png
  • Wormhole Marks - Doesn't Seem to Cause Issue, but can't validate bc can't enter game
  • Global Positions - Doesn't Seem to Cause Issue, but can't validate bc can't enter game
    image.thumb.png.87a32cb6146b5c58077a8c1eaba2b153.png

Issue #2: Character Not Displaying
I believe you're aware of this from another post, but with the latest hotfix, even with the mods removed, we are unable to play for some reason. The character does not load in and I see this error:

Warning: Widget:SetFocusFromChild is happening on a widget outside of the screen/widget hierachy. This will cause focus moves to fail. Is ScriptErrorWidget not a screen?

image.png

 

Edited by sdfe07

Share this comment


Link to comment
Share on other sites

I too am having issues downloading Camp Security on Linux dedicated server. It is the only mod having this issue; interestingly enough it is the only mod attempting to create mod files in the new steamapps folder. All other mods have stayed in mods folder. Glad to hear that there might be a fix coming down the pipeline! Thanks @zarklord_klei for all the fixes; I know this update has been a lot of extra work.

Edited by JazzyGames

Share this comment


Link to comment
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

×
  • Create New...