Jump to content

Server crash - [string "scripts/actions.lua"]:1723: attempt to index local 'beefalo' (a nil value)


nixmagic
  • Pending
[23:00:22]: [string "scripts/actions.lua"]:1723: attempt to index local 'beefalo' (a nil value)
LUA ERROR stack traceback:
scripts/actions.lua:1723 in (field) fn (Lua) <1712-1747>
   act = Hitch to 105151 - beefalo_groomer (valid:true)
   bell = nil
   beefalo = nil
scripts/bufferedaction.lua:25 in (method) Do (Lua) <21-35>
   self (valid:true) =
      options = table: 0x32499338
      action = table: 0xbfc03c8
      doer = 284772 - wendy (valid:true)
      onsuccess = table: 0x324992e8
      doerownsobject = false
      onfail = table: 0x32499310
      target = 105151 - beefalo_groomer (valid:true)
scripts/entityscript.lua:1318 in (method) PerformBufferedAction (Lua) <1305-1328>
   self (valid:true) =
      DynamicShadow = DynamicShadow (0x1ec84db8)
      inlimbo = false
      GetMoistureRateScale = function - scripts/prefabs/player_common.lua:197
      SetCameraDistance = function - scripts/prefabs/player_common.lua:1091
      ScreenFlash = function - scripts/prefabs/player_common.lua:1153
      player_classified = 284773 - player_classified (valid:true)
      playercolour = table: 0x2e63cf68
      IsOverheating = function - scripts/prefabs/player_common.lua:167
      Light = Light (0x21908778)
      _OnDespawn = function - scripts/prefabs/wendy.lua:99
      _isrezattuned = false
      OnRemoveEntity = function - scripts/prefabs/player_common.lua:724
      pendingtasks = table: 0x32fc9198
      ShowHUD = function - scripts/prefabs/player_common.lua:1079
      sg = sg="wilson", state="usewardrobe", time=0.43, tags = "doing,"
      IsHUDVisible = function - scripts/prefabs/player_common.lua:1069
      _bondlevel = net_tinybyte (0x27461690)
      SetGhostMode = function - scripts/prefabs/player_common.lua:637
      ShowActions = function - scripts/prefabs/player_common.lua:1073
      OnWakeUp = function - scripts/prefabs/player_common.lua:933
      Transform = Transform (0x328bd2c8)
      actionreplica = table: 0x1cb84d98
      event_listening = table: 0x26bbba10
      actioncomponents = table: 0x300eb778
      _hermit_music = table: 0x2fce0968
      GetMaxMoisture = function - scripts/prefabs/player_common.lua:187
      CanUseTouchStone = function - scripts/prefabs/player_common.lua:137
      updatecomponents = table: 0x3520b438
      YOTB_issetunlocked = function - scripts/prefabs/player_common.lua:28
      ShakeCamera = function - scripts/prefabs/player_common.lua:1111
      OnDespawn = function - scripts/prefabs/player_common.lua:955
      persists = false
      MiniMapEntity = MiniMapEntity (0x321a9ae8)
      event_listeners = table: 0x2da0ad90
      _OnLoad = function - scripts/prefabs/wendy.lua:181
      replica = table: 0x2aa3ab78
      GetTemperature = function - scripts/prefabs/player_common.lua:147
      modactioncomponents = table: 0x102ee9b0
      ghostenabled = true
      EnableMovementPrediction = function - scripts/prefabs/player_common.lua:581
      worldstatewatching = table: 0x1d4e75f0
      SetCameraZoomed = function - scripts/prefabs/player_common.lua:1097
      entity = Entity (0x2a374f10)
      Network = Network (0x2f05d398)
      killtask = PERIODIC 284772: 3.000000
      IsFreezing = function - scripts/prefabs/player_common.lua:157
      GetMoisture = function - scripts/prefabs/player_common.lua:177
      OnPreLoad = function - scripts/prefabs/player_common.lua:809
      LightWatcher = LightWatcher (0x3515d300)
      has_AlwaysOnStatus = true
      inherentactions = table: 0x28072130
      spawntime = 36634.701910648
      name = Yalinka
      prefab = wendy
      prev_OnNewSpawn = function - scripts/prefabs/player_common.lua:1003
      SnapCamera = function - scripts/prefabs/player_common.lua:1103
      ApplyScale = function - scripts/prefabs/player_common.lua:1168
      _OnSave = function - scripts/prefabs/wendy.lua:175
      SaveForReroll = function - scripts/prefabs/player_common.lua:1201
      YOTB_isskinunlocked = function - scripts/prefabs/player_common.lua:35
      OnSleepIn = function - scripts/prefabs/player_common.lua:905
      ScreenFade = function - scripts/prefabs/player_common.lua:
[23:00:22]: [string "scripts/actions.lua"]:1723: attempt to index local 'beefalo' (a nil value)
LUA ERROR stack traceback:
    scripts/actions.lua:1723 in (field) fn (Lua) <1712-1747>
    scripts/bufferedaction.lua:25 in (method) Do (Lua) <21-35>
    scripts/entityscript.lua:1318 in (method) PerformBufferedAction (Lua) <1305-1328>
    scripts/stategraphs/SGwilson.lua:4421 in (field) fn (Lua) <4420-4422>
    scripts/stategraph.lua:572 in (method) UpdateState (Lua) <540-584>
    scripts/stategraph.lua:611 in (method) Update (Lua) <603-631>
    scripts/stategraph.lua:128 in (method) Update (Lua) <109-153>
    scripts/update.lua:233 in () ? (Lua) <164-243>

[23:00:22]: Warning: Widget:SetFocusFromChild is happening on a widget outside of the screen/widget hierachy. This will cause focus moves to fail. Is     ScriptErrorWidget       not a screen?
[23:00:22]: stack traceback:
        scripts/widgets/widget.lua:605 in (method) SetFocusFromChild (Lua) <602-627>
        scripts/widgets/widget.lua:624 in (method) SetFocusFromChild (Lua) <602-627>
        scripts/widgets/widget.lua:624 in (method) SetFocusFromChild (Lua) <602-627>
        scripts/widgets/widget.lua:656 in (method) SetFocus (Lua) <629-665>
        scripts/widgets/menu.lua:83 in (method) SetFocus (Lua) <74-85>
        scripts/widgets/scripterrorwidget.lua:109 in (method) OnUpdate (Lua) <102-119>
        scripts/update.lua:95 in () ? (Lua) <33-134>

 


Steps to Reproduce

On dedicated server. I don't know how to reproduce.




User Feedback


Hi nixmagic, I encountered the same error message as you.

I can reproduce this issue by:

1. Click on the "Beefalo Grooming Station" without a Bell

2. I will be disconnected from the server (even I am playing DST by myself - so I guess I am the server and also the client)

 

From the error log, it seems there is a Null checking missing.

The workaround is to bring the bell together with you when you click on the "Beefalo Grooming Station". This works for me.

Edited by kennythelord

Share this comment


Link to comment
Share on other sites

string 1723, replace: local herd = beefalo.components.herdmember and beefalo.components.herdmember:GetHerd()

fix: local herd = beefalo and beefalo.components.herdmember and beefalo.components.herdmember:GetHerd()

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