Amu63 Posted November 15, 2020 Share Posted November 15, 2020 [00:02:31]: [string "../mods/workshop-1275167632/scripts/brains/..."]:149: bad argument #1 to 'max' (number expected, got nil) LUA ERROR stack traceback: =[C]:-1 in (field) max (C) <-1--1> ../mods/workshop-1275167632/scripts/brains/crittersbrain.lua:149 in (upvalue) _avoidtargetfn (Lua) <121-154> ../mods/workshop-1275167632/scripts/brains/crittersbrain.lua:158 in (local) fn (Lua) <157-164> scripts/simutil.lua:37 in (global) FindEntity (Lua) <31-42> scripts/behaviours/runaway.lua:81 in (method) Visit (Lua) <79-124> scripts/behaviourtree.lua:578 in (method) Visit (Lua) <554-610> scripts/behaviourtree.lua:578 in (method) Visit (Lua) <554-610> scripts/behaviourtree.lua:643 in (method) Visit (Lua) <633-664> scripts/behaviourtree.lua:578 in (method) Visit (Lua) <554-610> scripts/behaviourtree.lua:22 in (method) Update (Lua) <20-27> scripts/brain.lua:212 in (method) OnUpdate (Lua) <205-214> scripts/brain.lua:135 in (method) Update (Lua) <105-147> scripts/update.lua:237 in () ? (Lua) <164-243> [00:02:31]: Warning: Widget:SetFocusFromChild is happening on a widget outside of the screen/widget hierachy. This will cause focus moves to fail. Is ScriptErrorWidget not a screen? [00:02:31]: stack traceback: scripts/widgets/widget.lua:605 in (method) SetFocusFromChild (Lua) <602-627> scripts/widgets/widget.lua:624 in (method) SetFocusFromChild (Lua) <602-627> scripts/widgets/widget.lua:624 in (method) SetFocusFromChild (Lua) <602-627> scripts/widgets/widget.lua:656 in (method) SetFocus (Lua) <629-665> scripts/widgets/menu.lua:83 in (method) SetFocus (Lua) <74-85> scripts/widgets/scripterrorwidget.lua:109 in (method) OnUpdate (Lua) <102-119> scripts/update.lua:95 in () ? (Lua) <33-134> Connection to server is lost and crashes and I'm not sure why. I am hosting the server on a Mac and I have mods running but I've been playing it with others for weeks with no problem. Recently the game has started to shut down by itself randomly. Link to comment Share on other sites More sharing options...
Daniel86268 Posted November 16, 2020 Share Posted November 16, 2020 It seems the MyPet mod has a runtime error somewhere, where a function expects a number, but instead recieves nil. Try to ask the mod author, and describe when you crash, and when it runs without problems. Link to comment Share on other sites More sharing options...
Amu63 Posted November 16, 2020 Author Share Posted November 16, 2020 Thanks! Decided to turn off the mod and is running fine so far. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.