Don't Starve Together

Don't Starve Together

M. louis
This topic has been locked
Myth 23 Oct, 2022 @ 5:41am
作者大大,我该在这里反馈崩溃问题还是去原作者那里反馈?
收刀状态,一技能(R键)触发两次斩击,在打某些怪时有几率崩溃,报错如下:

[string "../mods/workshop-2769426717/scripts/manutsa..."]:716: attempt to index field 'target' (a nil value)
LUA ERROR stack traceback:
scripts/stategraph.lua:642 in (method) Update (Lua) <634-662>
scripts/stategraph.lua:128 in (method) Update (Lua) <109-146>
scripts/update.lua:283 in () ? (Lua) <219-293>
< >
Showing 1-15 of 16 comments
Myth 23 Oct, 2022 @ 7:08am 
另一个崩溃,打龙蝇时报错如下:

[string "../mods/workshop-2769426717/scripts/prefabs..."]:36: attempt to index local 'owner' (a nil value)
LUA ERROR stack traceback:
scripts/components/weapon.lua:93 in (upvalue) original_OnAttack (Lua) <91-104>
../mods/workshop-2561335747/modmain.lua:508 in (method) OnAttack (Lua) <475-509>
scripts/components/combat.lua:1032 in (method) DoAttack (Lua) <953-1050>
scripts/actions.lua:1328 in (field) fn (Lua) <1311-1330>
scripts/bufferedaction.lua:25 in (method) Do (Lua) <21-35>
scripts/entityscript.lua:1457 in (method) PerformBufferedAction (Lua) <1444-1468>
../mods/workshop-2769426717/scripts/style/katanastyle.lua:337 in (field) fn (Lua) <336-340>
scripts/stategraph.lua:603 in (method) UpdateState (Lua) <571-615>
scripts/stategraph.lua:642 in (method) Update (Lua) <634-662>
scripts/stategraph.lua:128 in (method) Update (Lua) <109-146>
scripts/update.lua:283 in () ? (Lua) <219-293>
富萝莉  [developer] 24 Oct, 2022 @ 5:44am 
我跟作者反馈
Myth 24 Oct, 2022 @ 9:38pm 
今天又触发一个崩溃,用一技能(R键)打坟墓挖出来的幽灵时,报错如下:
看起来像是偶发性的,一技能(R键)打小怪,收刀时使用,会先拔刀打一下再连续砍两次,往往技能没砍完小怪就死了,个人猜测是引用信息(小怪这个实体对象)偶发性获取不到,导致空值nil,而没有相应的处理进而导致崩溃。
[string "../mods/workshop-2769426717/scripts/manutsaweeskill2.lua"]:93: bad argument #2 to 'FindEntities' (number expected, got nil)
LUA ERROR stack traceback:
@../mods/workshop-2769426717/scripts/manutsaweeskill2.lua:443 in (field) fn (Lua) 441-446>
@scripts/scheduler.lua:186 in (method) OnTick (Lua) <164-216>
self =
running = table:0x62822280
waitingfortick = table 0x555fe2e0
hibernating = table: 0x76dfe250
富萝莉  [developer] 25 Oct, 2022 @ 2:07am 
你再测试一下,在某一次更新中我可能忽略了一些文件。导致一些错误。
Myth 25 Oct, 2022 @ 5:04am 
好的,辛苦了!我跟小伙伴们去测试一下。:steamhappy:
Myth 25 Oct, 2022 @ 9:52am 
打龙蝇,被震掉武器后直接崩溃

[string "../mods/workshop-2769426717/scripts/prefabs..."]:32: attempt to index local 'owner' (a nil value)
LUA ERROR stack traceback:
scripts/components/weapon.lua:93 in (upvalue) original_OnAttack (Lua) <91-104>
../mods/workshop-2561335747/modmain.lua:508 in (method) OnAttack (Lua) <475-509>
scripts/components/combat.lua:1032 in (method) DoAttack (Lua) <953-1050>
scripts/actions.lua:1328 in (field) fn (Lua) <1311-1330>
scripts/bufferedaction.lua:25 in (method) Do (Lua) <21-35>
scripts/entityscript.lua:1457 in (method) PerformBufferedAction (Lua) <1444-1468>
../mods/workshop-2769426717/scripts/style/katanastyle.lua:337 in (field) fn (Lua) <336-340>
scripts/stategraph.lua:603 in (method) UpdateState (Lua) <571-615>
scripts/stategraph.lua:642 in (method) Update (Lua) <634-662>
scripts/stategraph.lua:128 in (method) Update (Lua) <109-146>
scripts/update.lua:283 in () ? (Lua) <219-293>
Myth 26 Oct, 2022 @ 4:58pm 
[string "../mods/workshop-2769426717/scripts/prefabs..."]:212: attempt to index local 'hitfx' (a nil value)
LUA ERROR stack traceback:
scripts/components/combat.lua:984 in (method) DoAttack (Lua) <953-1050>
self =
hiteffectsymbol = torso
lastdoattacktime = 6250.1669926383
GetGiveUpString = function - scripts/prefabs/player_common.lua:110
defaultdamage = 10
lasttargetGUID = 173572
nextbattlecrytime = 6256.8347237939
CanExtinguishTarget = function - ../mods/workshop-1909182187/scripts/medal_hook.lua:2629
forcefacing = true
areahitdisabled = true
ShareTarget = function - ../mods/workshop-1991746508/main/components.lua:1
inst = 166919 - manutsawee (valid:true)
laststartattacktime = 6250.4003259838
SetRetargetFunction = function - ../mods/workshop-1991746508/main/components.lua:1
GetAttacked = function - ../mods/workshop-2769426717/scripts/manutsaweeskill2.lua:122
hitrange = 2
lastwasattackedbytargettime = 0
damagemultiplier = 1.25
lastwasattackedtime = 5296.9002762549
keeptargettimeout = 0
StartAttack = function - ../mods/workshop-2769426717/scripts/manutsaweeskill2.lua:487
pvp_damagemod = 0.5
externaldamagetakenmultipliers = table: 0x5a526950
SetTarget = function - ../mods/workshop-1207269058/modmain.lua:1
lastattacker = 168154 - bee (valid:true)
CalcDamage = function - ../mods/workshop-2867435690/main/07.Black_Gold.lua:269
externaldamagemultipliers = table: 0x714108c0
losetargetcallback = function - scripts/components/combat.lua:307
ab_wavepoint_damage = 15.8
battlecryenabled = true
_ = table: 0x5144c600
GetBattleCryString = function - scripts/prefabs/player_common.lua:121
targ = 173572 - pigelitefighter3 (valid:true)
weapon = 167471 - traveler_sword_b(LIMBO) (valid:true)
projectile = nil
stimuli = nil
instancemult = nil
instrangeoverride = nil
instpos = nil
scripts/actions.lua:1328 in (field) fn (Lua) <1311-1330>
act = 攻击 173572 - pigelitefighter3 (valid:true)
scripts/bufferedaction.lua:25 in (method) Do (Lua) <21-35>
self (valid:true) =
forced = true
action = table: 0xd995600
doer = 166919 - manutsawee (valid:true)
onfail = table: 0x8ff27510
doerownsobject = false
rotation = 0
target = 173572 - pigelitefighter3 (valid:true)
_predictpos = true
onsuccess = table: 0x8ff274c0
options = table: 0x8e442cc0
pos = 753.76, 47.76 on nil
scripts/entityscript.lua:1457 in (method) PerformBufferedAction (Lua) <1444-1468>
self (valid:true) =
currentmessiahamount = net_shortint (0x551916c0)
currenta_a55amount = net_shortint (0x4427c220)
ab_mingyun = net_float (0xba6198a0)
checka_a6 = net_shortint (0x54f48d00)
SetCameraDistance = function - scripts/prefabs/player_common.lua:1393
currenta_a35amount = net_shortint (0x4ae5d950)
currenta_12amount = net_shortint (0xb98f6160)
currentcookenthusiastamount = net_shortint (0x386f2b90)
OldOnSave = function - local _G = GLOBAL
Myth 26 Oct, 2022 @ 6:15pm 
崩溃的略有些频繁,打寄居蟹必崩
[string "../mods/workshop-2769426717/scripts/prefabs..."]:212: attempt to index local 'hitfx' (a nil value)
LUA ERROR stack traceback:
scripts/components/combat.lua:984 in (method) DoAttack (Lua) <953-1050>
scripts/actions.lua:1328 in (field) fn (Lua) <1311-1330>
scripts/bufferedaction.lua:25 in (method) Do (Lua) <21-35>
scripts/entityscript.lua:1457 in (method) PerformBufferedAction (Lua) <1444-1468>
../mods/workshop-2769426717/scripts/style/katanastyle.lua:106 in (field) fn (Lua) <105-109>
scripts/stategraph.lua:603 in (method) UpdateState (Lua) <571-615>
scripts/stategraph.lua:642 in (method) Update (Lua) <634-662>
scripts/stategraph.lua:128 in (method) Update (Lua) <109-146>
scripts/update.lua:283 in () ? (Lua) <219-293>
富萝莉  [developer] 26 Oct, 2022 @ 7:03pm 
淦,你试试原版会不会崩溃,不需要重新开档
Night 26 Oct, 2022 @ 7:36pm 
大大我刚刚打暗影织影者和无眼鹿都会崩溃,不过这好像是概率性的,因为我第一次打无眼鹿崩溃但是重进去后再打就正常了,但是暗影织影者每次都会崩溃
花生 26 Oct, 2022 @ 8:27pm 
#[string "../mods/workshop-2769426717/scripts/prefabs..."]:212: attempt to index local 'hitfx' (a nil value)
#LUA ERROR stack traceback:
@scripts/entityscript.lua:1154 in (method) PushEvent (Lua) <1141-1168>
self (valid:true) =
DynamicShadow = DynamicShadow (000000002E6297E0)
EnableLoadingProtection = function - scripts/prefabs/player_common.lua:977
inlimbo = false
GetMoistureRateScale = function - scripts/prefabs/player_common.lua:246
SetCameraDistance = function - scripts/prefabs/player_common.lua:1393
CanSeePointOnMiniMap = function - scripts/prefabs/player_common_extensions.lua:805
skeleton_prefab = skeleton_player
player_classified = 111729 - player_classified (valid:true)
playercolour = table: 000000003F633D20
MakeGenericCommander = function - scripts/prefabs/player_common_extensions.lua:816
AnimState = AnimState (000000002E628D30)
IsActing = function - scripts/prefabs/player_common_extensions.lua:857
Light = Light (000000002E629BD0)
_isrezattuned = false
OnRemoveEntity = function - scripts/prefabs/player_common.lua:1018
pendingtasks = table: 0000000030FCE2B0
ApplySkinOverrides = function - scripts/prefabs/player_common.lua:1532
ResetMinimapOffset = function - scripts/prefabs/player_common.lua:1387
sg = sg="wilson", state="mkatana", time=0.27, tags = "autopredict,abouttoattack,notalking,attack,"
IsHUDVisible = function - scripts/prefabs/player_common.lua:1365
ApplyScale = function - scripts/prefabs/player_common.lua:1470
SetGhostMode = function - scripts/prefabs/player_common.lua:832
ShowActions = function - scripts/prefabs/player_common.lua:1369
SwapAllCharacteristics = function - scripts/prefabs/player_common.lua:1908
SetGymStartState = function - scripts/prefabs/player_common.lua:47
Transform = Transform (000000002E628A30)
prefab = manutsawee
Physics = Physics (000000002E62AB00)
actionreplica = table: 0000000030FCCE60
event_listening = table: 0000000030FCE300
actioncomponents = table: 0000000030FCCC30
hairtype = 5
lower_components_shadow = table: 0000000030FCBF60
GetMaxMoisture = function - scripts/prefabs/player_common.lua:236
_serverpauseddirtyfn = function - scripts/prefabs/player_common.lua:896
wallupdatecomponents = table: 000000003F51AEE0
CanUseTouchStone = function - scripts/prefabs/player_common.lua:186
updatecomponents = table: 0000000030FB5300
YOTB_issetunlocked = function - scripts/prefabs/player_common.lua:77
ShakeCamera = function - scripts/prefabs/player_common.lua:1413
OnDespawn = function - scripts/prefabs/player_common.lua:1260
persists = false
name = 花生
MiniMapEntity = MiniMapEntity (000000002E628D60)
IsFreezing = function - scripts/prefabs/player_common.lua:206
_OnLoad = function - ../mods/workshop-2769426717/scripts/prefabs/manutsawee.lua:243
OnLoad = function - scripts/prefabs/player_common.lua:1120
IsOverheating = function - scripts/prefabs/player_common.lua:216
SaveForReroll = function - scripts/prefabs/player_common.lua:1544
replica = table: 0000000030FCCD70
OnSleepIn = function - scripts/prefabs/player_common.lua:1210
ChangeToMonkey = function - scripts/prefabs/player_common.lua:1927
GetTemperature = function - scripts/prefabs/player_common.lua:196
GUID = 111727
ShowPopUp = function - scripts/prefabs/player_common.lua:1381
ghostenabled = true
_underleafcanopy = net_bool (000000003F8E6CC0)
EnableMovementPrediction = function - scripts/prefabs/player_common.lua:770
worldstatewatching = table: 0000000030FB17A0
SetCameraZoomed = function - scripts/prefabs/player_common.lua:1399
IsNearDanger = function - scripts/prefabs/player_common.lua:16
kenjutsuexp = 1191
CanSeeTileOnMiniMap = function - scrip
[00:34:21]: [Steam] Game Connection terminated (2130706433|10998)
[00:34:21]: [Shard] Stopping shard mode
[00:34:21]: [Workshop] CancelDownloads for all pending downloads
[00:34:23]: VisitURL() Failed protocol check - Invalid URL provided.
[00:34:36]: VisitURL() Failed protocol check - Invalid URL provided.
[00:34:37]: VisitURL() Failed protocol check - Invalid URL provided.
[00:34:37]: VisitURL() Failed protocol check - Invalid URL provided.
[00:34:40]: VisitURL() Failed protocol check - Invalid URL provided.
[00:34:41]: VisitURL() Failed protocol check - Invalid URL provided.
[00:36:55]: VisitURL() Failed protocol check - Invalid URL provided.
[00:37:53]: VisitURL() Failed protocol check - Invalid URL provided.
[00:37:54]: VisitURL() Failed protocol check - Invalid URL provided.
[00:37:54]: VisitURL() Failed protocol check - Invalid URL provided.
[00:37:54]: VisitURL() Failed protocol check - Invalid URL provided.
[00:37:54]: VisitURL() Failed protocol check - Invalid URL provided.
花生 26 Oct, 2022 @ 8:28pm 
打齿轮犀牛的时候崩溃了 麻烦大佬看看
花生 26 Oct, 2022 @ 8:32pm 
==== It was a server crash, but the LUA stack traceback was sent to this client by BugTracker Mod ====

#[string "../mods/workshop-2311790861/scripts/prefabs..."]:212: attempt to index local 'hitfx' (a nil value)
#LUA ERROR stack traceback:
@scripts/entityscript.lua:1154 in (method) PushEvent (Lua) <1141-1168>
self (valid:true) =
DynamicShadow = DynamicShadow (000000001AC50010)
EnableLoadingProtection = function - scripts/prefabs/player_common.lua:977
inlimbo = false
GetMoistureRateScale = function - scripts/prefabs/player_common.lua:246
SetCameraDistance = function - scripts/prefabs/player_common.lua:1393
CanSeePointOnMiniMap = function - scripts/prefabs/player_common_extensions.lua:805
skeleton_prefab = skeleton_player
player_classified = 111729 - player_classified (valid:true)
playercolour = table: 000000003876DFF0
MakeGenericCommander = function - scripts/prefabs/player_common_extensions.lua:816
AnimState = AnimState (000000001AC4FD40)
IsActing = function - scripts/prefabs/player_common_extensions.lua:857
Light = Light (000000001AC50040)
_isrezattuned = false
OnRemoveEntity = function - scripts/prefabs/player_common.lua:1018
pendingtasks = table: 000000000A2DCE70
ApplySkinOverrides = function - scripts/prefabs/player_common.lua:1532
ResetMinimapOffset = function - scripts/prefabs/player_common.lua:1387
sg = sg="wilson", state="mkatana", time=0.27, tags = "attack,abouttoattack,notalking,autopredict,"
IsHUDVisible = function - scripts/prefabs/player_common.lua:1365
ApplyScale = function - scripts/prefabs/player_common.lua:1470
SetGhostMode = function - scripts/prefabs/player_common.lua:832
ShowActions = function - scripts/prefabs/player_common.lua:1369
Physics = Physics (000000001AC50A30)
SetGymStartState = function - scripts/prefabs/player_common.lua:47
Transform = Transform (000000001AC4FAD0)
SwapAllCharacteristics = function - scripts/prefabs/player_common.lua:1908
prefab = manutsawee
actionreplica = table: 000000000A2DE040
event_listening = table: 000000000A2DDF00
actioncomponents = table: 000000000A2DC9C0
hairtype = 5
lower_components_shadow = table: 000000000A2DC0B0
GetMaxMoisture = function - scripts/prefabs/player_common.lua:236
_serverpauseddirtyfn = function - scripts/prefabs/player_common.lua:896
wallupdatecomponents = table: 0000000009A796E0
CanUseTouchStone = function - scripts/prefabs/player_common.lua:186
updatecomponents = table: 000000000A2DFDA0
YOTB_issetunlocked = function - scripts/prefabs/player_common.lua:77
ShakeCamera = function - scripts/prefabs/player_common.lua:1413
OnDespawn = function - scripts/prefabs/player_common.lua:1260
persists = false
name = 花生
MiniMapEntity = MiniMapEntity (000000001AC4FBF0)
IsFreezing = function - scripts/prefabs/player_common.lua:206
_OnLoad = function - ../mods/workshop-2311790861/scripts/prefabs/manutsawee.lua:243
OnLoad = function - scripts/prefabs/player_common.lua:1120
IsOverheating = function - scripts/prefabs/player_common.lua:216
SaveForReroll = function - scripts/prefabs/player_common.lua:1544
replica = table: 000000000A2DCC40
OnSleepIn = function - scripts/prefabs/player_common.lua:1210
ChangeToMonkey = function - scripts/prefabs/player_common.lua:1927
GetTemperature = function - scripts/prefabs/player_common.lua:196
GUID = 111727
ShowPopUp = function - scripts/prefabs/player_common.lua:1381
canuseskill = true
ghostenabled = true
_underleafcanopy = net_bool (000000002EEB9620)
EnableMovementPrediction = function - scripts/prefabs/player_common.lua:770
worldstatewatching = table: 000000000A2DEEF0
SetCameraZoomed = function - scripts/prefabs/player_common.lua:1399
IsNearDanger = function - scripts/prefabs/player_common.lua:16
kenjutsuexp = 1003
CanSeeTileOnM
[00:02:50]: [Steam] Game Connection terminated (2130706433|10998)
[00:02:50]: [Shard] Stopping shard mode
[00:02:50]: [Workshop] CancelDownloads for all pending downloads
[00:02:52]: VisitURL() Failed protocol check - Invalid URL provided.
试了下 开原版也寄了
用武器平a有几率直接断掉连接家人
xxxHolic 4 Dec, 2022 @ 9:20am 
与永不妥协兼容问题:似乎解决了,我把actionHandler改成了永不妥协的格式,然后白毛的技能和跳劈哥的跳劈都可以运行。简单来说,就是把attackkatanastyle.lua 改成:



--------------------------------------------WILSON SG ACTIONHANDLER FOR ATTACK OVERRIDE---------------------------------------------------------------------------
require = GLOBAL.require

RECIPETABS = GLOBAL.RECIPETABS
Recipe = GLOBAL.Recipe
GIngredient = GLOBAL.Ingredient
TECH = GLOBAL.TECH

FRAMES = GLOBAL.FRAMES
ACTIONS = GLOBAL.ACTIONS
State = GLOBAL.State
EventHandler = GLOBAL.EventHandler
ActionHandler = GLOBAL.ActionHandler
TimeEvent = GLOBAL.TimeEvent

EQUIPSLOTS = GLOBAL.EQUIPSLOTS

local originalAttack
local originalClientAttack
local SGWilson = require "stategraphs/SGwilson"
local SGWilsonClient = require "stategraphs/SGwilson_client"


for k1, v1 in pairs(SGWilson.actionhandlers) do
if SGWilson.actionhandlers[k1]["action"]["id"] == "ATTACK" then
originalAttack = SGWilson.actionhandlers[k1]["deststate"]
end
end

for k1, v1 in pairs(SGWilsonClient.actionhandlers) do
if SGWilsonClient.actionhandlers[k1]["action"]["id"] == "ATTACK" then
originalClientAttack = SGWilsonClient.actionhandlers[k1]["deststate"]
end
end


local function ManutsaweeAttack(inst, action)
inst.sg.mem.localchainattack = not action.forced or nil
local weapon = inst.components.inventory:GetEquippedItem(EQUIPSLOTS.HANDS) or nil
if weapon and weapon:HasTag("mkatana") and not inst.components.health:IsDead() and not inst.sg:HasStateTag("attack") and inst.components.combat ~= nil then
return "mkatana"
elseif weapon and weapon:HasTag("Iai") and not inst.components.health:IsDead() and not inst.sg:HasStateTag("attack") and inst.components.combat ~= nil then
return "Iai"
elseif weapon and weapon:HasTag("yari") and not inst.components.health:IsDead() and not inst.sg:HasStateTag("attack") and inst.components.combat ~= nil then
return "yari"
else
return originalAttack(inst, action)
end
end


local function ClientManutsaweeAttack(inst, action)
local weapon = inst.replica.inventory:GetEquippedItem(EQUIPSLOTS.HANDS) or nil
if weapon and weapon:HasTag("mkatana") and not inst.sg:HasStateTag("attack") and inst.replica.combat then
return "mkatana"
elseif weapon and weapon:HasTag("Iai") and not inst.sg:HasStateTag("attack") and inst.replica.combat then
return "Iai"
elseif weapon and weapon:HasTag("yari") and not inst.sg:HasStateTag("attack") and inst.replica.combat then
return "yari"
else
return originalClientAttack(inst, action)
end
end

AddStategraphActionHandler("wilson", ActionHandler(GLOBAL.ACTIONS.ATTACK, ManutsaweeAttack))
GLOBAL.package.loaded["stategraphs/SGwilson"] = nil

AddStategraphActionHandler("wilson_client", ActionHandler(GLOBAL.ACTIONS.ATTACK, ClientManutsaweeAttack))
GLOBAL.package.loaded["stategraphs/SGwilson_client"] = nil
< >
Showing 1-15 of 16 comments
Per page: 1530 50