Sign in to follow this  

hermitcrab.lua: attempt to compare number with nil


originalmaja
  • Fixed

DEDICATED SERVER. NO MODS. UPDATED. 

 [string "scripts/prefabs/hermitcrab.lua"]:345: attempt to compare number with nil
LUA ERROR stack traceback:
scripts/prefabs/hermitcrab.lua:345 in (method) OnLoadPostPass (Lua) <344-349>
   inst = 104048 - hermitcrab (valid:true)
   new_ents = table: 07A2B080
   data = table: 0C76F8A0
scripts/entityscript.lua:1577 in (method) LoadPostPass (Lua) <1566-1579>
   self (valid:true) =
      GUID = 104048
      dotalkingtimers = function - scripts/prefabs/hermitcrab.lua:159
      inlimbo = false
      stopfishing = function - scripts/prefabs/hermitcrab.lua:1119
      iscoat = function - scripts/prefabs/hermitcrab.lua:188
      AnimState = AnimState (1D3B1DB8)
      Network = Network (1D3B1DD8)
      storelevelunlocked = function - scripts/prefabs/hermitcrab.lua:499
      pendingtasks = table: 1D3A4850
      LightWatcher = LightWatcher (1D3B1F98)
      restocklures = function - scripts/prefabs/hermitcrab.lua:1071
      sg = sg="hermit", state="idle", time=0.00, tags = "idle,canrotate,"
      spawntime = 0
      getgeneralfriendlevel = function - scripts/prefabs/hermitcrab.lua:357
      Transform = Transform (1D3B1F78)
      startfishing = function - scripts/prefabs/hermitcrab.lua:1089
      event_listening = table: 1D3A32E8
      actioncomponents = table: 1D3A1BA0
      name = Crabby Hermit
      lower_components_shadow = table: 1D3A1998
      worldstatewatching = table: 1D4471F0
      retrofitconstuctiontasks = function - scripts/prefabs/hermitcrab.lua:1204
      entity = Entity (1D129730)
      DynamicShadow = DynamicShadow (1D3B1D78)
      prefab = hermitcrab
      OnEntitySleep = function - scripts/prefabs/hermitcrab.lua:1435
      island_radius = 32
      OnSave = function - scripts/prefabs/hermitcrab.lua:309
      OnLoadPostPass = function - scripts/prefabs/hermitcrab.lua:344
      Physics = Physics (1D3B20B8)
      OnLoad = function - scripts/prefabs/hermitcrab.lua:320
      brainfn = table: 048DE7F8
      event_listeners = table: 1D3A3108
      OnEntityWake = function - scripts/prefabs/hermitcrab.lua:1440
      actionreplica = table: 1D3A1A60
      complain = function - scripts/prefabs/hermitcrab.lua:368
      displaynamefn = function - scripts/prefabs/hermitcrab.lua:154
      rewardcheck = function - scripts/prefabs/hermitcrab.lua:397
      replica = table: 1D3A1B00
      persists = true
      components = table: 1D3A1C18
      SoundEmitter = SoundEmitter (1D3B1FD8)
   newents = table: 07A2B080
   savedata = table: 0C76F8A0
scripts/gamelogic.lua:558 in (upvalue) PopulateWorld (Lua) <326-586>
   savedata = table: 04553810
   profile = table: 06C69288
   world = 100026 - world (valid:true)
   map = Map (1541D2F8)
   tuning_override = table: 07A282E0
   newents = table: 07A2B080
   k = 114885
   v = table: 1D4474C0
scripts/gamelogic.lua:802 in (upvalue) DoInitGame (Lua) <685-881>
   savedata = table: 04553810
   profile = table: 06C69288
   was_file_load = false
scripts/gamelogic.lua:915 in (local) cb (Lua) <909-916>
   savedata = table: 04553810
scripts/saveindex.lua:312 in (upvalue) OnLoadSaveDataFile (Lua) <294-313>
   file = session/50C4235C5784900C/0000000003
   cb = function - scripts/gamelogic.lua:909
   load_success = true
   str = return {world_network={persistdata={worldtemperature={seasontemperature=30,daylight=true,noisetime=140.70109558105,season="autumn",phasetemperature=4.8171593088166},seasons={elapseddaysinseason=0,premode=false,remainingdaysinseason=30,lengths={summer=15,autumn=30,spring=20,winter=15},totaldaysinseason=60,mode="cycle",season="autumn",segs={summer={night=4,day=11,dusk=1},autumn={night=2,day=8,dusk=6},spring={night=3,day=5,dusk=8},winter={night=6,day=5,dusk=5}}},weather={preciptype="none",daylight=true,moistureceil=906.25323486328,peakprecipitationrate=1,season="autumn",moisturerateval=0.25000000000066,lightningmode="rain",moistureceilmultiplier=8,moisture=35.175273895264,stopsnowthreshold=0,snowlevel=0,moisturefloormultiplier=1,moisturerateoffset=0,noisetime=140.70109558105,moisturerate=0.25,wetness=0,temperature=36.751900846054,nextlightningtime=5,startsnowthreshold=-5,precip
[00:00:28]: [string "scripts/prefabs/hermitcrab.lua"]:345: attempt to compare number with nil
LUA ERROR stack traceback:
    scripts/prefabs/hermitcrab.lua:345 in (method) OnLoadPostPass (Lua) <344-349>
    scripts/entityscript.lua:1577 in (method) LoadPostPass (Lua) <1566-1579>
    scripts/gamelogic.lua:558 in (upvalue) PopulateWorld (Lua) <326-586>
    scripts/gamelogic.lua:802 in (upvalue) DoInitGame (Lua) <685-881>
    scripts/gamelogic.lua:915 in (local) cb (Lua) <909-916>
    scripts/saveindex.lua:312 in (upvalue) OnLoadSaveDataFile (Lua) <294-313>
    scripts/saveindex.lua:317 in () ? (Lua) <316-318>
    =[C]:-1 in (method) GetPersistentString (C) <-1--1>
    scripts/saveindex.lua:316 in (method) GetSaveDataFile (Lua) <315-319>
    scripts/saveindex.lua:335 in (method) GetSaveData (Lua) <321-340>
    scripts/gamelogic.lua:917 in (upvalue) DoLoadWorld (Lua) <908-918>
    scripts/gamelogic.lua:960 in (upvalue) LoadSlot (Lua) <954-966>
    
[00:00:28]: Check for write access: TRUE
[00:00:28]: Check for read access: TRUE
[00:00:28]: ModIndex: Load sequence finished successfully.    
[00:00:29]: Reset() returning
[00:00:29]: 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?    
[00:00:29]: 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:90 in () ? (Lua) <33-129>    


Steps to Reproduce

-- have dedicated server with dst
-- run STEAM update
-- regen world
-- leave, come back an hour later
-- server not listed
-- reboot server
-- hermitcrab nil

Sign in to follow this  


User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.

Got the same /similar errors on my Dedicated  Server. Now the servers won't start at all.

 

[string "scripts/prefabs/hermitcrab.lua"]:345: attempt to compare number with nil
LUA ERROR stack traceback:
scripts/prefabs/hermitcrab.lua:345 in (method) OnLoadPostPass (Lua) <344-349>
   inst = 109393 - hermitcrab (valid:true)
   new_ents = table: 167E0E18
   data = table: 1B2C1DC8
scripts/entityscript.lua:1577 in (method) LoadPostPass (Lua) <1566-1579>
   self (valid:true) =
      GUID = 109393
      dotalkingtimers = function - scripts/prefabs/hermitcrab.lua:159
      inlimbo = false
      stopfishing = function - scripts/prefabs/hermitcrab.lua:1119
      iscoat = function - scripts/prefabs/hermitcrab.lua:188
      AnimState = AnimState (338AD470)
      Network = Network (338AD510)
      storelevelunlocked = function - scripts/prefabs/hermitcrab.lua:499
      pendingtasks = table: 33970380
      LightWatcher = LightWatcher (338AD4F0)
      restocklures = function - scripts/prefabs/hermitcrab.lua:1071
      sg = sg="hermit", state="idle", time=0.00, tags = "idle,canrotate,"

Share this comment


Link to comment
Share on other sites

Changed Status to Fixed

The wrong build for the dedicated server was set live. If you still have this issue then please verify integrity of game files via steam.

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