Don't Starve Together

Don't Starve Together

Display Attack Range
舰月如阳 Nov 13, 2024 @ 3:57am
地下遇到 【巨大洞穴蠕虫 Great Depths Worm "worm_boss"】时游戏崩溃 (bug)
地下遇到 【巨大洞穴蠕虫 Great Depths Worm "worm_boss"】时游戏崩溃
错误日志

#[string "../mods/workshop-2078243581/modmain.lua"]:69: attempt to index field 'sg' (a nil value)
#LUA ERROR stack traceback:
@../mods/workshop-2078243581/modmain.lua:146 in (method) TryRetarget (Lua) <145-148>
self =
hiteffectsymbol = marker
defaultdamage = 14
keeptargetfn = function - scripts/prefabs/worm_boss.lua:90
forcefacing = true
inst = 110631 - worm_boss (valid:true)
rangedisplay = 110633 - display_attack_range (valid:true)
retargetperiod = 1
hitrange = 3
SetTarget = function - ../mods/workshop-2078243581/modmain.lua:95
targetfn = function - scripts/prefabs/worm_boss.lua:75
lastwasattackedbytargettime = 82.8666709885
TryRetarget = function - ../mods/workshop-2078243581/modmain.lua:145
lastwasattackedtime = 0
keeptargettimeout = 0.033333282917738
transfertargetcallback = function - scripts/components/combat.lua:78
TryAttack = function - ../mods/workshop-2078243581/modmain.lua:138
externaldamagetakenmultipliers = table: 000000000E03DC50
externaldamagemultipliers = table: 000000000E03DB10
retargettask = PERIODIC 110631: 1.000000
DoAttack = function - ../mods/workshop-2078243581/modmain.lua:130
GiveUp = function - ../mods/workshop-2078243581/modmain.lua:110
losetargetcallback = function - scripts/components/combat.lua:77
CanAttack = function - ../mods/workshop-2078243581/modmain.lua:119
battlecryenabled = true
_ = table: 000000000E03C990
laststartattacktime = 0
arg = nil
@scripts/components/combat.lua:226 in (field) fn (Lua) <225-227>
inst = 110631 - worm_boss (valid:true)
self =
hiteffectsymbol = marker
defaultdamage = 14
keeptargetfn = function - scripts/prefabs/worm_boss.lua:90
forcefacing = true
inst = 110631 - worm_boss (valid:true)
rangedisplay = 110633 - display_attack_range (valid:true)
retargetperiod = 1
hitrange = 3
SetTarget = function - ../mods/workshop-2078243581/modmain.lua:95
targetfn = function - scripts/prefabs/worm_boss.lua:75
lastwasattackedbytargettime = 82.8666709885
TryRetarget = function - ../mods/workshop-2078243581/modmain.lua:145
lastwasattackedtime = 0
keeptargettimeout = 0.033333282917738
transfertargetcallback = function - scripts/components/combat.lua:78
TryAttack = function - ../mods/workshop-2078243581/modmain.lua:138
externaldamagetakenmultipliers = table: 000000000E03DC50
externaldamagemultipliers = table: 000000000E03DB10
retargettask = PERIODIC 110631: 1.000000
DoAttack = function - ../mods/workshop-2078243581/modmain.lua:130
GiveUp = function - ../mods/workshop-2078243581/modmain.lua:110
losetargetcallback = function - scripts/components/combat.lua:77
CanAttack = function - ../mods/workshop-2078243581/modmain.lua:119
battlecryenabled = true
_ = table: 000000000E03C990
laststartattacktime = 0
@scripts/scheduler.lua:186 in (method) OnTick (Lua) <164-216>
self =
running = table: 000000000AA6E520
waitingfortick = table: 000000000AA6E570
hibernating = table: 000000000AA6E7A0
tasks = table: 000000000AA6EBB0
waking = table: 000000003716A300
attime = table: 000000000AA6E610
tick = 2516
k = PERIODIC 110631: 1.000000
v = true
already_dead = nil
@scripts/scheduler.lua:409 in (global) RunScheduler (Lua) <407-415>
tick = 2516
@scripts/update.lua:240 in () ? (Lua) <224-298>
dt = 0.033333335071802
tick = 2517
i = 2516

============= Envinfo ==============
Timestamp: 1731498836
Platform: WIN32
GameVersion: 639083
InGamePlay: true

IsServer: true
IsDedicated: true
TheWorld: 100039 - world


============= Players ==============
ID: KU_4-eAnSAK Nickname: 文阑鱼干 Prefab: wilson

============ DebugTrace ============
[Level 1]
source: ../mods/workshop-2078243581/modmain.lua: Line 69 <67-91>
name: AdjustRangeDisplay
namewhat: upvalue
func: function: 000000000E5127A0
Local(s):
self: <table> table: 000000000E03C7B0
showAttack: <nil> nil
(*temporary): <nil> nil
(*temporary): <nil> nil
(*temporary): <nil> nil
(*temporary): <nil> nil
(*temporary): <nil> nil
(*temporary): <string> attempt to index field 'sg' (a nil value)
Upvalue(s):
rangeScale: <function> function: 000000001772BE70
setColor: <function> function: 000000001772C9E0
checkStates: <function> function: 000000001772C1A0
RemoveRangeDisplay: <function> function: 000000001772CB00
[Level 2]
source: ../mods/workshop-2078243581/modmain.lua: Line 146 <145-148>
name: TryRetarget
namewhat: method
func: function: 0000000038B71CB0
Local(s):
self: <table> table: 000000000E03C7B0
arg: <nil> nil
Upvalue(s):
AdjustRangeDisplay: <function> function: 000000000E5127A0
OldTryRetarget: <function> function: 00000000361106B0
[Level 3]
source: scripts/components/combat.lua: Line 226 <225-227>
name: fn
namewhat: field
func: function: 0000000036110140
Local(s):
inst: <table> 110631 - worm_boss
self: <table> table: 000000000E03C7B0
[Level 4]
source: scripts/scheduler.lua: Line 186 <164-216>
name: OnTick
namewhat: method
func: function: 000000000EC8B380
Local(s):
self: <table> Running Tasks: 0/0
tick: <number> 2516
(for generator): <function> function: 000000000E85A510
(for state): <table> table: 00000000122A3870
(for control): <table> PERIODIC 110631: 1.000000
k: <table> PERIODIC 110631: 1.000000
v: <boolean> true
already_dead: <nil> nil
Upvalue(s):
listrecycler: <table> table: 000000000AA6E890
[Level 5]
source: scripts/scheduler.lua: Line 409 <407-415>
name: RunScheduler
namewhat: global
func: function: 000000000FC10590
Local(s):
tick: <number> 2516
[Level 6]
source: scripts/update.lua: Line 240 <224-298>
name:
namewhat:
func: function: 000000000F5E5AF0
Local(s):
dt: <number> 0.033333335071802
tick: <number> 2517
(for index): <number> 2516
(for limit): <number> 2517
(for step): <number> 1
i: <number> 2516
Upvalue(s):
last_tick_seen: <number> 2515
StaticComponentUpdates: <table> table: 0000000017626320

============ ServerInfo ============

======== Mod list ========
[MOD] workshop-2427481232 错误追踪 2.0.4
[MOD] workshop-2287303119 Show Me (中文) 0.59.9.5
[MOD] workshop-2078243581 Display Attack Range 1.5

======== Mod config ========
This config list does not contain default values. Only modified values are listed.

[MOD] workshop-2427481232 错误追踪 2.0.4
[MOD] workshop-2287303119 Show Me (中文) 0.59.9.5
[MOD] workshop-2078243581 Display Attack Range 1.5



- END -