Maris Posted December 21, 2014 Share Posted December 21, 2014 Bug Submission: Category: Server Crash Issue Title: Crash on Inspect action Issue Description: Crash on Inspect action. Also it's client crash too if client is trying to inspect. Steps to Reproduce: 1) Start a new server 2) Login as Wilson 3) DebugSpawn("abigail") 4) Inspect Abigail Link to comment https://forums.kleientertainment.com/forums/topic/47184-server-crash-crash-on-inspect-action/ Share on other sites More sharing options...
Some1 Posted December 21, 2014 Share Posted December 21, 2014 What do you have in actions.lua here?ACTIONS.LOOKAT.fn = function(act) local targ = act.target or act.invobject if targ and targ.components.inspectable then local desc = targ.components.inspectable:GetDescription(act.doer) -- <--------------------------- DO YOU HAVE THE SAME? if desc then act.doer.components.locomotor:Stop() if act.doer.components.talker then act.doer.components.talker:Say(desc, 2.5, targ.components.inspectable.noanim) end -- <----AND HERE? return true end endendAnd in components/inspectable.lua here?function Inspectable:GetDescription(viewer) if self.inst == viewer then return end local desc = self.description -- for cases where we need to do additional processing before calling GetDescription (i.e. player skeleton) if self.getspecialdescription then desc = self.getspecialdescription(self.inst, viewer) end -- force the call for ghost/wes if desc == nil or viewer:HasTag("playerghost") or viewer.prefab == "wes" then desc = GetDescription(viewer, self.inst, self:GetStatus(viewer)) end if self.inst.prefab == viewer.prefab and not self.inst:HasTag("playerghost") and not viewer:HasTag("playerghost") then desc = GetString(viewer, "DESCRIBE_SAMECHARACTER") end if TheSim:GetLightAtPoint(self.inst.Transform:GetWorldPosition()) < TUNING.DARK_CUTOFF then desc = GetString(viewer, "DESCRIBE_TOODARK") end return descendOr, maybe, here:function Inspectable:SetDescription(desc) self.description = descendI bet, you've changed something Link to comment https://forums.kleientertainment.com/forums/topic/47184-server-crash-crash-on-inspect-action/#findComment-590537 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.