Jump to content

When Wurt merms attack tentacles, game crush


KuTxD
  • Fixed

Error from server log
LUA ERROR stack traceback: scripts/components/combat.lua:1028 in (method) CalcAttackRangeSq (Lua) <1027-1030> scripts/brains/mermguardbrain.lua:267 in (field) target_dist_fn (Lua) <260-268> scripts/behaviours/follow.lua:47 in (method) EvaluateDistances (Lua) <39-49> scripts/behaviours/follow.lua:87 in (method) Visit (Lua) <76-157> scripts/behaviourtree.lua:606 in (method) Visit (Lua) <582-638> scripts/behaviourtree.lua:671 in (method) Visit (Lua) <661-690> scripts/behaviourtree.lua:606 in (method) Visit (Lua) <582-638> scripts/behaviourtree.lua:671 in (method) Visit (Lua) <661-690> scripts/behaviourtree.lua:606 in (method) Visit (Lua) <582-638> scripts/behaviourtree.lua:22 in (method) Update (Lua) <20-27> scripts/brain.lua:227 in (method) OnUpdate (Lua) <220-229> scripts/brain.lua:146 in (method) Update (Lua) <106-157> scripts/update.lua:292 in () ? (Lua) <224-298>

We solved the problem by adding in combat.lua new lines of code on 1027 line, so it looks now like this, but i think the problem is with merms. With this changes game dont crush
steamapps\common\Don't Starve Together\data\databundles\scripts\components\combat.lua

function Combat:CalcAttackRangeSq(target)
    local tgt = target or self.target
 
    if tgt == nil or tgt.Transform == nil or not tgt.GetPhysicsRadius then
        return 0
    end
 
    local range = tgt:GetPhysicsRadius(0) + self:GetAttackRange()
    return range * range
end

Steps to Reproduce

Take some merm guardians by Wurt and go to swamp, then attack tentacles, and just wait




User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.


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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...