DarkXero Posted January 27, 2015 Share Posted January 27, 2015 For the people who had access to this during beta. Are there special considerations to make while modding for dedicated servers?(Apart from manually updating things.) Like removing ThePlayer from host code?Or having to replace TheWorld.ismastersim with something else like TheNet:GetIsServer()? Or the above actually doesn't matter and it's just like modding for somebody who hosts and plays? Also, first non red! Link to comment Share on other sites More sharing options...
rezecib Posted January 27, 2015 Share Posted January 27, 2015 @DarkXero, Yep, I definitely had a couple of crashes in my mods when they were run on dedicated servers. You can check with TheNet:IsDedicated(). It's not as simple as just making sure ThePlayer and such don't get called, a lot of other things don't exist. You can look at DST RoG Characters-- I had to check in the modmain before modifying IsRecipeValid to support character-specific crafting recipes. I think for the most part, anywhere you will be calling ThePlayer will probably not be running on a dedicated server, anyway. TheWorld.ismastersim still definitely works on dedicated servers. TheNet:GetIsServer() as well. Link to comment Share on other sites More sharing options...
DarkXero Posted January 28, 2015 Author Share Posted January 28, 2015 So it will be more testing, rezecib. I made a dedicated lan server to try and join it by myself as a client to speed up mod testing.But I can't give myself privileges, because when I put my steam/offline ID into an adminlist, the server gets them, not me. Any workarounds for this?Maybe using that alternative configuration directory command that I can't make function for whatever reason? Link to comment Share on other sites More sharing options...
rezecib Posted January 28, 2015 Share Posted January 28, 2015 @DarkXero, Alternative config directory is definitely a good idea, it's basically mandatory if you're going to be joining from the same computer. Link to comment Share on other sites More sharing options...
DarkXero Posted January 28, 2015 Author Share Posted January 28, 2015 rezecib, where do I put the conf_dir thing? I did it wrong 5 times. Link to comment Share on other sites More sharing options...
Developer PeterA Posted January 28, 2015 Developer Share Posted January 28, 2015 @DarkXero, dontstarve_dedicated_server_nullrenderer.exe [-conf_dir <AlternativeDirectory>] so something like "dontstarve_dedicated_server_nullrenderer.exe -conf_dir DST_Server This would be for running the server exe outside of Steam, in Steam you can right click, Properties, General Tab, and then Set Launch Options. Link to comment Share on other sites More sharing options...
DarkXero Posted January 28, 2015 Author Share Posted January 28, 2015 @DarkXero, dontstarve_dedicated_server_nullrenderer.exe [-conf_dir <AlternativeDirectory>] so something like "dontstarve_dedicated_server_nullrenderer.exe -conf_dir DST_Server PeterA, thank you. It also was in the wiki.I was trying to do that. Incredibly, I screwed it up 5 times.Then I noticed I was putting config_dir. Damn. It works as expected. Link to comment Share on other sites More sharing options...
Kzisor Posted January 28, 2015 Share Posted January 28, 2015 PeterA, thank you. It also was in the wiki.I was trying to do that. Incredibly, I screwed it up 5 times.Then I noticed I was putting config_dir. Damn. It works as expected. Don't worry DarkXero, I too did that the first day I got the dedicated server software. I nagged at PeterA about it for about 5-10 minutes before realizing I was typing it wrong. I vote to add an additional command argument of config_dir as well so that you can use conf_dir or config_dir. Link to comment Share on other sites More sharing options...
Developer PeterA Posted January 28, 2015 Developer Share Posted January 28, 2015 I vote to add an additional command argument of config_dir as well so that you can use conf_dir or config_dir. hah, okay, added in Hopefully no one else gets burned by that. Link to comment Share on other sites More sharing options...
DarkXero Posted January 28, 2015 Author Share Posted January 28, 2015 On a semi unrelated note, making a lan dedicated server means that if you host and join as a client from the same computer, both host player and client player will have the same ID, and the host player will receive the admin benefits. Shouldn't this be happening to online dedicateds too?Did somebody try making a dedicated, giving himself admin privileges, and joining it from the same computer? The conf_dir is very useful to setup settings and see what sessions are for which world, but my offline ID remains the same. Link to comment Share on other sites More sharing options...
Flarethearcanine Posted May 10, 2015 Share Posted May 10, 2015 When I try to host servers with mods, my game doesn't respond.Once it did, it froze on the loading screen. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.