Haji Posted July 15, 2016 Share Posted July 15, 2016 I used AddPrefabPostInit to add an hp regen component to koalefants, and it works fine for the host, but whenever we try to run it, it always crashes the clients with the an error message telling us don't starve has run out of memory. I attached modmain.lua, modinfo.lua, and my client_log. I'm sorry if this is a stupid question, I don't know much about coding. modinfo.lua modmain.lua client_log.txt Link to comment https://forums.kleientertainment.com/forums/topic/68867-dont-starve-has-run-out-of-memory/ Share on other sites More sharing options...
DarkXero Posted July 15, 2016 Share Posted July 15, 2016 Your mod has all_clients_require_mod = true this on modinfo, which should be false, since the health regen needs to be applied server side only. Either that or put if not GLOBAL.TheNet:GetIsServer() then return end at the beginning of modmain. Link to comment https://forums.kleientertainment.com/forums/topic/68867-dont-starve-has-run-out-of-memory/#findComment-793079 Share on other sites More sharing options...
Haji Posted July 18, 2016 Author Share Posted July 18, 2016 Thanks, that worked like a charm! Link to comment https://forums.kleientertainment.com/forums/topic/68867-dont-starve-has-run-out-of-memory/#findComment-794319 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