Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
[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>
看起来像是偶发性的,一技能(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
[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>
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
[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>
#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.
#[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.
试了下 开原版也寄了
--------------------------------------------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