Don't Starve Together

Don't Starve Together

Friendly Fruit Fly QoL
16 Comments
kurozawa 26 Jun, 2022 @ 11:16am 
Hi, I fixed the error by adding a few lines in modmain.lua (regen works now).
Can I have your permission to upload the fixed version and credit you in it?
kurozawa 13 Jun, 2022 @ 5:20am 
Error says attempt to index field 'health' (a nil value) in the function, 'xpcall'.

Full Error Message (happens whenever I encounter a friendly fruit fly):

[string "../mods/workshop-2396207679/modmain.lua"]:22: attempt to index field 'health' ( a nil value)
LUA ERROR stack traceback:
../mods/workshop-2396207679/modmain.lua(22,1)
= (tail call) ?
= [C] in function 'xpcall'
scripts/mods.lua(174,1) in function ' mod'
scripts/mainfunctions.lua(342,1)
kurozawa 13 Jun, 2022 @ 2:36am 
Please fix. It always crashes upon encountering a friendly fruit fly. I've tried disabling all other mods except this, rolling back, regenerating world, reinstalling this mod, but it still crashes. Error message says something like "attempt to index field 'health' (a nil value) LUA error stack traceback: ..." . I have a screenshot of the error screen.
MissChibiGoddess TTV 2 Dec, 2021 @ 11:43am 
give it auto armor so its not so ez to kill
MissChibiGoddess TTV 29 Nov, 2021 @ 12:32pm 
give sanity when near by be fun mwha
Electroely  [author] 29 Nov, 2021 @ 8:31am 
No problem! I'm going through my mods right now and seeing if any of them could use a little touching-up.
krylincy 29 Nov, 2021 @ 8:29am 
Hehe, thank you for the update!
Electroely  [author] 29 Nov, 2021 @ 8:26am 
It shouldn't have any actual gameplay effect though. I'll remove it right now anyway
Electroely  [author] 29 Nov, 2021 @ 8:26am 
Oh. Crap. I forgot to remove that. I was fixing another mod and got lazy and added the postinit here.
krylincy 29 Nov, 2021 @ 8:25am 
why have you added
AddPrefabPostInit("telebrella", function(inst) ... ?
MissChibiGoddess TTV 19 Nov, 2021 @ 9:44am 
remove them from being targeted
Electroely  [author] 19 Nov, 2021 @ 9:08am 
Great ideas! I'll get to work ASAP
MissChibiGoddess TTV 19 Nov, 2021 @ 8:44am 
can you make them have higher hp - can you make it able to mute the sounds - hp regen - etc
licet_insanire 6 Mar, 2021 @ 2:58pm 
thank you for this mod! I was very annoyed by the fruit fly always going back and forth, so this is very helpful. I was told that you made as fix for it by a friend, I hope it gets more visibility so more people can find this mod on their own
Atobá Azul 15 Feb, 2021 @ 11:36am 
Excelent! have an award.
ADM 15 Feb, 2021 @ 12:55am 
This mod right there, Klei.