Jump to content

rider_replica crash bug


xiaochency
  • Closed

困扰了我好久的问题,终于知道怎么回事了,论坛里其他朋友也遇到了这个bug

Something that's been bothering me for a long time, and I finally know what's going on,other friends in the forum also encountered this bug,https://forums.kleientertainment.com/klei-bug-tracker/dont-starve-together/rider-replica-r32490/

Quote

[string "scripts/components/rider_replica.lua"]:249: attempt to index field 'inventoryitem' (a nil value)
LUA ERROR stack traceback:
scripts/components/rider_replica.lua:249 in (method) SetSaddle (Lua) <235-256>
   self =
      _isriding = net_bool (000000009E775310)
      classified = 125131 - player_classified (valid:true)
      inst = 125130 - wendy (valid:true)
      _onmounthealthdelta = function - scripts/components/rider_replica.lua:8
   saddle = 131407 - saddle_basic(LIMBO) (valid:false)
   old = nil
scripts/components/rider.lua:18 in (field) ? (Lua) <17-19>
   self =
      inst = 125130 - wendy (valid:true)
      target_mount = 130421 - beefalo(LIMBO) (valid:true)
      _ = table: 000000009E774780
      _onSaddleChanged = function - scripts/components/rider.lua:29
   saddle = 131407 - saddle_basic(LIMBO) (valid:false)
scripts/class.lua:43 in () ? (Lua) <36-45>
   t = table: 000000009E774D20
   k = saddle
   v = 131407 - saddle_basic(LIMBO) (valid:false)
   p = table: 000000009E774AF0
   old = nil
scripts/components/rider.lua:52 in (method) StartTracking (Lua) <48-54>
   self =
      inst = 125130 - wendy (valid:true)
      target_mount = 130421 - beefalo(LIMBO) (valid:true)
      _ = table: 000000009E774780
      _onSaddleChanged = function - scripts/components/rider.lua:29
   mount = 130421 - beefalo(LIMBO) (valid:true)
scripts/components/rider.lua:149 in (method) Mount (Lua) <67-160>
   self =
      inst = 125130 - wendy (valid:true)
      target_mount = 130421 - beefalo(LIMBO) (valid:true)
      _ = table: 000000009E774780
      _onSaddleChanged = function - scripts/components/rider.lua:29
   target = 130421 - beefalo(LIMBO) (valid:true)
   instant = nil
   rideable = table: 0000000065803340
   saddler = table: 0000000091E472D0
   x = 165.6321105957
   y = -9.8461399034022e-009
   z = 194.75450134277
   tx = 166.63830566406
   ty = 1.917595504608e-008
   tz = 194.80258178711
scripts/actions.lua:2996 in (field) fn (Lua) <2974-2998>
   act = 骑上 130421 - beefalo(LIMBO) (valid:true)
scripts/bufferedaction.lua:25 in (method) Do (Lua) <21-35>
   self (valid:true) =
      action = table: 0000000019A1C5A0
      doer = 125130 - wendy (valid:true)
      onfail = table: 0000000013C2E2B0
      doerownsobject = false
      rotation = 0
      onsuccess = table: 0000000013C2D6D0
      options = table: 000000001699E0C0
      target = 130421 - beefalo(LIMBO) (valid:true)
scripts/entityscript.lua:1471 in (method) PerformBufferedAction (Lua) <1458-1482>
   self (valid:true) =
      DynamicShadow = DynamicShadow (000000007637B360)
      EnableLoadingProtection = function - scripts/prefabs/player_common.lua:1011
      inlimbo = false
      GetMoistureRateScale = function - scripts/prefabs/player_common.lua:254
      _lunarportalmax = table: 000000009E24F2A0
      CanSeePointOnMiniMap = function - scripts/prefabs/player_common_extensions.lua:807
      skeleton_prefab = skeleton_player
      EnableBoatCamera = function - scripts/prefabs/player_common.lua:857
      playercolour = table: 000000009F061FE0
      event_listeners = table: 000000009E14C890
      killtask = PERIODIC 125130: 3.000000
      AnimState = AnimState (000000007637ACA0)
      IsActing = function - scripts/prefabs/player_common_extensions.lua:859
      Light = Light (000000007637B480)
      OnDespawn = function - scripts/prefabs/player_common.lua:1294
      _OnDespawn = function - scripts/prefabs/wendy.lua:116
      SetGymStopState = function - scripts/prefabs/player_common.lua:64
      _isrezattuned = false
      OnRemoveEntity = function - scripts/prefabs/player_common.lua:1052
      children = table: 00000000C3848E30
      pendingtasks = table: 000000009E14C4D0
      ApplySkinOverrides = function - scripts/prefabs/player_common.lua:1575
      ResetMinimapOffset = function - scripts/prefabs/player_common.lua:1426
      sg = sg="wilson", state="mount", time=0.00, tags = "nopredict,busy,doing,nomorph,"
      IsHUDVisible = function - scripts/prefabs/player_common.lua:1404
      _bondlevel = net_tinybyte (000000009E24D090)
      SetGhostMode = funct
[00:07:30]: [string "scripts/components/rider_replica.lua"]:249: attempt to index field 'inventoryitem' (a nil value)
LUA ERROR stack traceback:
    scripts/components/rider_replica.lua:249 in (method) SetSaddle (Lua) <235-256>
    scripts/components/rider.lua:18 in (field) ? (Lua) <17-19>
    scripts/class.lua:43 in () ? (Lua) <36-45>
    scripts/components/rider.lua:52 in (method) StartTracking (Lua) <48-54>
    scripts/components/rider.lua:149 in (method) Mount (Lua) <67-160>
    scripts/actions.lua:2996 in (field) fn (Lua) <2974-2998>
    scripts/bufferedaction.lua:25 in (method) Do (Lua) <21-35>
    scripts/entityscript.lua:1471 in (method) PerformBufferedAction (Lua) <1458-1482>
    scripts/stategraphs/SGwilson.lua:5767 in (field) fn (Lua) <5760-5769>
    scripts/stategraph.lua:656 in (method) UpdateState (Lua) <624-668>
    scripts/stategraph.lua:694 in (method) Update (Lua) <687-713>
    scripts/stategraph.lua:128 in (method) Update (Lua) <109-146>
    scripts/update.lua:288 in () ? (Lua) <224-298>

 


Steps to Reproduce

 1099555531_QQ20230810204423.thumb.png.30613e2e15f3f0d5b48f07fb695affd4.png

589975744_QQ20230810204935.thumb.png.16b0c29eb0c16dbbe31fdc9fc6f23ed6.png

1437001093_QQ20230810205014.thumb.png.1683c3b727c225f0c56f12f261c4c27a.png

服务器没有添加任何mod,牛身上有鞍具,我们清理地面多余的鞍具,清理后再骑上牛,服务器就会崩溃。

There are no mods added to the server, the cattle have saddles on them, we clean up the excess saddles on the ground, clean up and then ride the cattle, the server will crash.




User Feedback


c_findnext函数能选中牛身上的物品,你把它的鞍具移除了当然会崩溃啊。

The function c_findnext can select items on beefalos, removing saddle on beefalos certainly caused the crash.

Share this comment


Link to comment
Share on other sites

30 minutes ago, _zwb said:

c_findnext函数能选中牛身上的物品,你把它的鞍具移除了当然会崩溃啊。

The function c_findnext can select items on beefalos, removing saddle on beefalos certainly caused the crash.  

之所以会触发,是因为一些清理垃圾的mod调用了c_findnext函数

Share this comment


Link to comment
Share on other sites

5 minutes ago, xiaochency said:

之所以会触发,是因为一些清理垃圾的mod调用了c_findnext函数

那你检查一下有没有INLIMBO 标签不就行了:wilson_curious:

Share this comment


Link to comment
Share on other sites

Be careful using the developer's console when trying to remove state from the game there are times when doing this will cause instability or other assumptions to break and we can not cover every case of commands breaking things.

Changed Status to Closed

  • Like 1

Share this comment


Link to comment
Share on other sites



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