[00:02:00]: ...mmon/dont_starve/data/scripts/stategraphs/SGtrap.lua:11: attempt to call method 'DropLoot' (a nil value) LUA ERROR stack traceback: C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/stategraphs/SGtrap.lua:11 in (field) fn (Lua) <9-14> inst = 117530 - trap(LIMBO) (valid:true) C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/stategraph.lua:377 in (method) HandleEvents (Lua) <369-384> self = tags = table: 93774F68 mem = table: 93774E78 statemem = table: 93774F18 currentstate = table: 1FC0B860 timelineindex = 1 timeinstate = 0 sg = Stategraph : trap inst = 117530 - trap(LIMBO) (valid:true) bufferedevents = table: 937750D0 lastupdatetime = 3.9666668735445 statestarttime = 3.9666668735445 k = 1 event = table: 93775FA8 handler = table: 1FC0B7E8 C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/stategraph.lua:515 in (method) Stop (Lua) <514-521> self = tags = table: 93774F68 mem = table: 93774E78 statemem = table: 93774F18 currentstate = table: 1FC0B860 timelineindex = 1 timeinstate = 0 sg = Stategraph : trap inst = 117530 - trap(LIMBO) (valid:true) bufferedevents = table: 937750D0 lastupdatetime = 3.9666668735445 statestarttime = 3.9666668735445 C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/entityscript.lua:103 in (method) RemoveFromScene (Lua) <95-128> self (valid:true) = GUID = 117530 Transform = Transform (11AD9110) inlimbo = true parent = 100024 - wilson (valid:true) event_listening = table: 93770E40 sounds = table: 1422B8D0 entity = Entity (11AD90E0) AnimState = AnimState (11AD9320) prefab = trap Physics = Physics (11AD90F8) MiniMapEntity = MiniMapEntity (11AD9350) SoundEmitter = SoundEmitter (11AD9608) origspawnedFrom = table: 937757D8 name = Trap sg = sg="trap", state="idle", time=0.00, tags = "" spawntime = 3.9666668735445 persists = true age = 0 pendingtasks = table: 93771200 components = table: 93770580 event_listeners = table: 93770940 frominterior = nil C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/components/inventoryitem.lua:135 in (method) OnPutInInventory (Lua) <129-150> self = canbepickedupwhileburning = false nobounce = false owner = 100024 - wilson (valid:true) trappable = true cangoincontainer = true inst = 117530 - trap(LIMBO) (valid:true) keepondeath = false canbepickedup = true isnew = false candrop = true owner = 100024 - wilson (valid:true) C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/components/inventory.lua:795 in (method) GiveItem (Lua) <695-853> self = dropondeath = true acceptsstacks = true maxslots = 15 acceptitems = true insulated = false opencontainers = table: 6EE75380 inst = 100024 - wilson (valid:true) equipslots = table: 6EE75290 ignorescangoincontainer = false recipe_count = 0 itemslots = table: 6EE754C0 recipes = table: 6EE75718 inst = 117530 - trap(LIMBO) (valid:true) slot = 1 screen_src_pos = (159.00, 876.00, 0.00) skipsound = nil dontDropOnFail = nil eslot = nil new_item = true objectDestroyed = nil can_use_suggested_slot = false container = table: 6EE754C0 leftovers = nil C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/components/builder.lua:717 in () ? (Lua) <613-790> self = home_bonus = 0 city_bonus = 0 ancient_bonus = 0 bonus_tech_level = 0 magic_bonus = 0 inst = 100024 - wilson (valid:true) recipe_count = 1 buffered_builds = table: 4C899ED8 obsidian_bonus = 0 categoryMapping = table: 1EFD3F00 custom_tabs = table: 6F0BA920 accessible_tech_trees = table: 6EF57258 jellybrainhat = false ingredientmod = 1 recipes = table: 6F0BA8F8 lost_bonus = 0 science_bonus = 0 recname = trap pt = (-55.42, 0.00, 44.43) rotation = nil modifydata = nil recipe = table: 1FBFFEF8 buffered = false wetLevel = 0 prefab = trap prod = 117530 - trap(LIMBO) (valid:true) givenToVehicle = false =(tail call):-1 in () (tail) <-1--1> C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/bufferedaction.lua:21 in (method) Do (Lua) <18-33> self (valid:true) = action = table: 2104ED50 doer = 100024 - wilson (valid:true) onfail = table: 25D365D0 distance = 1 recipe = trap onsuccess = table: 25D36328 options = table: 25D369B8 pos = (-55.42, 0.00, 44.43) C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/entityscript.lua:1291 in (method) PerformBufferedAction (Lua) <1282-1302> self (valid:true) = DynamicShadow = DynamicShadow (13C290B8) inlimbo = false brain = --brain-- sleep time: 0.00 Priority - READY <FAILED> ()>0.00 >Parallel - READY <FAILED> ()>0.00 > >Hold LMB - READY <FAILED> ()>0.00 > >ChaseAndAttack - READY <READY> ()>0.00 >ChaseAndAttack - READY <FAILED> ()>0.00 AnimState = AnimState (13C28FE0) Light = Light (119CD3F8) age = 0 LightWatcher = LightWatcher (13C29268) profile = table: 24335A78 inherentactions = table: 6F0C1C98 spawntime = 0 gassources = 0 CanExamine = function - @C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/prefabs/player_common.lua:765 HUD = HUD Transform = Transform (13C291A8) bufferedaction = Build nil Recipe:trap (valid:true) OnGasChange = function - @C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/prefabs/player_common.lua:115 brainfn = table: 6F0C1D88 ininterior = false children = table: 61521530 entity = Entity (13C29130) GUID = 100024 prefab = wilson updatecomponents = table: 6EE76B90 OnSave = function - @C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/prefabs/player_common.lua:775 Soak = function - @C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/prefabs/player_common.lua:767 name = Wilson Physics = Physics (13C290E8) event_listening = table: 6EE70998 MiniMapEntity = MiniMapEntity (13C29100) event_listeners = table: 6EE708D0 pendingtasks = table: 21A24828 OnLoad = function - @C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/prefabs/player_common.lua:781 origspawnedFrom = table: 4C899AF0 sg = sg="wilson", state="dolongaction", time=1.00, tags = "doing," addcolourdata = table: 9D5BA578 persists = false AddLevelComponents = function - @C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/prefabs/player_common.lua:146 components = table: 6EE6F8E0 SoundEmitter = SoundEmitter (13C28F98) C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/stategraphs/SGwilson.lua:2968 in (field) ontimeout (Lua) <2965-2969> inst = 100024 - wilson (valid:true) C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/stategraph.lua:474 in (method) UpdateState (Lua) <460-504> self = tags = table: 4CE3FFE8 mem = table: 6F0C1CC0 statemem = table: 4CE3FB88 currentstate = table: 1F5ACB38 timeinstate = 1.0000000521541 sg = Stategraph : wilson inst = 100024 - wilson (valid:true) bufferedevents = table: 4CE41410 lastupdatetime = 3.9666668735445 statestarttime = 2.9666668213904 laststate = table: 1F4E6770 prevstate = table: 1F4E6770 dt = 0.86666671186686 startstate = table: 1F5ACB38 C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/stategraph.lua:531 in (method) Update (Lua) <523-551> self = tags = table: 4CE3FFE8 mem = table: 6F0C1CC0 statemem = table: 4CE3FB88 currentstate = table: 1F5ACB38 timeinstate = 1.0000000521541 sg = Stategraph : wilson inst = 100024 - wilson (valid:true) bufferedevents = table: 4CE41410 lastupdatetime = 3.9666668735445 statestarttime = 2.9666668213904 laststate = table: 1F4E6770 prevstate = table: 1F4E6770 dt = 0.86666671186686 C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/stategraph.lua:124 in (method) Update (Lua) <107-148> self = updaters = table: 6EF576B8 OnEnterNewState = function - @C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/stategraph.lua:30 tickwaiters = table: 261FC4D8 idlers = table: 261FCAA0 haveEvents = table: 6EF55C00 hibernaters = table: 261FCA50 instances = table: 261FC258 current_tick = 119 waiters = table: 4CE48F58 updaters = table: 6EF55E30 k = sg="wilson", state="dolongaction", time=1.00, tags = "doing," v = true C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/update.lua:178 in () ? (Lua) <90-191> dt = 0.033333335071802 tick = 119 i = 119 [00:02:00]: Last called Lua: None [00:02:00]: scripts/mainfunctions.lua(960,1) LUA ERROR stack traceback: C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/mainfunctions.lua(960,1) [00:02:00]: scripts/mainfunctions.lua(961,1) ...mmon/dont_starve/data/scripts/stategraphs/SGtrap.lua:11: attempt to call method 'DropLoot' (a nil value) LUA ERROR stack traceback: C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/stategraphs/SGtrap.lua:11 in (field) fn (Lua) <9-14> C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/stategraph.lua:377 in (method) HandleEvents (Lua) <369-384> C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/stategraph.lua:515 in (method) Stop (Lua) <514-521> C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/entityscript.lua:103 in (method) RemoveFromScene (Lua) <95-128> C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/components/inventoryitem.lua:135 in (method) OnPutInInventory (Lua) <129-150> C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/components/inventory.lua:795 in (method) GiveItem (Lua) <695-853> C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/components/builder.lua:717 in () ? (Lua) <613-790> =(tail call):-1 in () (tail) <-1--1> C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/bufferedaction.lua:21 in (method) Do (Lua) <18-33> C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/entityscript.lua:1291 in (method) PerformBufferedAction (Lua) <1282-1302> C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/stategraphs/SGwilson.lua:2968 in (field) ontimeout (Lua) <2965-2969> C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/stategraph.lua:474 in (method) UpdateState (Lua) <460-504> C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/stategraph.lua:531 in (method) Update (Lua) <523-551> C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/stategraph.lua:124 in (method) Update (Lua) <107-148> C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/update.lua:178 in () ? (Lua) <90-191> [00:02:00]: scripts/frontend.lua(776,1) SCRIPT ERROR! Showing error screen [00:02:01]: HttpClientWriteCallback (0x0559F5B2, 1, 133, 0x07F1F90C) [00:02:01]: HttpClientWriteCallback READ 133 (133 total) [00:02:01]: QueryServerComplete no callback [00:02:15]: Force aborting...
Steps to Reproduce
1) start a SW world with hamlet compartible
2) get the resources
3) craft trap (happens with bird trap and rabbit trap too)
You have deleted the "function Trap:DropLoot()" from the DLC0003\scripts\components\trap.lua but missed the DLC0003\scripts\stategraphs\SGtrap.lua there the drop loot is still called.
I updated the file by myself and that fixed the problem.
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 accountSign in
Already have an account? Sign in here.
Sign In Now