Welcome to Keen Software House Forums! Log in or Sign up to interact with the KSH community.
  1. Hello Guest!
    Welcome to the Bug Report forum, please make sure you search for your problem before posting here. If you post a duplicate (that you post the same issue while other people have already done that before) you will be given a warning point which can eventually lead into account limitations !

    Here you can find a guide on how to post a good bug report thread.
    Space Engineers version --- Medieval Engineers version
  2. You are currently browsing our forum as a guest. Create your own forum account to access all forum functionality.

Dedicated Server: Unable to download mods

Discussion in 'Bug Reports' started by longbowrocks, Dec 20, 2017.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. longbowrocks Trainee Engineer

    Messages:
    15
    I tried starting up my dedicated server (1.185) today, and it claims that it can't download mods. That is, any mod or set of mods I have attempted gets the same error, which looks like this in the console:

    2017-12-19 19:39:57.507: Server connected to Steam
    2017-12-19 19:39:57.507: Server PolicyResponse (1)
    2017-12-19 19:39:57.642: Unable to download mods

    Or like this in the log:

    2017-12-19 19:22:35.054 - Thread: 1 -> Server connected to Steam
    2017-12-19 19:22:35.055 - Thread: 1 -> Server PolicyResponse (1)
    2017-12-19 19:22:35.148 - Thread: 1 -> HTTP: Downloaded 58015 bytes
    2017-12-19 19:22:35.151 - Thread: 1 -> Failed to download mods: System.InvalidOperationException: The ReadElementContentAsString method is not supported on node type None. Line 1141, position 12.
    at System.Xml.XmlReader.SetupReadElementContentAsXxx(String methodName)
    at System.Xml.XmlReader.ReadElementContentAsString()
    at Sandbox.Engine.Networking.MySteamWorkshop.DownloadWorldModsServerBlocking(List`1 mods, ResultData ret, List`1 publishedFileIds)

    My last successful start of this dedicated server was last night. Upon encountering the failure today, I've tried the following:
    * restarting steam
    * restarting my computer
    * reinstalling the game
    * trying to load a single mod with no other custom configuration
    * trying to load a different single mod with no other custom configuration
    * deleting the config for my dedicated server and world
    * deleting the saves for my dedicated server
    * deleting %AppData\Roaming\SpaceEngineersDedicated
    * using a friend's computer with the same mod list
    * using a friend's computer, with one mod from the mod list
     
    • Agree Agree x 3
  2. Atropos89 Trainee Engineer

    Messages:
    2
    I'm the friend, we also tried rolling the version back to 1.184, but got the same error with a new world.
    We used a new world for this test because you can't load a 1.185 world on a 1.184 server.
     
  3. rexxar Senior Engineer

    Messages:
    1,531
    Hey guys, this was a change from Steam's end. We're working to resolve it ASAP.

    Basically, the DS uses an older method to download mods, and Steam has apparently removed support for this method. I know more or less how to fix it, but it will take some time to get the new code written and tested. Please be patient :)
     
    • Friendly Friendly x 2
    • Like Like x 1
  4. Sir_Moodz Apprentice Engineer

    Messages:
    377
    such timing to remove the old support, right before holidays
     
  5. Brad Barnett Trainee Engineer

    Messages:
    4
    I can confirm, from the log file it appears the default anon user is being blocked from downloading mods. Is there a way to send a different user-id(thinking a work around may be to send a steamid instead of anon)?
     
  6. rexxar Senior Engineer

    Messages:
    1,531
    Nope. The only WebAPI endpoint that lets you download mods is available only to admin/developer accounts. We have to change to Steamworks API which is a big task we weren't ready for just yet.

    We've reached out to Valve for more information, but haven't heard anything back yet.
     
  7. Florian Trainee Engineer

    Messages:
    2
    Is there a workaround? I tried manually downloading the mods from the workshop via steam and just uploading them in the ./mods folder. The server still wanted to download them.
     
    • Like Like x 1
  8. Foogs Apprentice Engineer

    Messages:
    123
    Quick patch for Server-Admins:
    Change the constant ENABLE_WORKSHOP_MODS = false; in Sandbox.game.dll

    The server will start but will not check for updates and the integrity of the mods and cant download mods.
    You can manually copy the mods you need to a folder and register their id in the settings.
    Players download mods as usual.
    This fix is only needed for the server!
    Just drop to DedicatedServer64 folder.
    -snipped-
     
    Last edited by a moderator: Dec 20, 2017
    • Like Like x 4
  9. Digdug83 Trainee Engineer

    Messages:
    16
    Take my fake internet points Foogs. Oh wait...you know what, take 'em anyway. I'll mail them or something.
     
    • Funny Funny x 2
  10. JJayzX Trainee Engineer

    Messages:
    25
    @Foogs server doesn't want to start, any idea?
     
    Last edited: Dec 20, 2017
  11. Zepher8062 Trainee Engineer

    Messages:
    2
    Any recommendations to how to edit this for us "not-too-brilliant" people :p ? I tried NP++ but I get a bunch of garbage. Maybe I need an editing pack for it?
     
  12. Roxette Senior Engineer

    Messages:
    1,409
    It's a binary DLL file that's part of the program, if you're using a server from a hosting company you may not even have access to the DLL to edit or replace it with the modified version, because of the security risks to hosting services involved in allowing such access.
     
  13. Jimmi Trainee Engineer

    Messages:
    12
    Doesn't work for ME.

    Can somhow change this for ME, too?? Please?
     
  14. Foogs Apprentice Engineer

    Messages:
    123
    Make sure that you have all the mods in the folder, and the names match with the list of mods. The server does not download the missing ones.
    [​IMG]
    use DnSpy for edit dll.
     
  15. JJayzX Trainee Engineer

    Messages:
    25
    I've done it, just that the software literally does not load up.
     
  16. Foogs Apprentice Engineer

    Messages:
    123
    unblock dll file
     
  17. Brad Barnett Trainee Engineer

    Messages:
    4
    confirmed, gameservers.com will not allow editing of the dll file
     
  18. DrVagax Administrator

    Messages:
    822
    I'm fine if you show how to do it but don't redistribute the .dll's
     
    • Agree Agree x 1
  19. Brad Barnett Trainee Engineer

    Messages:
    4
    @keen, As mod downloading is broken anyway at the moment. Any chance of pushing this as a hotfix/patch for dedicated servers until the API is fixed. I can manually push mod updates by downloading them in SP then coping them over?
     
  20. Foogs Apprentice Engineer

    Messages:
    123
    U need patch dll for it
     
  21. JJayzX Trainee Engineer

    Messages:
    25
    Need something proper, cause i'm screwing crap up. I get it to start loading but then get "Exception while loading world: Index was outside the bounds of the array."
     
  22. rexxar Senior Engineer

    Messages:
    1,531
    No. This is not a solution we are willing to accept at the moment.
     
  23. Foogs Apprentice Engineer

    Messages:
    123
    Use search? :D
     
  24. rexxar Senior Engineer

    Messages:
    1,531
    Update on DS: We're assuming that the API change was a mistake on Valve's part, and hopefully they'll simply revert the change. We've reached out to them, but haven't gotten a response yet. We've not identified any valid workarounds yet, and a proper fix with the new API will be a weeks-long project. I'm continually monitoring the situation and will update as I learn more. Again, thanks for your patience :)
     
  25. ThisIsADogHello Apprentice Engineer

    Messages:
    121
    It looks like steamcmd allows you to download mods still, although you're required to use a user login for it, as logging in as "anonymous" gives a timeout error if you try it.

    Code:
    C:\Users\hadley\Downloads\steamcmd>steamcmd.exe
    Redirecting stderr to 'C:\Users\hadley\Downloads\steamcmd\logs\stderr.txt'
    [  0%] Checking for available updates...
    [----] Verifying installation...
    Steam Console Client (c) Valve Corporation
    -- type 'quit' to exit --
    Loading Steam API...OK.
    Steam>login anonymous
    Connecting anonymously to Steam Public...Logged in OK
    Waiting for user info...OK
    Steam>workshop_download_item 244850 730877708
    Downloading item 730877708 ...
    ERROR! Download item 730877708 failed (Timeout).
    
    vs.
    Code:
    C:\Users\hadley\Downloads\steamcmd>steamcmd.exe
    Redirecting stderr to 'C:\Users\hadley\Downloads\steamcmd\logs\stderr.txt'
    [  0%] Checking for available updates...
    [----] Verifying installation...
    Steam Console Client (c) Valve Corporation
    -- type 'quit' to exit --
    Loading Steam API...OK.
    Steam>login [redacted] [superredacted]
    Logging in user '[redacted]' to Steam Public...
    Enter the current code from your Steam Guard Mobile Authenticator app
    Two-factor code:H6BVQ
    Logged in OK
    Waiting for user info...OK
    Steam>workshop_download_item 244850 730877708
    Downloading item 730877708 ...
    Success. Downloaded item 730877708 to "C:\Users\hadley\Downloads\steamcmd\steamapps\workshop\content\244850\730877708\96098704685773038_legacy.bin" (1421 bytes)
    
    It'd be a bit messy, but there's a potential for a workaround somewhere in there. Especially since last time I tried talking to Steam support, it took multiple weeks to get any sort of response from them. Although hopefully they'd respond to developer requests a bit faster, but I wouldn't hold my breath for them.
     
    • Informative Informative x 1
  26. rexxar Senior Engineer

    Messages:
    1,531
    @ThisIsADogHello Yeah, I'm aware of this. It's still pretty awful, but it's the least awful workaround I've come up with so far. If Valve doesn't respond, or tells us a fix will be weeks away, I'll look into it in more detail
     
  27. Jyrgen Trainee Engineer

    Messages:
    3
    Ahoi! I am hosting from Gameservers. Is there any .dll file for me, haven't found one so far, Thanks.
     
  28. ThisIsADogHello Apprentice Engineer

    Messages:
    121
    [​IMG]
     
    • Funny Funny x 2
    • Like Like x 1
  29. Wurzler1 Trainee Engineer

    Messages:
    1
    Pleas don't kill me for that nooby question. But where can I find the Sandbox.game.dll on my Server? In my DedicatedServer64 folder isn't any dll file

    thanks a lot
     
    Last edited: Dec 20, 2017
  30. Dragokahn Trainee Engineer

    Messages:
    1
    I have the same problem in my nitrado server and the same on my pc

    my log file


    2017-12-20 19:10:40.632 - Thread: 1 -> Downloading world mods - START
    2017-12-20 19:10:40.669 - Thread: 1 -> Server connected to Steam
    2017-12-20 19:10:40.670 - Thread: 1 -> Server PolicyResponse (1)
    2017-12-20 19:10:40.984 - Thread: 1 -> HTTP: Downloaded 52113 bytes
    2017-12-20 19:10:40.989 - Thread: 1 -> Failed to download mods: System.InvalidOperationException: The ReadElementContentAsString method is not supported on node type None. Line 1148, position 12.
    at System.Xml.XmlReader.SetupReadElementContentAsXxx(String methodName)
    at System.Xml.XmlReader.ReadElementContentAsString()
    at Sandbox.Engine.Networking.MySteamWorkshop.DownloadWorldModsServerBlocking(List`1 mods, ResultData ret, List`1 publishedFileIds)
    2017-12-20 19:10:40.989 - Thread: 1 -> Downloading world mods - END
    2017-12-20 19:10:40.989 - Thread: 1 -> Unable to download mods
    2017-12-20 19:10:40.990 - Thread: 1 -> MySandboxGame.Initialize() - END
    2017-12-20 19:10:41.003 - Thread: 1 -> Timer Frequency: 2441411
    2017-12-20 19:10:41.004 - Thread: 1 -> Ticks per frame: 40690
    2017-12-20 19:10:42.114 - Thread: 20 -> MyDefinitionManager.PrepareBaseDefinitions() - END
     
    Last edited: Dec 20, 2017
Thread Status:
This last post in this thread was made more than 31 days old.