Jump to content

Abigail.lua


xiaochency
  • Pending
Quote

[07:20:43]: [string "scripts/prefabs/abigail.lua"]:636: attempt to index local 'murder_buff' (a nil value)
LUA ERROR stack traceback:
scripts/prefabs/abigail.lua:636 in (method) DoShadowBurstBuff (Lua) <624-638>
   inst = 113866 - abigail (valid:true)
   stack = 0
   x = -21.50955581665
   y = -2.3847855246117e-08
   z = -9.6537570953369
   fx = 174766 - abigail_shadow_buff_fx (valid:true)
   murder_buff = nil
scripts/prefabs/wendy.lua:250 in (local) fn (Lua) <246-252>
   inst = 113827 - wendy (valid:true)
   data = table: 0x2634fbb0
scripts/entityscript.lua:1298 in (method) PushEvent_Internal (Lua) <1285-1314>
   self (valid:true) =
      _PostActivateHandshakeState_Client = 0
      GetMoistureRateScale = function - scripts/prefabs/player_common.lua:254
      _blackout = net_bool (0xb417000)
      CanSeePointOnMiniMap = function - scripts/prefabs/player_common_extensions.lua:899
      skeleton_prefab = skeleton_player
      EnableBoatCamera = function - scripts/prefabs/player_common.lua:934
      MakeGenericCommander = function - scripts/prefabs/player_common_extensions.lua:920
      IsOverheating = function - scripts/prefabs/player_common.lua:224
      IsActing = function - scripts/prefabs/player_common_extensions.lua:961
      Light = Light (0x101fb630)
      ApplySkinOverrides = function - scripts/prefabs/player_common.lua:1722
      ResetMinimapOffset = function - scripts/prefabs/player_common.lua:1530
      monkeyhands = true
      ApplyScale = function - scripts/prefabs/player_common.lua:1641
      SetGhostMode = function - scripts/prefabs/player_common.lua:943
      ShowActions = function - scripts/prefabs/player_common.lua:1506
      OnWakeUp = function - scripts/prefabs/player_common.lua:1370
      Transform = Transform (0x2167b0d0)
      actionreplica = table: 0xb905800
      event_listening = table: 0x17d77a50
      actioncomponents = table: 0xe577730
      SwapAllCharacteristics = function - scripts/prefabs/player_common.lua:2225
      prefab = wendy
      updatecomponents = table: 0x12a79890
      YOTB_issetunlocked = function - scripts/prefabs/player_common.lua:85
      ShakeCamera = function - scripts/prefabs/player_common.lua:1582
      YOTB_isskinunlocked = function - scripts/prefabs/player_common.lua:92
      OnLoadCasino = function - scripts/prefabs/player_common.lua:1240
      MiniMapEntity = MiniMapEntity (0xb5bb660)
      replica = table: 0xa906010
      EnableTargetLocking = function - scripts/prefabs/player_common_extensions.lua:1094
      actions_cur = 0
      OnSleepIn = function - scripts/prefabs/player_common.lua:1342
      _underleafcanopy = net_bool (0xbc12ec0)
      IsChannelCasting = function - scripts/prefabs/player_common.lua:286
      SetCameraZoomed = function - scripts/prefabs/player_common.lua:1568
      TargetForceAttackOnly = function - scripts/prefabs/player_common.lua:51
      CanSeeTileOnMiniMap = function - scripts/prefabs/player_common_extensions.lua:895
      DisableLoadingProtection = function - scripts/prefabs/player_common.lua:1109
      Network = Network (0xd10a050)
      AddCameraExtraDistance = function - scripts/prefabs/player_common.lua:1552
      userid = KU_OK839yZr
      OnPreLoad = function - scripts/prefabs/player_common.lua:1230
      update_oceanfishin_data = net_bool (0xb554560)
      name = < blank >
      _buffsymbol = net_hash (0xf026780)
      ScreenFade = function - scripts/prefabs/player_common.lua:1615
      OnSaveCasino = function - scripts/prefabs/player_common.lua:1188
      growtask = PERIODIC 113827: 0.212151
      ChangeToMonkey = function - scripts/prefabs/player_common.lua:2244
      _PostActivateHandshakeState_Server = 3
      AttachClassified = function - scripts/prefabs/player_common.lua:1127
      isplayer = true
      _sharksoundparam = net_float (0x177674c0)
      puppet_isbusy = net_bool (0xbc671d0)
      tpsmonitor_tps = net_float (0xe8a61b0)
      _serverpauseddirtyfn = function - scripts/prefabs/player_common.lua:1016
      bufferedaction = 谋杀 nil With Inv: 171463 - pondeel (valid:false)
      components = table: 0x2595e250
     
[07:20:43]: [string "scripts/prefabs/abigail.lua"]:636: attempt to index local 'murder_buff' (a nil value)
LUA ERROR stack traceback:
    scripts/prefabs/abigail.lua:636 in (method) DoShadowBurstBuff (Lua) <624-638>
    scripts/prefabs/wendy.lua:250 in (local) fn (Lua) <246-252>
    scripts/entityscript.lua:1298 in (method) PushEvent_Internal (Lua) <1285-1314>
    scripts/entityscript.lua:1317 in (method) PushEvent (Lua) <1316-1318>
    scripts/actions.lua:2973 in (field) fn (Lua) <2957-2997>
    scripts/bufferedaction.lua:26 in (method) Do (Lua) <22-36>
    scripts/entityscript.lua:1671 in (method) PerformBufferedAction (Lua) <1653-1686>
    scripts/stategraphs/SGwilson.lua:7764 in (field) ontimeout (Lua) <7756-7765>
    scripts/stategraph.lua:660 in (method) UpdateState (Lua) <646-690>
    scripts/stategraph.lua:725 in (method) Update (Lua) <718-744>
    scripts/stategraph.lua:128 in (method) Update (Lua) <109-146>
    scripts/update.lua:288 in (upvalue) old_update (Lua) <224-298>
    update:6 in () ? (Lua) <4-11>

 


Steps to Reproduce

在 DoShadowBurstBuff函数中,当 inst:HasDebuff("abigail_murder_buff")返回 false 时,代码会添加 debuff,但随后立即尝试获取并操作这个 debuff,此时可能 debuff 还没有完全初始化。

In the DoShadowBurstBuff function, when inst:HasDebuff("abigail_murder_buff") returns false, the code adds the debuff but immediately attempts to retrieve and manipulate it, at which point the debuff might not have been fully initialized yet.




User Feedback


There are no comments to display.



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...