Fancy_Fox_Pers Posted March 15, 2017 Share Posted March 15, 2017 (edited) I have some kind of luggage mob that's basicly a chester clone. It has always worked fine, until caves were added. I actually wasn't aware of this because the caves were always turned off. However, the same crash occurs now when friends join. How could that be when it is fine during testing on a 1 player server (again, caves turned off)? Just to be clear, this bug is related to the chester_bone equivalent when it is picked up (I checked, it wasn't related to the mob itself), presumably when it is spawning the mob. Here's what the log said: [string "scripts/components/follower.lua"]:8: attempt to index field 'follower' (a nil value) ../mods/Lionel for DST/scripts/prefabs/picolo_lionel.lua:88 in (field) fn (Lua) <43-110> (line 88 in picolo_lionel is inst:AddComponent("follower") and that's what's confusing me) Spoiler [string "scripts/components/follower.lua"]:8: attempt to index field 'follower' (a nil value) LUA ERROR stack traceback: scripts/components/follower.lua:8 in (field) ? (Lua) <7-9> self = inst = 101512 - (valid:true) _ = table: 46433170 leader = nil scripts/class.lua:30 in () ? (Lua) <23-32> t = table: 46433058 k = leader v = nil p = table: 46433530 old = nil scripts/components/follower.lua:14 in (field) _ctor (Lua) <11-25> self = inst = 101512 - (valid:true) _ = table: 46433170 inst = 101512 - (valid:true) scripts/class.lua:181 in (local) cmp (Lua) <171-184> class_tbl = table: 46432A68 arg = nil obj = table: 46433058 scripts/entityscript.lua:519 in (method) AddComponent (Lua) <508-530> self (valid:true) = DynamicShadow = DynamicShadow (24BBE010) Transform = Transform (24BBDDD0) inlimbo = false actionreplica = table: 4642F520 event_listening = table: 4642F8E0 actioncomponents = table: 4642F200 lower_components_shadow = table: 4642F390 entity = Entity (29113A50) AnimState = AnimState (24BBDD90) Network = Network (24BBDD50) persists = true MiniMapEntity = MiniMapEntity (24BBDEF0) SoundEmitter = SoundEmitter (24BBDD30) LightWatcher = LightWatcher (24BBE0D0) spawntime = 15.033334117383 Physics = Physics (24BBDF90) replica = table: 4642F3B8 event_listeners = table: 4642F6D8 components = table: 4642F4D0 GUID = 101512 name = follower lower_name = follower cmp = table: 46432A68 ../mods/Lionel for DST/scripts/prefabs/picolo_lionel.lua:88 in (field) fn (Lua) <43-110> My chester clone has no health component, no combat component and doesn't morph. So a lot of things weren't necessary and there is no "open" or "closed eye" equivalent. For convenience, I attached all the relevant files bone_lionel.lua is the equivalent of chester_eyebone.lua picolo_lionel.lua is the equivalent of chester.lua Edited March 15, 2017 by Thibooms Link to comment https://forums.kleientertainment.com/forums/topic/76104-crash-on-load-up-with-chester-clone-when-playing-with-friends-or-having-caves-on/ Share on other sites More sharing options...
Fancy_Fox_Pers Posted March 17, 2017 Author Share Posted March 17, 2017 (edited) If you don't mind, allow me to bring this thread back up a bit in case someone knows how to help I've been trying to print a lot but it's not really getting me any further :/ Spoiler Edit: I do know this: it has something to do with the chester clone, not the eyebone clone. The same error comes up when letting another character craft the chester clone, so that's how I found that out Edit 2: I am getting really confused. Adding the health and combat component give the same error. "Attempt to index field 'health'/'combat'. I am missing something here Here's are someupdated files just in case. client_log.txt picolo_lionel.lua bone_lionel.lua (shouldn't be necessary, just in case) So apparently I was missing Spoiler inst.entity:SetPristine() if not TheWorld.ismastersim then return inst end But now I get the following crash due to something about the container widget (when "opening" the creature). Keep in mind that the game doesn't crash when playing alone on a non-caves server Spoiler [string "scripts/widgets/containerwidget.lua"]:29: attempt to index local 'widget' (a nil value) LUA ERROR stack traceback: scripts/widgets/containerwidget.lua:29 in (method) old_container_open (Lua) <24-132> self = callbacks = table: 13E97EB0 slotsperrow = 3 inst = 101546 - (valid:true) focus = false children = table: 13E97DE8 focus_flow_args = table: 13E983B0 focus_target = false isopen = false utilslots = table: 13E8C5D8 owner = 100384 - lionel (valid:true) open = false can_fade_alpha = true inv = table: 13E98428 parent = name = Container bgimage = Image - : focus_flow = table: 13E98248 enabled = true bganim = UIAnim shown = true container = 101523 - picolo_lionel (valid:true) doer = 100384 - lionel (valid:true) widget = nil ../mods/workshop-365119238/modmain_segments/containerwidgetfunction.lua:21 in (method) Open (Lua) <20-60> self = callbacks = table: 13E97EB0 slotsperrow = 3 inst = 101546 - (valid:true) focus = false children = table: 13E97DE8 focus_flow_args = table: 13E983B0 focus_target = false isopen = false utilslots = table: 13E8C5D8 owner = 100384 - lionel (valid:true) open = false can_fade_alpha = true inv = table: 13E98428 parent = name = Container bgimage = Image - : focus_flow = table: 13E98248 enabled = true bganim = UIAnim shown = true container = 101523 - picolo_lionel (valid:true) doer = 100384 - lionel (valid:true) scripts/screens/playerhud.lua:221 in (upvalue) OpenContainerWidget (Lua) <218-223> self = fireover = FireOver beefbloodover = BeefBloodOver callbacks = table: 3F7F6EC8 overlayroot = overlays fumeover = FumeOver controls = Controls eventannouncer = EventAnnouncer inst = 100385 - (valid:true) focus = true handlers = table: 3F7F7760 children = table: 3F7F7080 heatover = HeatOver focus_flow_args = table: 3F7F7350 focus_target = false clouds = UIAnim vig = UIAnim under_root = under_root owner = 100384 - lionel (valid:true) can_fade_alpha = true iceover = IceOver root = root name = HUD enabled = true focus_flow = table: 3F7F73C8 parent = screenroot shown = true bloodover = BloodOver container = 101523 - picolo_lionel (valid:true) side = false containerwidget = Container scripts/screens/playerhud.lua:231 in (method) OpenContainer (Lua) <225-233> self = fireover = FireOver beefbloodover = BeefBloodOver callbacks = table: 3F7F6EC8 overlayroot = overlays fumeover = FumeOver controls = Controls eventannouncer = EventAnnouncer inst = 100385 - (valid:true) focus = true handlers = table: 3F7F7760 children = table: 3F7F7080 heatover = HeatOver focus_flow_args = table: 3F7F7350 focus_target = false clouds = UIAnim vig = UIAnim under_root = under_root owner = 100384 - lionel (valid:true) can_fade_alpha = true iceover = IceOver root = root name = HUD enabled = true focus_flow = table: 3F7F73C8 parent = screenroot shown = true bloodover = BloodOver container = 101523 - picolo_lionel (valid:true) side = false scripts/components/container_replica.lua:277 in (method) Open (Lua) <263-284> self = ondetachclassified = function - scripts/components/container_replica.lua:96 acceptsstacks = true _numslots = 0 _isopen = false issidewidget = false _cannotbeopened = net_bool (5E6F8C10) classified = 101545 - container_classified (valid:true) inst = 101523 - picolo_lionel (valid:true) doer = 100384 - lionel (valid:true) scripts/components/container_replica.lua:89 in (field) fn (Lua) <87-91> inst = 101523 - picolo_lionel (valid:true) self = on [00:01:13]: [string "scripts/widgets/containerwidget.lua"]:29: attempt to index local 'widget' (a nil value) LUA ERROR stack traceback: scripts/widgets/containerwidget.lua:29 in (method) old_container_open (Lua) <24-132> ../mods/workshop-365119238/modmain_segments/containerwidgetfunction.lua:21 in (method) Open (Lua) <20-60> scripts/screens/playerhud.lua:221 in (upvalue) OpenContainerWidget (Lua) <218-223> scripts/screens/playerhud.lua:231 in (method) OpenContainer (Lua) <225-233> scripts/components/container_replica.lua:277 in (method) Open (Lua) <263-284> scripts/components/container_replica.lua:89 in (field) fn (Lua) <87-91> scripts/scheduler.lua:177 in (method) OnTick (Lua) <155-207> scripts/scheduler.lua:371 in (global) RunScheduler (Lua) <369-377> scripts/update.lua:170 in () ? (Lua) <149-228> Edited March 17, 2017 by Thibooms Link to comment https://forums.kleientertainment.com/forums/topic/76104-crash-on-load-up-with-chester-clone-when-playing-with-friends-or-having-caves-on/#findComment-885619 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now