Argonium Posted June 24, 2019 Share Posted June 24, 2019 I can't create a world with caves while my mod is enabled? How to fix this and what creating this? [Error] Dedicated server process terminated prematurely. Link to comment https://forums.kleientertainment.com/forums/topic/107886-what-can-cause-dedicated-server-problems/ Share on other sites More sharing options...
Wolf_EX Posted June 24, 2019 Share Posted June 24, 2019 From my experience, errors with caves enabled is from server side code running on the client. Are you using components without "if not TheWorld.ismastersim then"? Link to comment https://forums.kleientertainment.com/forums/topic/107886-what-can-cause-dedicated-server-problems/#findComment-1213570 Share on other sites More sharing options...
Argonium Posted June 24, 2019 Author Share Posted June 24, 2019 (edited) I'm using if GLOBAL.TheWorld.ismastersim then And also my mod is serverside Edited June 24, 2019 by Vlad Undying Link to comment https://forums.kleientertainment.com/forums/topic/107886-what-can-cause-dedicated-server-problems/#findComment-1213571 Share on other sites More sharing options...
Ultroman Posted June 25, 2019 Share Posted June 25, 2019 Have you set your flags correctly in the modinfo.lua? If it's a server-only mod you shouldn't be seeing these problems. If it has any netvars or adds new things to the game, then it must have all_clients_require_mod set to true. Link to comment https://forums.kleientertainment.com/forums/topic/107886-what-can-cause-dedicated-server-problems/#findComment-1213788 Share on other sites More sharing options...
Argonium Posted June 25, 2019 Author Share Posted June 25, 2019 My mod always had all_clients_require_mod = true Link to comment https://forums.kleientertainment.com/forums/topic/107886-what-can-cause-dedicated-server-problems/#findComment-1213849 Share on other sites More sharing options...
Ultroman Posted June 25, 2019 Share Posted June 25, 2019 I will need a zip of your mod in order to help you any further. Link to comment https://forums.kleientertainment.com/forums/topic/107886-what-can-cause-dedicated-server-problems/#findComment-1213892 Share on other sites More sharing options...
Argonium Posted June 25, 2019 Author Share Posted June 25, 2019 Here CCI.zip Link to comment https://forums.kleientertainment.com/forums/topic/107886-what-can-cause-dedicated-server-problems/#findComment-1213899 Share on other sites More sharing options...
Ultroman Posted June 25, 2019 Share Posted June 25, 2019 I'll take a look. Hmm, can't see anything amiss in the code. Do you by chance have a log of the error happening? Link to comment https://forums.kleientertainment.com/forums/topic/107886-what-can-cause-dedicated-server-problems/#findComment-1213906 Share on other sites More sharing options...
Argonium Posted June 25, 2019 Author Share Posted June 25, 2019 client_log.txt Link to comment https://forums.kleientertainment.com/forums/topic/107886-what-can-cause-dedicated-server-problems/#findComment-1213913 Share on other sites More sharing options...
Ultroman Posted June 25, 2019 Share Posted June 25, 2019 There's only a client log? No server log? I think this is one of the possible culprits. [00:19:36]: Warning: function Recipe in modmain is deprecated, please use AddRecipe They changed the way recipes are added to a server a few months ago, adding some protection and registration to the recipes (to keep consistency between server and clients, I suppose), which only happens in AddRecipe but not in Recipe. Link to comment https://forums.kleientertainment.com/forums/topic/107886-what-can-cause-dedicated-server-problems/#findComment-1214032 Share on other sites More sharing options...
Argonium Posted June 26, 2019 Author Share Posted June 26, 2019 I never used recipe.. hmmmm I used local smth = AddRecipe() smth.image = "smth.tex" smth.product = "smth" Oh I see, shadow tabs using recipe... I'll try later. Thanks for helping Link to comment https://forums.kleientertainment.com/forums/topic/107886-what-can-cause-dedicated-server-problems/#findComment-1214256 Share on other sites More sharing options...
Argonium Posted June 26, 2019 Author Share Posted June 26, 2019 (edited) Still an error client_log.txt server_log.txt Any ideas? Can't find anything Edited June 26, 2019 by Vlad Undying Link to comment https://forums.kleientertainment.com/forums/topic/107886-what-can-cause-dedicated-server-problems/#findComment-1214282 Share on other sites More sharing options...
Ultroman Posted June 26, 2019 Share Posted June 26, 2019 Me neither. I don't have time for deep debugging right now, sorry. Link to comment https://forums.kleientertainment.com/forums/topic/107886-what-can-cause-dedicated-server-problems/#findComment-1214510 Share on other sites More sharing options...
Argonium Posted August 3, 2019 Author Share Posted August 3, 2019 (edited) Found the problem. CUSTOM_RECIPETABS.SMTH- will succeed CUSTOM_RECIPETABS[SMTH] - won't succeed Edited August 3, 2019 by Vlad Undying Link to comment https://forums.kleientertainment.com/forums/topic/107886-what-can-cause-dedicated-server-problems/#findComment-1238653 Share on other sites More sharing options...
CarlZalph Posted August 3, 2019 Share Posted August 3, 2019 40 minutes ago, Vlad Undying said: Found the problem. CUSTOM_RECIPETABS.SMTH- will succeed CUSTOM_RECIPETABS[SMTH] - won't succeed CUSTOM_RECIPETABS["SMTH"] - will succeed If SMTH is a variable that contains a string, then your second case will succeed. Otherwise if it's a literal, then it must be encapsulated to make it a string for accessing. The dot notation is shorthand for it. Link to comment https://forums.kleientertainment.com/forums/topic/107886-what-can-cause-dedicated-server-problems/#findComment-1238676 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now