饥荒联机版

饥荒联机版

Friendly Fruit Fly QoL
16 条留言
kurozawa 2022 年 6 月 26 日 上午 11:16 
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 2022 年 6 月 13 日 上午 5:20 
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 2022 年 6 月 13 日 上午 2:36 
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 2021 年 12 月 2 日 上午 11:43 
give it auto armor so its not so ez to kill
MissChibiGoddess 2021 年 11 月 29 日 下午 12:32 
give sanity when near by be fun mwha
Electroely  [作者] 2021 年 11 月 29 日 上午 8:31 
No problem! I'm going through my mods right now and seeing if any of them could use a little touching-up.
krylincy 2021 年 11 月 29 日 上午 8:29 
Hehe, thank you for the update!
Electroely  [作者] 2021 年 11 月 29 日 上午 8:26 
It shouldn't have any actual gameplay effect though. I'll remove it right now anyway
Electroely  [作者] 2021 年 11 月 29 日 上午 8:26 
Oh. Crap. I forgot to remove that. I was fixing another mod and got lazy and added the postinit here.
krylincy 2021 年 11 月 29 日 上午 8:25 
why have you added
AddPrefabPostInit("telebrella", function(inst) ... ?
MissChibiGoddess 2021 年 11 月 19 日 上午 9:44 
remove them from being targeted
Electroely  [作者] 2021 年 11 月 19 日 上午 9:08 
Great ideas! I'll get to work ASAP
MissChibiGoddess 2021 年 11 月 19 日 上午 8:44 
can you make them have higher hp - can you make it able to mute the sounds - hp regen - etc
licet_insanire 2021 年 3 月 6 日 下午 2:58 
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 2021 年 2 月 15 日 上午 11:36 
Excelent! have an award.
ADM 2021 年 2 月 15 日 上午 12:55 
This mod right there, Klei.