SRP icon indicating copy to clipboard operation
SRP copied to clipboard

Log spam with open xray. (fix included)

Open LethalManBoob opened this issue 4 years ago • 0 comments
trafficstars

! [LUA] CharacterCommunity available only for InventoryOwner stack traceback: ...mmon\stalker clear sky\gamedata\scripts\xr_danger.script:72: in function <...mmon\stalker clear sky\gamedata\scripts\xr_danger.script:38>

That looks like a benign error raised by danger_obj:character_community() when danger_obj can't be cast to a CInventoryOwner, which I presume is true of any non-creature entity, e.g. a grenade or sound. You might be able to get rid of it by modifying line 72 of xr_danger.script to be: if IsStalker(danger_obj) and danger_obj:character_community() == self.faction then

edit: credit to github user Decane from openxray for finding this

LethalManBoob avatar Apr 09 '21 17:04 LethalManBoob