Sign in to follow this  

condition for `wateringcan` is not nil


Kova_
  • Pending
==== Tail of the report log  ====

[05:04:35]: [DFTA] {"type":"torch","object":{"name":"Plant","burnt":false,"owner":[],"prefab":"weed_forgetmelots"},"category":"fire","player":{"prefab":"wormwood","userid":"KU_CdncASoX","name":"Infantyl"},"near":{"structures":[],"plants":0,"mobs":0}}	
[05:04:40]: KU_axSdrR09	running text command:	happy	true	
[05:04:47]: [DFTA] {"player":{"prefab":"wormwood","userid":"KU_CdncASoX","name":"Infantyl"},"type":"SMOTHER","object":{"name":"Smoldering Plant","burnt":false,"owner":[],"prefab":"farm_plant_potato"},"category":"action"}	
[05:04:48]: RemoteCommandInput: " world = TheWorld.components.worldstate.data playerlist = {} for i, v in ipairs(TheNet:GetClientTable()) do if TheNet:GetServerIsClientHosted() or v.performance == nil then local in_cave = 0 if UserToPlayer(v.userid) == nil then in_cave = 1 end local _name = v.name table.insert(playerlist, { prefab = v.prefab, age = v.playerage, flags = v.userflags, cave = in_cave, userid = v.userid, name = _name }) end end result = { category = "playerlist", day=(world.cycles+1), maxplayers = TheNet:GetServerMaxPlayers(), season = world.season, phase = world.phase, moonphase = world.moonphase, cavelog = false, remainingdaysinseason = world.remainingdaysinseason, players = playerlist } print('[DFTA] '..json.encode(result))  "
[05:04:48]: [DFTA] {"players":[{"flags":0,"name":"Busuk Keren","userid":"KU_4735k0Rv","cave":0,"prefab":"wathgrithr","age":4},{"flags":0,"name":"Muşti","userid":"KU_CaIzgZ6u","cave":0,"prefab":"wolfgang","age":8},{"flags":0,"name":"Infantyl","userid":"KU_CdncASoX","cave":0,"prefab":"wormwood","age":6},{"flags":0,"name":"Sad_Boi","userid":"KU_FPWJtwgj","cave":0,"prefab":"wendy","age":5},{"flags":0,"name":"Alperdinc","userid":"KU_V_O7lkvc","cave":0,"prefab":"wickerbottom","age":3},{"flags":0,"name":"LuigiMLG","userid":"KU_axSdrR09","cave":0,"prefab":"willow","age":4},{"flags":0,"name":"siau.azuolas","userid":"KU_p1sE9taz","cave":0,"prefab":"wilson","age":3},{"flags":0,"name":"Uchiha Obito","userid":"KU_s3Pu4SS-","cave":0,"prefab":"wortox","age":4}],"moonphase":"threequarter","maxplayers":10,"phase":"night","cavelog":false,"season":"autumn","day":8,"category":"playerlist","remainingdaysinseason":13}	
[05:04:51]: [DFTA] {"player":{"prefab":"wormwood","userid":"KU_CdncASoX","name":"Infantyl"},"type":"SMOTHER","object":{"name":"Plant","burnt":false,"owner":[],"prefab":"weed_firenettle"},"category":"action"}	
[05:04:52]: [DFTA] {"player":{"prefab":"wickerbottom","userid":"KU_V_O7lkvc","name":"Alperdinc"},"type":"HARVEST","object":{"name":"Crock Pot","burnt":false,"owner":{"prefab":"waxwell","userid":"KU_QkNvJfR3","name":"RukoN"},"prefab":"cookpot"},"category":"action"}	
[05:05:07]: [DFTA] {"players":[{"flags":0,"name":"Busuk Keren","userid":"KU_4735k0Rv","cave":false,"prefab":"wathgrithr","age":4},{"flags":0,"name":"Muşti","userid":"KU_CaIzgZ6u","cave":false,"prefab":"wolfgang","age":8},{"flags":0,"name":"Infantyl","userid":"KU_CdncASoX","cave":false,"prefab":"wormwood","age":6},{"flags":0,"name":"Sad_Boi","userid":"KU_FPWJtwgj","cave":false,"prefab":"wendy","age":5},{"flags":0,"name":"Alperdinc","userid":"KU_V_O7lkvc","cave":false,"prefab":"wickerbottom","age":4},{"flags":0,"name":"LuigiMLG","userid":"KU_axSdrR09","cave":false,"prefab":"willow","age":4},{"flags":0,"name":"siau.azuolas","userid":"KU_p1sE9taz","cave":false,"prefab":"wilson","age":3},{"flags":0,"name":"Uchiha Obito","userid":"KU_s3Pu4SS-","cave":false,"prefab":"wortox","age":4}],"moonphase":"threequarter","maxplayers":10,"phase":"night","season":"autumn","day":9,"category":"newday","isCave":false,"remainingdaysinseason":12}	
[05:05:07]: [DFTA] {"phase":"day","category":"newphase"}	
[05:05:08]: [DFTA] {"player":{"prefab":"wolfgang","userid":"KU_CaIzgZ6u","name":"Muşti"},"type":"CHOP","object":{"name":"Evergreen","burnt":true,"owner":[],"prefab":"evergreen"},"category":"workable"}	
[05:05:08]: Available disk space for save files:                                                           778730 MB
[05:05:08]: Serializing user: session/9A71C8C5A10A53DC/A7HI8IUQKCDO/0000000010
[05:05:08]: Serializing user: session/9A71C8C5A10A53DC/A7HIFHJ2JJ51/0000000010
[05:05:08]: Serializing user: session/9A71C8C5A10A53DC/A7HTJ09TVALD/0000000010
[05:05:08]: Serializing user: session/9A71C8C5A10A53DC/A7MO6PS13HPU/0000000010
[05:05:08]: Serializing user: session/9A71C8C5A10A53DC/A7GGE32RG1NP/0000000010
[05:05:08]: Serializing user: session/9A71C8C5A10A53DC/A7KJMSJTBC09/0000000010
[05:05:08]: Serializing user: session/9A71C8C5A10A53DC/A7JVUO3RTRJ6/0000000010
[05:05:08]: Serializing user: session/9A71C8C5A10A53DC/A7MC3M72EU9T/0000000010
[05:05:08]: Serializing world: session/9A71C8C5A10A53DC/0000000010
[05:05:11]: [DFTA] {"player":{"prefab":"wolfgang","userid":"KU_CaIzgZ6u","name":"Muşti"},"type":"CHOP","object":{"name":"Evergreen","burnt":true,"owner":[],"prefab":"evergreen"},"category":"workable"}	
[05:05:12]: [DFTA] {"player":{"prefab":"wolfgang","userid":"KU_CaIzgZ6u","name":"Muşti"},"type":"CHOP","object":{"name":"Lumpy Evergreen","burnt":true,"owner":[],"prefab":"evergreen_sparse"},"category":"workable"}	
[05:05:12]: [string "scripts/prefabs/wateringcan.lua"]:56: attempt to index field 'wateringcan' (a nil value)
LUA ERROR stack traceback:
scripts/prefabs/wateringcan.lua:56 in (local) fn (Lua) <55-61>
   inst = 146752 - wateringcan (valid:true)
scripts/entityscript.lua:1040 in (method) PushEvent (Lua) <1027-1054>
   self (valid:true) =
      GUID = 146752
      Transform = Transform (0x2573d790)
      inlimbo = false
      actionreplica = table: 0x2a828770
      event_listening = table: 0xe6bf080
      _entitysleeptime = 3653.8001905605
      actioncomponents = table: 0x2573d730
      displaynamefn = function - scripts/prefabs/wateringcan.lua:69
      lower_components_shadow = table: 0xb240b00
      children = table: 0x1e99e470
      entity = Entity (0x1a4157e0)
      AnimState = AnimState (0x1a20d8e0)
      prefab = wateringcan
      name = Empty Watering Can
      OnSave = function - ../mods/dft_announcer/scripts/fabrications.lua:93
      Network = Network (0x2a828730)
      OnLoad = function - ../mods/dft_announcer/scripts/fabrications.lua:115
      dfta_owner = 125241 - wormwood (valid:true)
      SoundEmitter = SoundEmitter (0x2226b870)
      Physics = Physics (0x2226b850)
      persists = false
      moistureupdatetask = PERIODIC 146752: 1.000000
      spawntime = 2747.1334766075
      pendingtasks = table: 0x1d51fa60
      replica = table: 0x2573d760
      components = table: 0xb240ad0
      event_listeners = table: 0xe3b8bd0
   event = onburnt
   data = nil
   listeners = table: 0x28ee2360
   tocall = table: 0x1da16040
   i = 1
   fn = function - scripts/prefabs/wateringcan.lua:55
scripts/components/burnable.lua:282 in (field) fn (Lua) <278-302>
   inst = 146752 - wateringcan (valid:true)
   self =
      onburnt = function - scripts/standardcomponents.lua:13
      onextinguish = function - scripts/standardcomponents.lua:41
      task = PERIODIC 146752: 10.000000
      fxdata = table: 0x28a20470
      smoke = 160922 - smoke_plant (valid:false)
      onignite = function - scripts/standardcomponents.lua:7
      _ = table: 0x1c45dd50
      flammability = 1
      burntime = 10
      inst = 146752 - wateringcan (valid:true)
      extinguishimmediately = true
      fxlevel = 2
      fxchildren = table: 0x28a204a0
      lightningimmune = false
   isplant = false
   pos = nil
scripts/scheduler.lua:177 in (method) OnTick (Lua) <155-207>
   self =
      running = table: 0xedd1e30
      waitingfortick = table: 0xedd1e60
      tasks = table: 0xedd1de0
      waking = table: 0xdf456d0
      attime = table: 0xedd1ef0
      hibernating = table: 0xedd1ec0
   tick = 115486
   k = PERIODIC 146752: 10.000000
   v = true
   already_dead = false
scripts/scheduler.lua:371 in (global) RunScheduler (Lua) <369-377>
   tick = 115486
scripts/update.lua:185 in () ? (Lua) <164-243>
   dt = 0.033333335071802
   tick = 115486
   i = 115486

[05:05:12]: [string "scripts/prefabs/wateringcan.lua"]:56: attempt to index field 'wateringcan' (a nil value)
LUA ERROR stack traceback:
    scripts/prefabs/wateringcan.lua:56 in (local) fn (Lua) <55-61>
    scripts/entityscript.lua:1040 in (method) PushEvent (Lua) <1027-1054>
    scripts/components/burnable.lua:282 in (field) fn (Lua) <278-302>
    scripts/scheduler.lua:177 in (method) OnTick (Lua) <155-207>
    scripts/scheduler.lua:371 in (global) RunScheduler (Lua) <369-377>
    scripts/update.lua:185 in () ? (Lua) <164-243>
	
[05:05:12]: 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?	
[05:05:12]: 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>	
[05:05:13]: KU_axSdrR09	running text command:	cry	true	

 


Steps to Reproduce

- Run the server 24/7 and let players play with watering can :)
 

Sign in to follow this  


User Feedback


Same problem. Server work a few minutes and crash

[00:18:02]: Registering master server in US lobby
[00:18:40]: [string "scripts/prefabs/wateringcan.lua"]:56: attempt to index field 'wateringcan' (a nil value)
LUA ERROR stack traceback:
scripts/prefabs/wateringcan.lua:56 in (local) fn (Lua) <55-61>
   inst = 114412 - wateringcan (valid:true)
scripts/entityscript.lua:1040 in (method) PushEvent (Lua) <1027-1054>
   self (valid:true) =
      GUID = 114412
      Transform = Transform (33405F38)
      inlimbo = false
      actionreplica = table: 3347F4D8
      event_listening = table: 3347FBE0
      _entitysleeptime = 748.33337236196
      actioncomponents = table: 3347F000
      displaynamefn = function - scripts/prefabs/wateringcan.lua:69
      lower_components_shadow = table: 3347F348
      entity = Entity (3331B018)
      AnimState = AnimState (33405E18)
      prefab = wateringcan
      OnSave = function - scripts/prefabs/wateringcan.lua:77
      Network = Network (33405E78)
      Physics = Physics (33405FF8)
      children = table: 232CEF20
      name = Empty Watering Can
      SoundEmitter = SoundEmitter (33406058)
      OnLoad = function - scripts/prefabs/wateringcan.lua:83
      pendingtasks = table: 33481B20
      moistureupdatetask = PERIODIC 114412: 1.000000
      spawntime = 0
      modactioncomponents = table: 3347FCD0
      replica = table: 3347F3C0
      persists = false
      components = table: 3347F398
      event_listeners = table: 3347F7A8
   event = onburnt
   data = nil
   listeners = table: 334829D0
   tocall = table: 2403A938
   i = 1
   fn = function - scripts/prefabs/wateringcan.lua:55
scripts/components/burnable.lua:282 in (field) fn (Lua) <278-302>
   inst = 114412 - wateringcan (valid:true)
   self =
      onburnt = function - scripts/standardcomponents.lua:13
      onextinguish = function - scripts/standardcomponents.lua:41
      task = PERIODIC 114412: 10.000000
      fxdata = table: 33482368
      smoke = 126504 - smoke_plant (valid:false)
      onignite = function - scripts/standardcomponents.lua:7
      _ = table: 33482688
      flammability = 1
      burntime = 10
      inst = 114412 - wateringcan (valid:true)
      extinguishimmediately = true
      fxlevel = 2
      fxchildren = table: 334822C8
      lightningimmune = false
   isplant = false
   pos = nil
scripts/scheduler.lua:177 in (method) OnTick (Lua) <155-207>
   self =
      running = table: 0964ECA0
      waitingfortick = table: 0964F178
      tasks = table: 0964F150
      waking = table: 2E0F8428
      attime = table: 0964F470
      hibernating = table: 0964F218
   tick = 25863
   k = PERIODIC 114412: 10.000000
   v = true
   already_dead = false
scripts/scheduler.lua:371 in (global) RunScheduler (Lua) <369-377>
   tick = 25863
scripts/update.lua:185 in () ? (Lua) <164-243>
   dt = 0.033333335071802
   tick = 25863
   i = 25863

[00:18:40]: [string "scripts/prefabs/wateringcan.lua"]:56: attempt to index field 'wateringcan' (a nil value)
LUA ERROR stack traceback:
    scripts/prefabs/wateringcan.lua:56 in (local) fn (Lua) <55-61>
    scripts/entityscript.lua:1040 in (method) PushEvent (Lua) <1027-1054>
    scripts/components/burnable.lua:282 in (field) fn (Lua) <278-302>
    scripts/scheduler.lua:177 in (method) OnTick (Lua) <155-207>
    scripts/scheduler.lua:371 in (global) RunScheduler (Lua) <369-377>
    scripts/update.lua:185 in () ? (Lua) <164-243>
    
[00:18:40]: 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:18:40]: 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>    
 

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