Jump to content

Recommended Posts

Hi

I'm getting this error when I finish working a marble pillar.  It'd working fine for fireflies and I can't work out why.

[00:00:00]: 
System Memory:
    Memory Load: 42%
    Available Physical Memory: 2312m/4013m
    Available Page File: 2774m/5485m
    Available Virtual Memory: 3920m/4095m
    Available Extended Virtual Memory: 0m
[00:00:00]: 
Process Memory:
    Peak Working Set Size: 30m
    Working Set Size: 30m
    Quota Peak Page Pool Usage: 254k
    Quota Page Pool Usage: 252k
    Quota Peak Non Paged Pool Usage:18k
    Quota Non Paged Pool Usage: 18k
    Page File Usage: 5m
    Peak Page File Usage: 5m
[00:00:00]: PersistRootStorage is now APP:Klei//DoNotStarveTogether/ 
[00:00:00]: Starting Up
[00:00:00]: Version: 243407
[00:00:00]: Current time: Wed Nov 29 12:42:19 2017

[00:00:00]: Don't Starve Together: 243407 WIN32_STEAM
[00:00:00]: Build Date: 2491
[00:00:00]: Parsing command line
[00:00:00]: Command Line Arguments: 
[00:00:00]: Initializing distribution platform
[00:00:00]: Initializing Minidump handler
[00:00:00]: ....Done
[00:00:00]: Steam AppBuildID: 2312146
[00:00:00]: ....Done
[00:00:00]: Fixing DPI
[00:00:00]: ...Done
[00:00:00]: THREAD - started 'GAClient' (228)
[00:00:00]: CurlRequestManager::ClientThread::Main()
[00:00:05]: ProfileIndex:15.78
[00:00:05]: [Connect] PendingConnection::Reset(true)
[00:00:05]: Network tick rate: U=15(2), D=0
[00:00:05]: Authorized application C:\Program Files (x86)\Steam\steamapps\common\Don't Starve Together\bin\dontstarve_steam.exe is enabled in the firewall.
[00:00:05]: WindowsFirewall - Application already authorized
[00:00:05]: THREAD - started 'StreamInput' (6660)
[00:00:05]: loaded ping_cache
[00:00:05]: Offline user ID: OU_76561198278974754
[00:00:05]: SteamID: 76561198278974754
[00:00:05]: HardwareStats:
  OS                        
    name                      Microsoft Windows 10 Home
    version                   10.0.16299
    architecture              64-bit
    platformSpecific          SP 0.0
  CPU                       
    numCores                  2
    features                  SSE,SSE2,SSE3,SSSE3,SSE41,SSE42,AVX
    name                      Intel(R) Core(TM) i3-5010U CPU @ 2.10GHz
    manufacturer              GenuineIntel
    clockSpeed                2100
  RAM                       
    megsOfRam                 4096
  GPU                       
    name                      Intel(R) HD Graphics 5500
    driverDate                20160929000000.000000-000
    megsOfRam                 1024
    refreshRate               60
    videoModeDescription      1366 x 768 x 4294967296 colors
    driverVersion             20.19.15.4531

[00:00:05]: cGame::InitializeOnMainThread
[00:00:05]: WindowManager::Initialize
[00:00:05]: CreateWindow: Requesting 1366,768 - 5/6/5 - -1/-1/-1 - 0
[00:00:05]: CreateEGLContext: 16 configs found
[00:00:05]:      0: 8/8/8 -  0/ 0/ 0 - 0
[00:00:05]:      1: 8/8/8 -  0/16/ 0 - 0
[00:00:05]:      2: 8/8/8 -  0/24/ 0 - 0
[00:00:05]:      3: 8/8/8 -  0/24/ 8 - 0
[00:00:05]:      4: 5/5/5 -  0/ 0/ 0 - 0
[00:00:05]:      5: 5/5/5 -  1/ 0/ 0 - 0
[00:00:05]:      6: 5/5/5 -  0/16/ 0 - 0
[00:00:05]:      7: 5/5/5 -  1/16/ 0 - 0
[00:00:05]:      8: 5/5/5 -  0/24/ 0 - 0
[00:00:05]:      9: 5/5/5 -  1/24/ 0 - 0
[00:00:05]:     10: 5/5/5 -  0/24/ 8 - 0
[00:00:05]:     11: 5/5/5 -  1/24/ 8 - 0
[00:00:05]:     12: 8/8/8 -  8/ 0/ 0 - 0
[00:00:05]:     13: 8/8/8 -  8/16/ 0 - 0
[00:00:05]:     14: 8/8/8 -  8/24/ 0 - 0
[00:00:05]:     15: 8/8/8 -  8/24/ 8 - 0
[00:00:05]: WindowManager::SetFullscreen(0, 1366, 768, 60)
[00:00:06]: GLInfo
[00:00:06]: ~~~~~~
[00:00:06]: GL_VENDOR: Google Inc.
[00:00:06]: GL_RENDERER: ANGLE (Intel(R) HD Graphics 5500)
[00:00:06]: GL_VERSION: OpenGL ES 2.0 (ANGLE 1.0.0.2249)
[00:00:06]: GL_SHADING_LANGUAGE_VERSION: OpenGL ES GLSL ES 1.00 (ANGLE 1.0.0.2249)
[00:00:06]: THREAD - started 'WindowsInputManager' (10620)
[00:00:06]: OpenGL extensions (19, 19):
[00:00:06]: GL_ANGLE_depth_texture
[00:00:06]: GL_ANGLE_framebuffer_blit
[00:00:06]: GL_ANGLE_framebuffer_multisample
[00:00:06]: GL_ANGLE_instanced_arrays
[00:00:06]: GL_ANGLE_pack_reverse_row_order
[00:00:06]: GL_ANGLE_texture_compression_dxt3
[00:00:06]: GL_ANGLE_texture_compression_dxt5
[00:00:06]: GL_ANGLE_texture_usage
[00:00:06]: GL_ANGLE_translated_shader_source
[00:00:06]: GL_EXT_read_format_bgra
[00:00:06]: GL_EXT_robustness
[00:00:06]: GL_EXT_texture_compression_dxt1
[00:00:06]: GL_EXT_texture_format_BGRA8888
[00:00:06]: GL_EXT_texture_storage
[00:00:06]: GL_OES_get_program_binary
[00:00:06]: GL_OES_packed_depth_stencil
[00:00:06]: GL_OES_rgb8_rgba8
[00:00:06]: GL_OES_standard_derivatives
[00:00:06]: GL_OES_texture_npot
[00:00:06]: GL_MAX_TEXTURE_SIZE = 8192
[00:00:06]: GL_MAX_TEXTURE_IMAGE_UNITS = 16
[00:00:06]: GL_MAX_RENDERBUFFER_SIZE = 8192
[00:00:06]: GL_MAX_VIEWPORT_DIMS = 8192, 8192
[00:00:06]: GL_MAX_VARYING_VECTORS = 10
[00:00:06]: GL_MAX_VERTEX_ATTRIBS = 16
[00:00:06]: GL_MAX_VERTEX_UNIFORM_VECTORS = 254
[00:00:06]: GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = 4
[00:00:06]: GL_MAX_FRAGMENT_UNIFORM_VECTORS = 221
[00:00:06]: 4 compressed texture formats
[00:00:06]: texture format 0x83f0
[00:00:06]: texture format 0x83f1
[00:00:06]: texture format 0x83f2
[00:00:06]: texture format 0x83f3
[00:00:06]: Renderer initialize: Okay
[00:00:07]: AnimManager initialize: Okay
[00:00:07]: Buffers initialize: Okay
[00:00:08]: cDontStarveGame::DoGameSpecificInitialize()
[00:00:08]: GameSpecific initialize: Okay
[00:00:08]: cGame::StartPlaying
[00:00:08]: LOADING LUA
[00:00:08]: DoLuaFile scripts/main.lua
[00:00:08]: DoLuaFile loading buffer scripts/main.lua
[00:00:10]:   taskgrouplist:    default    Together    
[00:00:10]:   taskgrouplist:    classic    Classic    
[00:00:10]:   taskgrouplist:    cave_default    Underground    
[00:00:10]:   taskgrouplist:    lavaarena_taskset    The Forge    
[00:00:10]: running main.lua
    
[00:00:10]: loaded modindex    
[00:00:10]: WARNING: icon paths for mod workshop-1163019698 (Hardermode rebalance public beta) are not valid. Got icon_atlas="modicon.xml" and icon="woodie.tex".
Please ensure that these point to valid files in your mod folder, or else comment out those lines from your modinfo.lua.    
[00:00:11]: ModIndex: Beginning normal load sequence.
    
[00:00:31]: LOADING LUA SUCCESS
[00:00:33]: PlayerDeaths loaded morgue    5811    
[00:00:33]: PlayerHistory loaded player_history    12050    
[00:00:33]: bloom_enabled    false    
[00:00:33]: loaded saveindex    
[00:00:33]: OnFilesLoaded()    
[00:00:34]: OnUpdatePurchaseStateComplete    
[00:00:49]:     Load FE    
[00:00:51]:     Load FE: done    
[00:00:51]: OnLoadPermissionList: APP:Klei//DoNotStarveTogether/client_save/blocklist.txt (Failure)
[00:00:51]: OnLoadPermissionList: APP:Klei//DoNotStarveTogether/client_save/adminlist.txt (Failure)
[00:00:51]: OnLoadUserIdList: APP:Klei//DoNotStarveTogether/client_save/whitelist.txt (Failure)
[00:00:51]: ModIndex: Load sequence finished successfully.    
[00:00:51]: Reset() returning
[00:00:53]: [Steam] Auth Session Ticket requested...
[00:00:53]: [Steam] Got Auth Session Ticket
[00:00:54]: [200] Account Communication Success (3)
[00:00:54]: Logging in as KU_9CQZv1jP
[00:00:55]: saved APP:Klei//DoNotStarveTogether/client_save/pricing_cache
[00:00:56]: loaded inventory_cache
[00:00:56]: loaded inventory_cache
[00:00:57]: SimLuaProxy::QueryServer()
[00:00:59]: QueryStats: { "req":"modrank", "field":"Session.Loads.Mods.list", "fieldop":"unwind", "linkpref":"external", "limit": 20}
[00:00:59]: Frontend-Unloading mod 'all'.    
[00:00:59]: FrontendLoadMod    workshop-1214482315    
[00:00:59]: Could not load mod_config_data/modconfiguration_workshop-1214482315    
[00:00:59]: Fontend-Loading mod: workshop-1214482315 (Server Mod) Version:0.0009    
[00:00:59]: Mod: workshop-1214482315 (Server Mod)    Loading modworldgenmain.lua    
[00:00:59]: Mod: workshop-1214482315 (Server Mod)      Mod had no modworldgenmain.lua. Skipping.    
[00:01:00]: ../mods/workshop-837215354/ICON.tex is 100x100 but compressed textures must have power of 2 dimensions.
[00:01:03]: Could not load mod_config_data/modconfiguration_workshop-1214482315    
[00:01:03]: Network tick rate: U=15(2), D=0
[00:01:03]: ModWorkshop::CancelDownloads clearing all unfinished downloads
[00:01:03]: About to start a server with the following settings:
[00:01:03]:   Dedicated: false
[00:01:03]:   Online: true
[00:01:03]:   Passworded: false
[00:01:03]:   ServerPort: 10999
[00:01:03]:   SteamAuthPort: 8766
[00:01:03]:   SteamMasterServerPort: 27016
[00:01:03]:   ClanID: false
[00:01:03]:   ClanOnly: false
[00:01:03]:   ClanAdmin: false
[00:01:03]:   LanOnly: true
[00:01:03]:   FriendsOnly: false
[00:01:03]:   EnableAutosaver: true
[00:01:03]:   EncodeUserPath: true
[00:01:03]:   PVP: false
[00:01:03]:   MaxPlayers: 6
[00:01:03]:   GameMode: survival
[00:01:03]:   OverridenDNS: 
[00:01:03]:   PauseWhenEmpty: true
[00:01:03]:   IdleTimeout: 1800s
[00:01:03]:   VoteEnabled: false
[00:01:03]:   InternetBroadcasting: true
[00:01:03]:   Intent: cooperative
[00:01:03]: [Warning] Could not confirm port 10999 is open in the firewall. 
[00:01:03]: Could not load mod_config_data/modconfiguration_workshop-1214482315    
[00:01:03]: Online Server Started on port: 10999
[00:01:03]: Collecting garbage...
[00:01:03]: lua_gc took 0.03 seconds
[00:01:03]: ~ShardLuaProxy()
[00:01:03]: ~ItemServerLuaProxy()
[00:01:03]: ~InventoryLuaProxy()
[00:01:03]: ~NetworkLuaProxy()
[00:01:03]: ~SimLuaProxy()
[00:01:03]: Cancelling LuaQueryCallback handle [7]
[00:01:03]: ModWorkshop::CancelDownloads clearing all unfinished downloads
[00:01:03]: lua_close took 0.05 seconds
[00:01:03]: ReleaseAll
[00:01:03]: ReleaseAll Finished
[00:01:03]: cGame::StartPlaying
[00:01:03]: LOADING LUA
[00:01:03]: DoLuaFile scripts/main.lua
[00:01:03]: DoLuaFile loading buffer scripts/main.lua
[00:01:04]:   taskgrouplist:    default    Together    
[00:01:04]:   taskgrouplist:    classic    Classic    
[00:01:04]:   taskgrouplist:    cave_default    Underground    
[00:01:04]:   taskgrouplist:    lavaarena_taskset    The Forge    
[00:01:04]: running main.lua
    
[00:01:04]: loaded modindex    
[00:01:04]: WARNING: icon paths for mod workshop-1163019698 (Hardermode rebalance public beta) are not valid. Got icon_atlas="modicon.xml" and icon="woodie.tex".
Please ensure that these point to valid files in your mod folder, or else comment out those lines from your modinfo.lua.    
[00:01:04]: ModIndex: Beginning normal load sequence.
    
[00:01:04]: ModIndex:GetModsToLoad inserting moddir,     workshop-1214482315    
[00:01:04]: Could not load mod_config_data/modconfiguration_workshop-1214482315    
[00:01:04]: Loading mod: workshop-1214482315 (Server Mod) Version:0.0009    
[00:01:04]: Mod: workshop-1214482315 (Server Mod)    Loading modworldgenmain.lua    
[00:01:04]: Mod: workshop-1214482315 (Server Mod)      Mod had no modworldgenmain.lua. Skipping.    
[00:01:04]: Mod: workshop-1214482315 (Server Mod)    Loading modmain.lua    
[00:01:04]: modimport: ../mods/workshop-1214482315/scripts/patches/settings.lua    
[00:01:04]: modimport: ../mods/workshop-1214482315/scripts/patches/structures_perish.lua    
[00:01:04]: modimport: ../mods/workshop-1214482315/scripts/patches/regrowth.lua    
[00:01:04]: LOADING LUA SUCCESS
[00:01:04]: PlayerDeaths loaded morgue    5811    
[00:01:04]: PlayerHistory loaded player_history    12050    
[00:01:04]: bloom_enabled    false    
[00:01:04]: loaded saveindex    
[00:01:04]: OnFilesLoaded()    
[00:01:04]: OnUpdatePurchaseStateComplete    
[00:01:04]:     Unload FE    
[00:01:04]:     Unload FE done    
[00:01:05]: Mod: workshop-1214482315 (Server Mod)    Registering prefabs    
[00:01:05]: Mod: workshop-1214482315 (Server Mod)      Registering default mod prefab    
[00:01:06]:     LOAD BE    
[00:01:10]:     LOAD BE: done    
[00:01:10]: Loading world: session/0C062A36C4AF18EF/0000000003    
[00:01:10]: Save file is at version 4.77    
[00:01:10]: Begin Session: 0C062A36C4AF18EF
[00:01:10]: saving to server_temp/server_save    
[00:01:11]: MiniMapComponent::AddAtlas( minimap/minimap_data.xml )
[00:01:12]: Loading Nav Grid    
[00:01:12]: setting     summerlength    15    
[00:01:12]: setting     isnightmaredawn    false    
[00:01:12]: setting     elapseddaysinseason    0    
[00:01:12]: setting     isfullmoon    false    
[00:01:12]: setting     moisture    81.86873626709    
[00:01:12]: setting     springlength    20    
[00:01:12]: setting     isnightmarewild    false    
[00:01:12]: setting     moonphase    new    
[00:01:12]: setting     precipitationrate    0    
[00:01:12]: setting     iswet    false    
[00:01:12]: setting     isnewmoon    true    
[00:01:12]: setting     iswinter    false    
[00:01:12]: setting     israining    false    
[00:01:12]: setting     isnightmarewarn    false    
[00:01:12]: setting     precipitation    none    
[00:01:12]: setting     cavephase    night    
[00:01:12]: setting     moistureceil    830.84075927734    
[00:01:12]: setting     isday    false    
[00:01:12]: setting     iscaveday    false    
[00:01:12]: setting     season    autumn    
[00:01:12]: setting     timeinphase    0.68215430577596    
[00:01:12]: setting     temperature    24.641487919696    
[00:01:12]: setting     isnightmarecalm    false    
[00:01:12]: setting     isnight    true    
[00:01:12]: setting     isdusk    false    
[00:01:12]: setting     iscavedusk    false    
[00:01:12]: setting     isautumn    true    
[00:01:12]: setting     issnowing    false    
[00:01:12]: setting     iswaxingmoon    true    
[00:01:12]: setting     pop    0.09853721709356    
[00:01:12]: setting     snowlevel    0    
[00:01:12]: setting     issnowcovered    false    
[00:01:12]: setting     autumnlength    25    
[00:01:12]: setting     phase    night    
[00:01:12]: setting     nightmaretime    0    
[00:01:12]: setting     winterlength    15    
[00:01:12]: setting     isspring    false    
[00:01:12]: setting     nightmarephase    none    
[00:01:12]: setting     remainingdaysinseason    25    
[00:01:12]: setting     cycles    0    
[00:01:12]: setting     iscavenight    true    
[00:01:12]: setting     nightmaretimeinphase    0    
[00:01:12]: setting     wetness    0    
[00:01:12]: setting     time    0.68215430577596    
[00:01:12]: setting     issummer    false    
[00:01:12]: OVERRIDE: setting    day    to    onlynight    
[00:01:17]: Reconstructing topology    
[00:01:17]:     ...Sorting points    
[00:01:17]:     ...Sorting edges    
[00:01:17]:     ...Connecting nodes    
[00:01:17]:     ...Validating connections    
[00:01:17]:     ...Housekeeping    
[00:01:17]:     ...Done!    
[00:01:17]: 1 uploads added to server. From server_temp
[00:01:17]: Telling Client our new session identifier: 0C062A36C4AF18EF
[00:01:17]: ModIndex: Load sequence finished successfully.    
[00:01:17]: Reset() returning
[00:01:18]: Validating portal[8] <-> <nil>[8] (inactive)    
[00:01:18]: Validating portal[10] <-> <nil>[10] (inactive)    
[00:01:18]: Validating portal[1] <-> <nil>[1] (inactive)    
[00:01:18]: Validating portal[5] <-> <nil>[5] (inactive)    
[00:01:18]: Attempting to send resume request
[00:01:18]: Resuming user: session/0C062A36C4AF18EF/A7H4OQHU86QP/0000000003
[00:01:19]: Spawning player at: [Load] (240.60, 0.00, -231.63)    
[00:01:19]: ReceiveResumeNotification
[00:01:19]: Validating portal[6] <-> <nil>[6] (inactive)    
[00:01:19]: Validating portal[9] <-> <nil>[9] (inactive)    
[00:01:19]: Validating portal[4] <-> <nil>[4] (inactive)    
[00:01:19]: Validating portal[2] <-> <nil>[2] (inactive)    
[00:01:19]: Validating portal[7] <-> <nil>[7] (inactive)    
[00:01:19]: Validating portal[3] <-> <nil>[3] (inactive)    
[00:01:19]: Deserializing tile data (454 x 454)
[00:01:37]: [string "scripts/entityscript.lua"]:1063: assertion failed!
LUA ERROR stack traceback:
=[C]:-1 in (global) assert (C) <-1--1>
scripts/entityscript.lua:1063 in (method) GetPosition (Lua) <1059-1065>
   self (valid:false) =
      GUID = 112489
      Transform = Transform (2C729B40)
      inlimbo = false
      actionreplica = table: 68DED7D8
      actioncomponents = table: 68DED3A0
      lower_components_shadow = table: 68DED210
      entity = Entity (705ABEC0)
      AnimState = AnimState (2C7299A0)
      prefab = marblepillar
      Network = Network (2C729BA0)
      Physics = Physics (2C729AC0)
      MiniMapEntity = MiniMapEntity (2C729C00)
      SoundEmitter = SoundEmitter (2C7299E0)
      spawntime = 11.766667280346
      replica = table: 68DED3C8
      name = Marble Pillar
      components = table: 68DED328
      persists = false
../mods/workshop-1214482315/scripts/components/regrowthmanager.lua:122 in (local) fn (Lua) <113-128>
   src = 100028 - world (valid:true)
   target = 112489 - marblepillar (valid:false)
scripts/entityscript.lua:1035 in (method) PushEvent (Lua) <1022-1049>
   self (valid:true) =
      GUID = 100028
      inlimbo = false
      Pathfinder = Pathfinder (14480B30)
      worldstatewatching = table: 2C6E8CF0
      worldprefab = forest
      ismastershard = true
      shard = 100036 - shard_network (valid:true)
      OnRemoveEntity = function - scripts/prefabs/world.lua:226
      pendingtasks = table: 2C6DC388
      hideminimap = false
      state = table: 144AD178
      spawntime = 0
      Transform = Transform (14480A90)
      generated = table: 4D8CF7D8
      event_listening = table: 144AD2E0
      actioncomponents = table: 144AC340
      lower_components_shadow = table: 144AC750
      entity = Entity (3C9C05E8)
      prefab = world
      updatecomponents = table: 2C6E3958
      Map = Map (14480CB0)
      watchingcycles = true
      net = 100032 - forest_network (valid:true)
      persists = false
      meta = table: 4D8CF468
      GroundCreep = GroundCreep (14480990)
      event_listeners = table: 144AD628
      minimap = 100029 - minimap (valid:true)
      PostInit = function - scripts/prefabs/world.lua:204
      ismastersim = true
      name = MISSING NAME
      WaveComponent = WaveComponent (14481610)
      replica = table: 144AC7A0
      topology = table: 4AB80BD8
      components = table: 144AC778
      SoundEmitter = SoundEmitter (14480CF0)
   event = beginregrowth
   data = 112489 - marblepillar (valid:false)
   listeners = table: 1422C440
   tocall = table: 7BFA3F98
   i = 1
   fn = function - ../mods/workshop-1214482315/scripts/components/regrowthmanager.lua:113
../mods/workshop-1214482315/scripts/patches/regrowth.lua:58 in (field) onfinish (Lua) <56-61>
   inst = 112489 - marblepillar (valid:false)
   arg = nil
scripts/components/workable.lua:126 in (method) WorkedBy (Lua) <112-132>
   self =
      onwork = function - scripts/prefabs/marblepillar.lua:19
      lastworktime = 17.666667588055
      inst = 112489 - marblepillar (valid:false)
      savestate = false
      onfinish = function - ../mods/workshop-1214482315/scripts/patches/regrowth.lua:56
      _ = table: 68DEF150
   worker = 111300 - winona (valid:true)
   numworks = 1
scripts/actions.lua:473 in () ? (Lua) <469-487>
   act = Mine 112489 - marblepillar With Inv: 112073 - pickaxe(LIMBO) (valid:false)
   workaction = table: 13F901C8
=(tail call):-1 in ()  (tail) <-1--1>
scripts/bufferedaction.lua:24 in (method) Do (Lua) <20-34>
   self (valid:false) =
      action = table: 13F901C8
      invobject = 112073 - pickaxe(LIMBO) (valid:true)
      onfail = table: 13D16CD8
      doerownsobject = true
      target = 112489 - marblepillar (valid:false)
      options = table: 6A548A80
      doer = 111300 - winona (valid:true)
      onsuccess = table: 13D16B70
scripts/entityscript.lua:1312 in (method) PerformBufferedAction (Lua) <1304-1322>
   self (valid:true) =
      DynamicShadow = DynamicShadow (7C0572E0)
      inlimbo = false
      GetMoistureRateScale = function - scripts/prefabs/player_common.lua:146
      SetCameraDistanc
[00:01:37]: [string "scripts/entityscript.lua"]:1063: assertion failed!
LUA ERROR stack traceback:
    =[C]:-1 in (global) assert (C) <-1--1>
    scripts/entityscript.lua:1063 in (method) GetPosition (Lua) <1059-1065>
    ../mods/workshop-1214482315/scripts/components/regrowthmanager.lua:122 in (local) fn (Lua) <113-128>
    scripts/entityscript.lua:1035 in (method) PushEvent (Lua) <1022-1049>
    ../mods/workshop-1214482315/scripts/patches/regrowth.lua:58 in (field) onfinish (Lua) <56-61>
    scripts/components/workable.lua:126 in (method) WorkedBy (Lua) <112-132>
    scripts/actions.lua:473 in () ? (Lua) <469-487>
    =(tail call):-1 in ()  (tail) <-1--1>
    scripts/bufferedaction.lua:24 in (method) Do (Lua) <20-34>
    scripts/entityscript.lua:1312 in (method) PerformBufferedAction (Lua) <1304-1322>
    scripts/stategraphs/SGwilson.lua:1960 in (field) fn (Lua) <1949-1961>
    scripts/stategraph.lua:568 in (method) UpdateState (Lua) <536-580>
    scripts/stategraph.lua:607 in (method) Update (Lua) <599-627>
    scripts/stategraph.lua:125 in (method) Update (Lua) <109-148>
    scripts/update.lua:218 in () ? (Lua) <149-228>
    
[00:01:51]: Force aborting...
[00:01:51]: unloading prefabs for mod MOD_workshop-1214482315    
[00:01:51]: ModWorkshop::CancelDownloads clearing all unfinished downloads
[00:01:51]: Collecting garbage...
[00:01:51]: lua_gc took 0.13 seconds
[00:01:51]: ~ShardLuaProxy()
[00:01:51]: ~ItemServerLuaProxy()
[00:01:51]: ~InventoryLuaProxy()
[00:01:51]: ~NetworkLuaProxy()
[00:01:51]: ~SimLuaProxy()
[00:01:51]: ModWorkshop::CancelDownloads clearing all unfinished downloads
[00:01:52]: lua_close took 0.29 seconds
[00:01:52]: ModWorkshop::CancelDownloads clearing all unfinished downloads
[00:01:52]: [Steam] Auth ticket cancelled
[00:01:52]:  Manager - ORPHANED UNKNOWN RESOURCES:
[00:01:52]: shaders/ui_yuv.ksh - 1
[00:01:52]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:01:52]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:01:52]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:01:52]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:01:52]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:01:52]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:01:52]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:01:52]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:01:52]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:01:52]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:01:52]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:01:52]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:01:52]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:01:52]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:01:52]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:01:52]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:01:52]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:01:52]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:01:52]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:01:52]: CurlRequestManager::ClientThread::Main() complete
[00:01:52]: HttpClient2 discarded 0 callbacks.
[00:01:52]: Shutting down
 

 

My script

local TUNING = GLOBAL.TUNING

AddComponentPostInit("regrowthmanager", function(self)
    local _worldstate = GLOBAL.TheWorld.state
    self:SetRegrowthForType("cave_fern", TUNING.FLOWER_REGROWTH_TIME, "cave_fern", function()
            -- Flowers grow during the day, during not winter, while the ground is still wet after a rain.
            return ((_worldstate.israining or _worldstate.iscavenight or _worldstate.wetness <= 1 or _worldstate.iswinter) and 0)
                or (_worldstate.isspring and 2) -- double speed in spring
                or 1
        end)
    self:SetRegrowthForType("fireflies", TUNING.CARROT_REGROWTH_TIME, "fireflies", function()
            return (not _worldstate.iswinter and _worldstate.isnight) and 1 or 0
        end)
    self:SetRegrowthForType("marblepillar", 5 , "marblepillar", function()
            return (not _worldstate.iswinter and _worldstate.isnight) and 1 or 0
        end)
end)

AddPrefabPostInit("cave_fern", function(inst)
    local _onpickedfn = inst.components.pickable.onpickedfn
    inst.components.pickable.onpickedfn = function(inst, ...)
        GLOBAL.TheWorld:PushEvent("beginregrowth", inst)
        _onpickedfn(inst, ...)
    end
end)

local function FirefliesOnSave(inst, data)
    data.pickedup = inst._pickedup
end

local function FirefliesOnLoad(inst, data)
    if data then
        inst._pickedup = data.pickedup
    end
end

AddPrefabPostInit("fireflies", function(inst)
    local _onpickupfn = inst.components.inventoryitem.onpickupfn
    inst.components.inventoryitem:SetOnPickupFn(function(inst, ...)
        inst._pickedup = true
        _onpickupfn(inst, ...)
    end)
    local _onfinish = inst.components.workable.onfinish
    inst.components.workable:SetOnFinishCallback(function(inst, ...)
        if not inst._pickedup then --don't want exploits where you drop-catch-drop-catch to spawn a ton
            GLOBAL.TheWorld:PushEvent("beginregrowth", inst)
        end
        _onfinish(inst, ...)
    end)
    inst.OnSave = FirefliesOnSave
    inst.OnLoad = FirefliesOnLoad
end)

AddPrefabPostInit("marblepillar", function(inst)
    local _onfinish = inst.components.workable.onfinish
    inst.components.workable:SetOnFinishCallback(function(inst, ...)
        if not inst._onfinish then 
            GLOBAL.TheWorld:PushEvent("beginregrowth", inst)
        end
        onfinish(inst, ...)
    end)
end)

 

 

It's the last section that's causing the error.

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