Jump to content

[HELP] Added Sanity Auras, broke Wilson.


Recommended Posts

We had this feature implemented into Willoughby for a while, my modded character.

I recently re-implemented Willoughby's small sanity aura, and EVERY SINGLE WILSON EVER IS PRESENTING ME WITH THE FOLLOWING:

a36dc93ec6.pngc049174ee8.jpg5216d6a5df.jpg

Say goodbye to your precious scientist.

inst.components.sanityaura.aurafn = function(inst, observer)

if observer.prefab == "will" then

return TUNING.SANITYAURA_SMALL

end

return 0

end

Here's the string of code in Wilson's prefab to give off a sanity aura

Here's what destroyed the game though, I believe in will.lua:

	inst:AddComponent("sanityaura")
    inst.components.sanityaura.aura = TUNING.SANITYAURA_SMALL

I do not understand. This string is in evil flowers, spiders, everything! But when I added it to a player prefab, it just... DST isn't having it. Not one minute of it.

Link to comment
Share on other sites

Those crazy numbers for health and sanity usually mean that there are network synchronization errors - a net_var is attached to a prefab on the server but is missing on the client (or vice versa).

Link to comment
Share on other sites

Can confirm what Muche said--my friend had similarly insane hp values when we kept desynchronizing. Not the same trippy visuals mind you (just a black screen besides HUD), but yeah this implies something desynch. Have you opted into betas when your friends haven't?

Link to comment
Share on other sites

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
 Share

×
  • Create New...