Jump to content

[Server Crash] - Crash on Inspect action


Maris

Recommended Posts

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

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	endend

And 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 descend

Or, maybe, here:

function Inspectable:SetDescription(desc)    self.description = descend

I bet, you've changed something ;)

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.

×
  • Create New...