Jump to content

Recommended Posts

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

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.

 

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...