Don't Starve Together

Don't Starve Together

Jessica - The Spider Huntress
This topic has been locked
MontSchmibbles  [developer] 7 Jun, 2016 @ 5:42pm
[FIXED - Closed] Sanity Aura Bug
Place to post any information about the sanityaura issue! If you have this problem, attempt to screenshot the error message in-game (upload the picture to a sharing site like imgur so that I can see it.)

If you are on PC, you can go to your Documents folder and there should be a folder named "Klei" -- in it is the "DoNotStarveTogether" folder. There should be a "client_log.txt" file. Look through this for any related information after a crash.

The mod seems to work fine stand-alone and with the vanilla game. So far I believe most crashes are conflicts with other mods. Please list any other mods you were using at the time so I can see where the issue lies!

Thanks everyone :)
Last edited by MontSchmibbles; 21 Feb, 2017 @ 3:12pm
< >
Showing 1-7 of 7 comments
MontSchmibbles  [developer] 7 Jun, 2016 @ 5:46pm 
Issues so far from comments section (reposted to help me keep this all in one place)
----
@graxnip
[string "../mods/workshop-690224695/modmain.lua"}:77: attempt to index field ' sanityaura' (a nil value) LUA ERROR stack traceback: ../mods/workshop-690224695/modmain.lua(77,1) =(tail call) ? =[c] in function 'xpcall' scripts/mods.lua(123,1) in function 'mod' scripts/mainfunctions.lua(155,1) [/noparse] May have conflicted with 'Yang' or 'Kyoko Sakura' ( which also were disabled after finding a bug with those character mods where all twig bushes turned into `sticks on the ground` ) assume it was them because when they were disabled twig bushes returned to normal) yesterday: lan game- host playing as yang, myself playing as jessica - i crash at dusk after being in game for 2 mins with an error ( i recall the sanityaura but didnt get the whole thing ) today : lan game- host(me) playing as jessica, friend plays as yang, they login for first time and crash with above message

@Zelgi
I second the observation about it crashing. If it helps, it looked like it crashed exactly when night hit. Given that it does factor some measure of 'sanity' in the error message, I can only assume it's something failing in the sanity switchover in the day to evening transition.

@starbringer
So, when my friend plays Jessica, I end up crashing, saying there's something wrong with the modmain.lua. Something about the sanityaura. Hopefully this will be fixed soon.
Last edited by MontSchmibbles; 7 Jun, 2016 @ 5:46pm
http://i.imgur.com/0AqZloP.png

It appears that the bug happens to the other character in a multi-player server regardless of other mods enabled. It has to have something to do with Jessica's sanity drain with spiders being added in because this problem did not occur before that. My friend has tried to turn off all other mod's than Jessica and we found that this was the main problem. We tried updating her and enabling back some of the other mods to see if it would fix, but it did not. I hope this message has helped.
Kain Morgen 18 Jun, 2016 @ 6:06am 
So, this bug happened to me playing with my friend yesterday.
She was playing Jessica, I was playing WX-78.
I explored the map and when getting too close to some spiders my game crashed, referring to line 77 of the Jessica modmain - the sanity aura.

I assume, that the Jessica script as it is, accidentally tries to modify the sanity behaviour of all characters in the server and that causes the crash. At the very least, if the host is using Jessica. We did not try it the other way round (host being WX and guest being Jessica)

So I guess, you are looking for a way to apply line 77 only to Jessica characters.
If you are asking nice and explain the problem in detail, you might get help from the modding community at the Klei forum.
http://forums.kleientertainment.com/forum/79-dont-starve-together-mods-and-tools/
Kain Morgen 18 Jun, 2016 @ 8:10am 
To give you a little more insight in the sanity aura bug:

If you comment out lines 77 and 78 (I commented out both lines, but you might try if it's just one of them) on both the server and the clientside of the mod, then my WX-78 did not crash anymore when somewhere near spiders.
Of course, this very simple quickfix, also deletes the perk "increase sanity drain when near spiders" from Jessica, but well - at least it is playable this way and you should keep in mind: by the logic of your script, even if it would NOT crash other characters/players it would apply Jessica's negative perk to ALL of the players in the world. I think that is a very bad idea.

I also noticed, that when given the spider swatter, it took alot of hits for WX-78 to kill a lowly spider. So apparently, the x5 damage multiplier to spiders is only applied to Jessica, instead of all characters holding the spider swatter weapon. I don't think that is intended as well, right?
MontSchmibbles  [developer] 18 Jun, 2016 @ 3:07pm 
Working on the Sanity Aura -- may just remove it. Tried to make it applicable only to Jessica by setting if observer == "jessica" (wouldn't work if the server hadn't preloaded the prefab, crashed half the time), then tried giving Jessica the extra tag "scarytoprey" (a normal tag, but characters don't usually have it) and made it only affect characters with that tag. Works for making it only apply to Jessica, doesn't fix sanity bug.

As for the Spider Swatter...huh. Not sure why it would do that. There's nothing character specific about it. Here's the line that modifies the strength:

local function onattack(inst, owner, target)
if (target:HasTag("spider") or target:HasTag("spider_warrior") or target:HasTag("spiderqueen")) then
inst.components.weapon:SetDamage(TUNING.SPEAR_DAMAGE * 5)
else
inst.components.weapon:SetDamage(TUNING.SPEAR_DAMAGE)
end
end

Nothing character-specific there. Odd.
MontSchmibbles  [developer] 18 Jun, 2016 @ 4:25pm 
Okay, some updates and changes:

Removed the sanityaura effect for now. Replaced it instead with just a quickened sanity loss over all. While it's a cool idea, right now there's no good way to implement it without running into coding errors or applying it to everyone on the server.

This bug should be fixed now as the issue is removed. I'd rather the mod be playable than exactly perfect.

However, if anyone has any ideas on how to make it work, I'm still open to trying! Still looking into the spider swatter thing and tilting my head on why it would stop affecting the spiders. But thanks for everyone's help.
Kain Morgen 18 Jun, 2016 @ 6:29pm 
Regarding the spider swatter:
I'll try it again, the next time I play together with my friend.
Maybe I have simply been lagging and thus have seen multiple attacks before one actually was counted.

I should mention though, that the spider swatter in question was crafted by my friend and then given to me. If the "owner" refers to the character that holds the swatter, then probably I just lagged. If the "owner" refers to the character that crafted the spider swatter, then this weapon would lose its bonus damage by being traded.

But well, maybe I just lagged. I will let you know in a few days when I had the opportunity to play with my friend again.


Regarding the sanity aura bug:
You're welcome. Glad I could help you with the troubleshooting. :)
< >
Showing 1-7 of 7 comments
Per page: 1530 50