Jump to content

Recommended Posts

As title says, I'm currently making another character mod that also has a ghostly companion like Wendy. I basically made use of the same codes as Wendy does but I'd want her ghostly companion to be spawned without waiting for her item's charge time and instead of offering a sacrifice, I'd prefer her companion to be spawned by giving it a telltale heart. How should I go about with this?

 

Any help would be greatly appreciated!

Edited by Aelia

Update: I managed to get the spawning her ghost companion at Day 1 and decided to stick with the sacrifice offering antic but then a new problem rose to the equation. 

 

Upon having a sacrifice offered my game crashes with the "bad argument #1 to 'pairs' (table expected, got nil)" error.

Here is the log:

Spoiler

00:00:00]: 
System Memory:
    Memory Load: 40%
    Available Physical Memory: 1692m/2858m
    Available Page File: 2536m/5714m
    Available Virtual Memory: 2705m/2799m
    Available Extended Virtual Memory: 0m
[00:00:00]: 
Process Memory:
    Peak Working Set Size: 25m
    Working Set Size: 25m
    Quota Peak Page Pool Usage: 177k
    Quota Page Pool Usage: 172k
    Quota Peak Non Paged Pool Usage:7k
    Quota Non Paged Pool Usage: 6k
    Page File Usage: 4m
    Peak Page File Usage: 5m
[00:00:00]: PersistRootStorage is now APP:Klei//DoNotStarveTogetherANewReignBeta/ 
[00:00:00]: Starting Up
[00:00:00]: Version: 197463
[00:00:00]: Current time: Fri Nov 25 02:35:56 2016

[00:00:00]: Don't Starve Together: 197463 WIN32_STEAM
[00:00:00]: Build Date: 1445
[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:01]: Steam AppBuildID: 1472732
[00:00:01]: Steam BetaName(Branch): [anewreignbeta]
[00:00:01]: ....Done
[00:00:01]: Fixing DPI
[00:00:01]: ...Done
[00:00:01]: THREAD - started 'GAClient' (6928)
[00:00:01]: CurlRequestManager::ClientThread::Main()
[00:00:31]: ProfileIndex:5.35
[00:00:31]: [Connect] PendingConnection::Reset(true)
[00:00:31]: Network tick rate: U=15(2), D=0
[00:00:31]: Authorized application D:\Steam\steamapps\common\Don't Starve Together\bin\dontstarve_steam.exe is enabled in the firewall.
[00:00:31]: WindowsFirewall - Application already authorized
[00:00:32]: THREAD - started 'ConsoleInput' (7720)
[00:00:32]: loaded ping_cache
[00:00:32]: Offline user ID: OU_76561198203855285
[00:00:32]: SteamID: 76561198203855285
[00:00:32]: HardwareStats:
  OS                        
    name                      Microsoft Windows 7 Ultimate 
    version                   6.1.7600
    architecture              32-bit
    platformSpecific          SP 0.0
  CPU                       
    numCores                  2
    features                  SSE,SSE2,SSE3,SSSE3,SSE41,SSE42,AVX
    name                      Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz
    manufacturer              GenuineIntel
    clockSpeed                2301
  RAM                       
    megsOfRam                 4096
  GPU                       
    name                      Intel(R) HD Graphics 3000
    driverDate                20131031000000.000000-000
    megsOfRam                 1365
    refreshRate               60
    videoModeDescription      1366 x 768 x 4294967296 colors
    driverVersion             9.17.10.3347

[00:00:32]: cGame::InitializeOnMainThread
[00:00:32]: WindowManager::Initialize
[00:00:32]: CreateWindow: Requesting 1362,706 - 5/6/5 - -1/-1/-1 - 0
[00:00:32]: CreateEGLContext: 16 configs found
[00:00:32]:      0: 8/8/8 -  0/ 0/ 0 - 0
[00:00:32]:      1: 8/8/8 -  0/16/ 0 - 0
[00:00:32]:      2: 8/8/8 -  0/24/ 0 - 0
[00:00:32]:      3: 8/8/8 -  0/24/ 8 - 0
[00:00:32]:      4: 5/5/5 -  0/ 0/ 0 - 0
[00:00:32]:      5: 5/5/5 -  1/ 0/ 0 - 0
[00:00:32]:      6: 5/5/5 -  0/16/ 0 - 0
[00:00:32]:      7: 5/5/5 -  1/16/ 0 - 0
[00:00:32]:      8: 5/5/5 -  0/24/ 0 - 0
[00:00:32]:      9: 5/5/5 -  1/24/ 0 - 0
[00:00:32]:     10: 5/5/5 -  0/24/ 8 - 0
[00:00:32]:     11: 5/5/5 -  1/24/ 8 - 0
[00:00:32]:     12: 8/8/8 -  8/ 0/ 0 - 0
[00:00:32]:     13: 8/8/8 -  8/16/ 0 - 0
[00:00:32]:     14: 8/8/8 -  8/24/ 0 - 0
[00:00:32]:     15: 8/8/8 -  8/24/ 8 - 0
[00:00:32]: RestoreWindowPosition
[00:00:32]:    Saved Client Pos (6 x 30)
[00:00:32]:    Adjusted Window Pos (-2 x 0)
[00:00:32]: EnsureWindowOnScreen
[00:00:32]:    All good.
[00:00:33]: GLInfo
[00:00:33]: ~~~~~~
[00:00:33]: GL_VENDOR: Google Inc.
[00:00:33]: GL_RENDERER: ANGLE (Intel(R) HD Graphics 3000)
[00:00:33]: GL_VERSION: OpenGL ES 2.0 (ANGLE 1.0.0.2249)
[00:00:33]: GL_SHADING_LANGUAGE_VERSION: OpenGL ES GLSL ES 1.00 (ANGLE 1.0.0.2249)
[00:00:33]: THREAD - started 'WindowsInputManager' (3008)
[00:00:33]: OpenGL extensions (19, 19):
[00:00:33]: GL_ANGLE_depth_texture
[00:00:33]: GL_ANGLE_framebuffer_blit
[00:00:33]: GL_ANGLE_framebuffer_multisample
[00:00:33]: GL_ANGLE_instanced_arrays
[00:00:33]: GL_ANGLE_pack_reverse_row_order
[00:00:33]: GL_ANGLE_texture_compression_dxt3
[00:00:33]: GL_ANGLE_texture_compression_dxt5
[00:00:33]: GL_ANGLE_texture_usage
[00:00:33]: GL_ANGLE_translated_shader_source
[00:00:33]: GL_EXT_read_format_bgra
[00:00:33]: GL_EXT_robustness
[00:00:33]: GL_EXT_texture_compression_dxt1
[00:00:33]: GL_EXT_texture_format_BGRA8888
[00:00:33]: GL_EXT_texture_storage
[00:00:33]: GL_OES_get_program_binary
[00:00:33]: GL_OES_packed_depth_stencil
[00:00:33]: GL_OES_rgb8_rgba8
[00:00:33]: GL_OES_standard_derivatives
[00:00:33]: GL_OES_texture_npot
[00:00:33]: GL_MAX_TEXTURE_SIZE = 8192
[00:00:33]: GL_MAX_TEXTURE_IMAGE_UNITS = 16
[00:00:33]: GL_MAX_RENDERBUFFER_SIZE = 8192
[00:00:33]: GL_MAX_VIEWPORT_DIMS = 8192, 8192
[00:00:33]: GL_MAX_VARYING_VECTORS = 10
[00:00:33]: GL_MAX_VERTEX_ATTRIBS = 16
[00:00:33]: GL_MAX_VERTEX_UNIFORM_VECTORS = 254
[00:00:33]: GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = 4
[00:00:33]: GL_MAX_FRAGMENT_UNIFORM_VECTORS = 221
[00:00:33]: 4 compressed texture formats
[00:00:33]: texture format 0x83f0
[00:00:33]: texture format 0x83f1
[00:00:33]: texture format 0x83f2
[00:00:33]: texture format 0x83f3
[00:00:34]: Renderer initialize: Okay
[00:00:35]: AnimManager initialize: Okay
[00:00:35]: Buffers initialize: Okay
[00:00:36]: cDontStarveGame::DoGameSpecificInitialize()
[00:00:36]: GameSpecific initialize: Okay
[00:00:36]: cGame::StartPlaying
[00:00:36]: LOADING LUA
[00:00:36]: DoLuaFile scripts/main.lua
[00:00:36]: DoLuaFile loading buffer scripts/main.lua
[00:00:40]: running main.lua
    
[00:00:40]: loaded modindex    
[00:00:40]: WARNING: icon paths for mod wiki (Wiki & Wolyo) are not valid. Got icon_atlas="modicon.xml" and icon="modicon.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:47]: ModIndex: Beginning normal load sequence.
    
[00:00:47]: ModIndex:GetModsToLoad inserting moddir,     workshop-345692228    
[00:00:47]: ModIndex:GetModsToLoad inserting moddir,     workshop-351325790    
[00:00:47]: ModIndex:GetModsToLoad inserting moddir,     workshop-376333686    
[00:00:47]: ModIndex:GetModsToLoad inserting moddir,     workshop-416991215    
[00:00:47]: ModIndex:GetModsToLoad inserting moddir,     workshop-727774324    
[00:00:47]: loaded mod_config_data/modconfiguration_workshop-345692228_staging    
[00:00:47]: Loading mod: workshop-345692228 (Minimap HUD) Version:1.0.7    
[00:00:47]: Could not load mod_config_data/modconfiguration_workshop-351325790_staging    
[00:00:47]: Loading mod: workshop-351325790 (Geometric Placement) Version:2.1.4    
[00:00:47]: Could not load mod_config_data/modconfiguration_workshop-376333686_staging    
[00:00:47]: Loading mod: workshop-376333686 (Combined Status) Version:1.6.14    
[00:00:47]: Could not load mod_config_data/modconfiguration_workshop-416991215_staging    
[00:00:47]: Loading mod: workshop-416991215 (Dusk and Night Music) Version:1.2.1    
[00:00:47]: Could not load mod_config_data/modconfiguration_workshop-727774324_staging    
[00:00:47]: Loading mod: workshop-727774324 (Craft Pot) Version:0.8.8    
[00:00:47]: Mod: workshop-345692228 (Minimap HUD)    Loading modworldgenmain.lua    
[00:00:47]: Mod: workshop-345692228 (Minimap HUD)      Mod had no modworldgenmain.lua. Skipping.    
[00:00:47]: Mod: workshop-345692228 (Minimap HUD)    Loading modmain.lua    
[00:00:48]: Mod: workshop-416991215 (Dusk and Night Music)    Loading modworldgenmain.lua    
[00:00:48]: Mod: workshop-416991215 (Dusk and Night Music)      Mod had no modworldgenmain.lua. Skipping.    
[00:00:48]: Mod: workshop-416991215 (Dusk and Night Music)    Loading modmain.lua    
[00:00:48]: Mod: workshop-376333686 (Combined Status)    Loading modworldgenmain.lua    
[00:00:48]: Mod: workshop-376333686 (Combined Status)      Mod had no modworldgenmain.lua. Skipping.    
[00:00:48]: Mod: workshop-376333686 (Combined Status)    Loading modmain.lua    
[00:00:48]: ModIndex:GetModsToLoad inserting moddir,     workshop-345692228    
[00:00:48]: ModIndex:GetModsToLoad inserting moddir,     workshop-351325790    
[00:00:48]: ModIndex:GetModsToLoad inserting moddir,     workshop-376333686    
[00:00:48]: ModIndex:GetModsToLoad inserting moddir,     workshop-416991215    
[00:00:48]: ModIndex:GetModsToLoad inserting moddir,     workshop-727774324    
[00:00:48]: Mod: workshop-351325790 (Geometric Placement)    Loading modworldgenmain.lua    
[00:00:48]: Mod: workshop-351325790 (Geometric Placement)      Mod had no modworldgenmain.lua. Skipping.    
[00:00:48]: Mod: workshop-351325790 (Geometric Placement)    Loading modmain.lua    
[00:00:49]: Mod: workshop-727774324 (Craft Pot)    Loading modworldgenmain.lua    
[00:00:49]: Mod: workshop-727774324 (Craft Pot)      Mod had no modworldgenmain.lua. Skipping.    
[00:00:49]: Mod: workshop-727774324 (Craft Pot)    Loading modmain.lua    
[00:00:56]: LOADING LUA SUCCESS
[00:00:56]: CURL ERROR: (metric.kleientertainment.com) Could not resolve host: metric.kleientertainment.com
[00:00:56]: CURL ERROR: (metric.kleientertainment.com) Could not resolve host: metric.kleientertainment.com
[00:00:58]: PlayerDeaths loaded morgue    1719    
[00:00:58]: PlayerHistory loaded player_history_staging    1491    
[00:00:58]: bloom_enabled    false    
[00:00:58]: loaded saveindex    
[00:00:58]: OnFilesLoaded()    
[00:00:58]: OnUpdatePurchaseStateComplete    
[00:01:40]: Mod: workshop-345692228 (Minimap HUD)    Registering prefabs    
[00:01:40]: Mod: workshop-345692228 (Minimap HUD)      Registering default mod prefab    
[00:01:40]: Mod: workshop-416991215 (Dusk and Night Music)    Registering prefabs    
[00:01:40]: Mod: workshop-416991215 (Dusk and Night Music)      Registering default mod prefab    
[00:01:40]: Mod: workshop-376333686 (Combined Status)    Registering prefabs    
[00:01:40]: Mod: workshop-376333686 (Combined Status)      Registering default mod prefab    
[00:01:40]: Mod: workshop-351325790 (Geometric Placement)    Registering prefabs    
[00:01:40]: Mod: workshop-351325790 (Geometric Placement)      Registering prefab file: prefabs/buildgridplacer    
[00:01:40]: Mod: workshop-351325790 (Geometric Placement)        buildgridplacer    
[00:01:40]: Mod: workshop-351325790 (Geometric Placement)      Registering default mod prefab    
[00:01:40]: Mod: workshop-727774324 (Craft Pot)    Registering prefabs    
[00:01:40]: Mod: workshop-727774324 (Craft Pot)      Registering default mod prefab    
[00:01:40]:     Load FE    
[00:01:43]:     Load FE: done    
[00:01:43]: OnLoadPermissionList: APP:Klei//DoNotStarveTogetherANewReignBeta/client_save/blocklist.txt (Failure)
[00:01:43]: OnLoadPermissionList: APP:Klei//DoNotStarveTogetherANewReignBeta/client_save/adminlist.txt (Failure)
[00:01:43]: OnLoadUserIdList: APP:Klei//DoNotStarveTogetherANewReignBeta/client_save/whitelist.txt (Failure)
[00:01:43]: SimLuaProxy::QueryServer()
[00:01:43]: ModIndex: Load sequence finished successfully.    
[00:01:43]: Reset() returning
[00:01:43]: CURL ERROR: (s3.amazonaws.com) Could not resolve host: s3.amazonaws.com
[00:01:54]: [Steam] Auth Session Ticket requested...
[00:01:55]: [Steam] Got Auth Session Ticket
[00:01:55]: CURL ERROR: (login.kleientertainment.com) Could not resolve host: login.kleientertainment.com
[00:01:55]: [0] Account Failed (3): ""
[00:01:55]: [Warning] Empty error code received, dumping response:
[00:01:55]: 
[00:01:55]: [Connect] PendingConnection::Reset(true)
[00:01:55]: failed_communication    
[00:01:55]: [Connect] PendingConnection::Reset(true)
[00:01:57]: SimLuaProxy::QueryServer()
[00:01:57]: SetCountdownDate:    -0.15130787037037    2.4265277777778    -2.2752199074074    
[00:01:57]: CURL ERROR: (d21wmy1ql1e52r.cloudfront.net) Could not resolve host: d21wmy1ql1e52r.cloudfront.net
[00:01:59]: QueryStats: { "req":"modrank", "field":"Session.Loads.Mods.list", "fieldop":"unwind", "linkpref":"external", "limit": 20}
[00:01:59]: Frontend-Unloading mod 'all'.    
[00:01:59]: CURL ERROR: (clientservice.kleientertainment.com) Could not resolve host: clientservice.kleientertainment.com
[00:01:59]: FrontendLoadMod    wiki    
[00:01:59]: Could not load mod_config_data/modconfiguration_wiki_staging    
[00:01:59]: Fontend-Loading mod: wiki (Wiki & Wolyo) Version:0.9    
[00:01:59]: Mod: wiki (Wiki & Wolyo)    Loading modworldgenmain.lua    
[00:01:59]: Mod: wiki (Wiki & Wolyo)      Mod had no modworldgenmain.lua. Skipping.    
[00:02:05]: Frontend-Unloading mod 'all'.    
[00:02:10]: FrontendLoadMod    wiki    
[00:02:10]: Could not load mod_config_data/modconfiguration_wiki_staging    
[00:02:10]: Fontend-Loading mod: wiki (Wiki & Wolyo) Version:0.9    
[00:02:10]: Mod: wiki (Wiki & Wolyo)    Loading modworldgenmain.lua    
[00:02:10]: Mod: wiki (Wiki & Wolyo)      Mod had no modworldgenmain.lua. Skipping.    
[00:02:18]: Could not load mod_config_data/modconfiguration_wiki_staging    
[00:02:18]: Not applying level data overrides.    
[00:02:18]: Not applying world gen overrides.    
[00:02:18]: Network tick rate: U=15(2), D=0
[00:02:18]: ModWorkshop::CancelDownloads clearing all unfinished downloads
[00:02:18]: About to start a server with the following settings:
[00:02:18]:   Dedicated: false
[00:02:18]:   Online: false
[00:02:18]:   Passworded: false
[00:02:18]:   ServerPort: 10999
[00:02:18]:   SteamAuthPort: 8766
[00:02:18]:   SteamMasterServerPort: 27016
[00:02:18]:   ClanID: false
[00:02:18]:   ClanOnly: false
[00:02:18]:   ClanAdmin: false
[00:02:18]:   LanOnly: true
[00:02:18]:   FriendsOnly: false
[00:02:18]:   EnableAutosaver: true
[00:02:18]:   PVP: false
[00:02:18]:   MaxPlayers: 6
[00:02:18]:   GameMode: survival
[00:02:18]:   OverridenDNS: 
[00:02:18]:   PauseWhenEmpty: true
[00:02:18]:   VoteEnabled: false
[00:02:18]:   InternetBroadcasting: true
[00:02:18]:   Intent: competitive
[00:02:18]: [Warning] Could not confirm port 10999 is open in the firewall. 
[00:02:18]: Could not load mod_config_data/modconfiguration_wiki_staging    
[00:02:18]: Lan Server Started on port: 10999
[00:02:20]: unloading prefabs for mod MOD_workshop-345692228    
[00:02:20]: unloading prefabs for mod MOD_workshop-416991215    
[00:02:20]: unloading prefabs for mod MOD_workshop-376333686    
[00:02:20]: unloading prefabs for mod MOD_workshop-351325790    
[00:02:20]: unloading prefabs for mod MOD_workshop-727774324    
[00:02:20]: Collecting garbage...
[00:02:20]: lua_gc took 0.03 seconds
[00:02:20]: ~ShardLuaProxy()
[00:02:20]: ~ItemServerLuaProxy()
[00:02:20]: ~InventoryLuaProxy()
[00:02:20]: ~NetworkLuaProxy()
[00:02:20]: ~SimLuaProxy()
[00:02:20]: ModWorkshop::CancelDownloads clearing all unfinished downloads
[00:02:20]: lua_close took 0.05 seconds
[00:02:20]: ReleaseAll
[00:02:20]: ReleaseAll Finished
[00:02:20]: cGame::StartPlaying
[00:02:20]: LOADING LUA
[00:02:20]: DoLuaFile scripts/main.lua
[00:02:20]: DoLuaFile loading buffer scripts/main.lua
[00:02:20]: running main.lua
    
[00:02:20]: loaded modindex    
[00:02:20]: WARNING: icon paths for mod wiki (Wiki & Wolyo) are not valid. Got icon_atlas="modicon.xml" and icon="modicon.tex".
Please ensure that these point to valid files in your mod folder, or else comment out those lines from your modinfo.lua.    
[00:02:21]: ModIndex: Beginning normal load sequence.
    
[00:02:21]: ModIndex:GetModsToLoad inserting moddir,     wiki    
[00:02:21]: ModIndex:GetModsToLoad inserting moddir,     workshop-345692228    
[00:02:21]: ModIndex:GetModsToLoad inserting moddir,     workshop-351325790    
[00:02:21]: ModIndex:GetModsToLoad inserting moddir,     workshop-376333686    
[00:02:21]: ModIndex:GetModsToLoad inserting moddir,     workshop-416991215    
[00:02:21]: ModIndex:GetModsToLoad inserting moddir,     workshop-727774324    
[00:02:21]: Could not load mod_config_data/modconfiguration_wiki_staging    
[00:02:21]: Loading mod: wiki (Wiki & Wolyo) Version:0.9    
[00:02:21]: loaded mod_config_data/modconfiguration_workshop-345692228_staging    
[00:02:21]: Loading mod: workshop-345692228 (Minimap HUD) Version:1.0.7    
[00:02:21]: Could not load mod_config_data/modconfiguration_workshop-351325790_staging    
[00:02:21]: Loading mod: workshop-351325790 (Geometric Placement) Version:2.1.4    
[00:02:21]: Could not load mod_config_data/modconfiguration_workshop-376333686_staging    
[00:02:21]: Loading mod: workshop-376333686 (Combined Status) Version:1.6.14    
[00:02:21]: Could not load mod_config_data/modconfiguration_workshop-416991215_staging    
[00:02:21]: Loading mod: workshop-416991215 (Dusk and Night Music) Version:1.2.1    
[00:02:21]: Could not load mod_config_data/modconfiguration_workshop-727774324_staging    
[00:02:21]: Loading mod: workshop-727774324 (Craft Pot) Version:0.8.8    
[00:02:21]: Mod: wiki (Wiki & Wolyo)    Loading modworldgenmain.lua    
[00:02:21]: Mod: wiki (Wiki & Wolyo)      Mod had no modworldgenmain.lua. Skipping.    
[00:02:21]: Mod: wiki (Wiki & Wolyo)    Loading modmain.lua    
[00:02:21]: Mod: workshop-345692228 (Minimap HUD)    Loading modworldgenmain.lua    
[00:02:21]: Mod: workshop-345692228 (Minimap HUD)      Mod had no modworldgenmain.lua. Skipping.    
[00:02:21]: Mod: workshop-345692228 (Minimap HUD)    Loading modmain.lua    
[00:02:21]: Mod: workshop-416991215 (Dusk and Night Music)    Loading modworldgenmain.lua    
[00:02:21]: Mod: workshop-416991215 (Dusk and Night Music)      Mod had no modworldgenmain.lua. Skipping.    
[00:02:21]: Mod: workshop-416991215 (Dusk and Night Music)    Loading modmain.lua    
[00:02:21]: Mod: workshop-376333686 (Combined Status)    Loading modworldgenmain.lua    
[00:02:21]: Mod: workshop-376333686 (Combined Status)      Mod had no modworldgenmain.lua. Skipping.    
[00:02:21]: Mod: workshop-376333686 (Combined Status)    Loading modmain.lua    
[00:02:21]: ModIndex:GetModsToLoad inserting moddir,     wiki    
[00:02:21]: ModIndex:GetModsToLoad inserting moddir,     workshop-345692228    
[00:02:21]: ModIndex:GetModsToLoad inserting moddir,     workshop-351325790    
[00:02:21]: ModIndex:GetModsToLoad inserting moddir,     workshop-376333686    
[00:02:21]: ModIndex:GetModsToLoad inserting moddir,     workshop-416991215    
[00:02:21]: ModIndex:GetModsToLoad inserting moddir,     workshop-727774324    
[00:02:21]: Mod: workshop-351325790 (Geometric Placement)    Loading modworldgenmain.lua    
[00:02:21]: Mod: workshop-351325790 (Geometric Placement)      Mod had no modworldgenmain.lua. Skipping.    
[00:02:21]: Mod: workshop-351325790 (Geometric Placement)    Loading modmain.lua    
[00:02:21]: Mod: workshop-727774324 (Craft Pot)    Loading modworldgenmain.lua    
[00:02:21]: Mod: workshop-727774324 (Craft Pot)      Mod had no modworldgenmain.lua. Skipping.    
[00:02:21]: Mod: workshop-727774324 (Craft Pot)    Loading modmain.lua    
[00:02:21]: LOADING LUA SUCCESS
[00:02:21]: PlayerDeaths loaded morgue    1719    
[00:02:21]: PlayerHistory loaded player_history_staging    1491    
[00:02:21]: bloom_enabled    false    
[00:02:21]: loaded saveindex    
[00:02:21]: OnFilesLoaded()    
[00:02:21]: OnUpdatePurchaseStateComplete    
[00:02:21]: Load Slot: ... generating new world    
[00:02:21]: WorldSim::SimThread::SimThread()
[00:02:21]: ABOUT TO INSTALL STACKTRACE
[00:02:21]: DoLuaFile scripts/stacktrace.lua
[00:02:21]: DoLuaFile loading buffer scripts/stacktrace.lua
[00:02:21]: INSTALLED STACKTRACE
[00:02:21]: WorldSim::SimThread::SimThread() complete
[00:02:21]: THREAD - started 'WorldSim' (1948)
[00:02:21]: WorldSim::SimThread::Main()
[00:02:21]: DoLuaFile scripts/worldgen_main.lua
[00:02:21]: ModIndex: Load sequence finished successfully.    
[00:02:21]: Reset() returning
[00:02:21]: DoLuaFile loading buffer scripts/worldgen_main.lua
[00:02:21]: DLC enabled :     false    
[00:02:21]: ModIndex:GetModsToLoad inserting modname,     wiki    
[00:02:21]: ModIndex:GetModsToLoad inserting modname,     workshop-351325790    
[00:02:21]: ModIndex:GetModsToLoad inserting modname,     workshop-727774324    
[00:02:21]: ModIndex:GetModsToLoad inserting modname,     workshop-416991215    
[00:02:21]: ModIndex:GetModsToLoad inserting modname,     workshop-376333686    
[00:02:21]: ModIndex:GetModsToLoad inserting modname,     workshop-345692228    
[00:02:21]: Loading mod: wiki (Wiki & Wolyo) Version:0.9    
[00:02:21]: Loading mod: workshop-351325790 (Geometric Placement) Version:2.1.4    
[00:02:21]: Loading mod: workshop-727774324 (Craft Pot) Version:0.8.8    
[00:02:21]: Loading mod: workshop-416991215 (Dusk and Night Music) Version:1.2.1    
[00:02:21]: Loading mod: workshop-376333686 (Combined Status) Version:1.6.14    
[00:02:21]: Loading mod: workshop-345692228 (Minimap HUD) Version:1.0.7    
[00:02:21]: Mod: wiki (Wiki & Wolyo)    Loading modworldgenmain.lua    
[00:02:21]: Mod: wiki (Wiki & Wolyo)      Mod had no modworldgenmain.lua. Skipping.    
[00:02:21]: Mod: workshop-345692228 (Minimap HUD)    Loading modworldgenmain.lua    
[00:02:21]: Mod: workshop-345692228 (Minimap HUD)      Mod had no modworldgenmain.lua. Skipping.    
[00:02:21]: Mod: workshop-416991215 (Dusk and Night Music)    Loading modworldgenmain.lua    
[00:02:21]: Mod: workshop-416991215 (Dusk and Night Music)      Mod had no modworldgenmain.lua. Skipping.    
[00:02:21]: Mod: workshop-376333686 (Combined Status)    Loading modworldgenmain.lua    
[00:02:21]: Mod: workshop-376333686 (Combined Status)      Mod had no modworldgenmain.lua. Skipping.    
[00:02:21]: Mod: workshop-351325790 (Geometric Placement)    Loading modworldgenmain.lua    
[00:02:21]: Mod: workshop-351325790 (Geometric Placement)      Mod had no modworldgenmain.lua. Skipping.    
[00:02:21]: Mod: workshop-727774324 (Craft Pot)    Loading modworldgenmain.lua    
[00:02:21]: Mod: workshop-727774324 (Craft Pot)      Mod had no modworldgenmain.lua. Skipping.    
[00:02:21]: running worldgen_main.lua
    
[00:02:21]: SEED =     1480012697    
[00:02:21]: Generating world with these parameters:    
[00:02:21]: level_type    SURVIVAL    
[00:02:21]: level_data:    
[00:02:21]:     K:     1     V:     table: 0B518088    
[00:02:21]:         K:     desc     V:     The standard Don't Starve experience.    
[00:02:21]:         K:     hideminimap     V:     false    
[00:02:21]:         K:     id     V:     SURVIVAL_TOGETHER    
[00:02:21]:         K:     location     V:     forest    
[00:02:21]:         K:     max_playlist_position     V:     999    
[00:02:21]:         K:     min_playlist_position     V:     0    
[00:02:21]:         K:     name     V:     Default    
[00:02:21]:         K:     numrandom_set_pieces     V:     4    
[00:02:21]:         K:     ordered_story_setpieces     V:     table: 0B517EA8    
[00:02:21]:             K:     1     V:     Sculptures_1    
[00:02:21]:             K:     2     V:     Maxwell5    
[00:02:21]:         K:     override_level_string     V:     false    
[00:02:21]:         K:     overrides     V:     table: 0B5190C8    
[00:02:21]:             K:     alternatehunt     V:     default    
[00:02:21]:             K:     angrybees     V:     default    
[00:02:21]:             K:     autumn     V:     default    
[00:02:21]:             K:     bearger     V:     default    
[00:02:21]:             K:     beefalo     V:     default    
[00:02:21]:             K:     beefaloheat     V:     default    
[00:02:21]:             K:     bees     V:     default    
[00:02:21]:             K:     berrybush     V:     default    
[00:02:21]:             K:     birds     V:     default    
[00:02:21]:             K:     boons     V:     default    
[00:02:21]:             K:     branching     V:     default    
[00:02:21]:             K:     butterfly     V:     default    
[00:02:21]:             K:     buzzard     V:     default    
[00:02:21]:             K:     cactus     V:     default    
[00:02:21]:             K:     carrot     V:     default    
[00:02:21]:             K:     catcoon     V:     default    
[00:02:21]:             K:     chess     V:     default    
[00:02:21]:             K:     day     V:     default    
[00:02:21]:             K:     deciduousmonster     V:     default    
[00:02:21]:             K:     deerclops     V:     default    
[00:02:21]:             K:     disease_delay     V:     default    
[00:02:21]:             K:     dragonfly     V:     default    
[00:02:21]:             K:     flint     V:     default    
[00:02:21]:             K:     flowers     V:     default    
[00:02:21]:             K:     frograin     V:     default    
[00:02:21]:             K:     goosemoose     V:     default    
[00:02:21]:             K:     grass     V:     default    
[00:02:21]:             K:     houndmound     V:     default    
[00:02:21]:             K:     hounds     V:     default    
[00:02:21]:             K:     hunt     V:     default    
[00:02:21]:             K:     krampus     V:     default    
[00:02:21]:             K:     layout_mode     V:     LinkNodesByKeys    
[00:02:21]:             K:     liefs     V:     default    
[00:02:21]:             K:     lightning     V:     default    
[00:02:21]:             K:     lightninggoat     V:     default    
[00:02:21]:             K:     loop     V:     default    
[00:02:21]:             K:     lureplants     V:     default    
[00:02:21]:             K:     marshbush     V:     default    
[00:02:21]:             K:     merm     V:     default    
[00:02:21]:             K:     meteorshowers     V:     default    
[00:02:21]:             K:     meteorspawner     V:     default    
[00:02:21]:             K:     moles     V:     default    
[00:02:21]:             K:     mushroom     V:     default    
[00:02:21]:             K:     penguins     V:     default    
[00:02:21]:             K:     perd     V:     default    
[00:02:21]:             K:     petrification     V:     default    
[00:02:21]:             K:     pigs     V:     default    
[00:02:21]:             K:     ponds     V:     default    
[00:02:21]:             K:     prefabswaps_start     V:     default    
[00:02:21]:             K:     rabbits     V:     default    
[00:02:21]:             K:     reeds     V:     default    
[00:02:21]:             K:     regrowth     V:     default    
[00:02:21]:             K:     roads     V:     default    
[00:02:21]:             K:     rock     V:     default    
[00:02:21]:             K:     rock_ice     V:     default    
[00:02:21]:             K:     sapling     V:     default    
[00:02:21]:             K:     season_start     V:     default    
[00:02:21]:             K:     specialevent     V:     default    
[00:02:21]:             K:     spiders     V:     default    
[00:02:21]:             K:     spring     V:     default    
[00:02:21]:             K:     start_location     V:     default    
[00:02:21]:             K:     summer     V:     default    
[00:02:21]:             K:     tallbirds     V:     default    
[00:02:21]:             K:     task_set     V:     default    
[00:02:21]:             K:     tentacles     V:     default    
[00:02:21]:             K:     touchstone     V:     default    
[00:02:21]:             K:     trees     V:     default    
[00:02:21]:             K:     tumbleweed     V:     default    
[00:02:21]:             K:     walrus     V:     default    
[00:02:21]:             K:     weather     V:     default    
[00:02:21]:             K:     wildfires     V:     default    
[00:02:21]:             K:     winter     V:     default    
[00:02:21]:             K:     world_size     V:     default    
[00:02:21]:             K:     wormhole_prefab     V:     wormhole    
[00:02:21]:         K:     random_set_pieces     V:     table: 0B518308    
[00:02:21]:             K:     1     V:     Sculptures_2    
[00:02:21]:             K:     2     V:     Sculptures_3    
[00:02:21]:             K:     3     V:     Sculptures_4    
[00:02:21]:             K:     4     V:     Sculptures_5    
[00:02:21]:             K:     5     V:     Chessy_1    
[00:02:21]:             K:     6     V:     Chessy_2    
[00:02:21]:             K:     7     V:     Chessy_3    
[00:02:21]:             K:     8     V:     Chessy_4    
[00:02:21]:             K:     9     V:     Chessy_5    
[00:02:21]:             K:     10     V:     Chessy_6    
[00:02:21]:             K:     11     V:     Maxwell1    
[00:02:21]:             K:     12     V:     Maxwell2    
[00:02:21]:             K:     13     V:     Maxwell3    
[00:02:21]:             K:     14     V:     Maxwell4    
[00:02:21]:             K:     15     V:     Maxwell6    
[00:02:21]:             K:     16     V:     Maxwell7    
[00:02:21]:             K:     17     V:     Warzone_1    
[00:02:21]:             K:     18     V:     Warzone_2    
[00:02:21]:             K:     19     V:     Warzone_3    
[00:02:21]:         K:     required_prefabs     V:     table: 0B517ED0    
[00:02:21]:             K:     1     V:     multiplayer_portal    
[00:02:21]:         K:     substitutes     V:     table: 0B518DA8    
[00:02:21]:         K:     version     V:     3    
[00:02:21]: 
#######
#
# Generating SURVIVAL Mode Level
#
#######
    
[00:02:21]: Prefab Swap Selection: regular grass    
[00:02:21]: Prefab Swap Selection: twiggy trees    
[00:02:21]: Prefab Swap Selection: regular berries    
[00:02:22]: Chessy_2    added to    Squeltch    
[00:02:22]: Chessy_5    added to    Befriend the pigs    
[00:02:22]: Sculptures_2    added to    Mole Colony Rocks    
[00:02:22]: Sculptures_3    added to    Badlands    
[00:02:22]: New size:    425    default    
[00:02:22]: Creating story...    
[00:02:22]: LinkNodesByKeys    
[00:02:22]: Finding valid start task...    
[00:02:22]:    ...picked     Make a pick    
[00:02:22]: Has start node    Clearing    
[00:02:22]: Baking map...    425    
[00:02:22]: [WorldSimActual::GenerateVoronoiMap]
[00:02:22]: GenerateVoronoiMap [1]:
[00:02:23]: ...Done.
[00:02:23]: [AddEmptyNodes]
[00:02:23]: GenerateVoronoiMap [100]:
[00:02:26]: ...Done.
[00:02:26]: [WorldSimActual::GenerateVoronoiMap] complete [success]
[00:02:26]: [WorldSimActual::ConvertToTileMap]
[00:02:26]: [ConvertToTileMap]
[00:02:26]: [WorldSimActual::ConvertToTileMap] complete
[00:02:26]: [WorldSimActual::SeparateIslands]
[00:02:26]: [SeparateIslands]
[00:02:26]: [WorldSimActual::SeparateIslands] complete
[00:02:26]: Map Baked!    
[00:02:26]: [WorldSimActual::ForceConnectivity]
[00:02:26]: [GenerateLandmasses]
[00:02:26]: [MergeConnectedLandmasses] true
[00:02:26]: [WorldSimActual::ForceConnectivity] complete
[00:02:26]: [GetWormholesExtra] connected 0 unconnected 1
[00:02:26]: [GetWormholesExtra] after: connected 1 unconnected 0
[00:02:26]: [GetWormholesExtra] pushed 0 wormholes
[00:02:26]: [WorldSimActual::DrawRoads]
[00:02:26]: [DrawRoads]
[00:02:26]: [WorldSimActual::DrawRoads] complete
[00:02:26]: Encoding...    
[00:02:26]: Encoding... DONE    
[00:02:26]: Checking Tags    
[00:02:26]: Populating voronoi...    
[00:02:29]: Warning! Could not find a spot for WormholeGrass in node Great Plains:1:BeefalowPlain    
[00:02:29]: Warning! Could not find a spot for ResurrectionStone in node Dig that rock:5:Rocky    
[00:02:29]: Warning! Could not find a spot for TwigsBoon in node Dig that rock:5:Rocky    
[00:02:29]: Warning! Could not find a spot for Chessy_5 in node Befriend the pigs:0:Marsh    
[00:02:29]: disconnected tiles...    0    
[00:02:29]: Done forest map gen!    
[00:02:29]: Checking map...    
[00:02:29]: Generation complete    
[00:02:29]: WorldSim::SimThread::Main() complete
[00:02:29]: Serializing world: session/442779653E37B9D6/0000000002
[00:02:29]:     Unload FE    
[00:02:29]:     Unload FE done    
[00:02:31]: Mod: wiki (Wiki & Wolyo)    Registering prefabs    
[00:02:31]: Mod: wiki (Wiki & Wolyo)      Registering prefab file: prefabs/wiki    
[00:02:31]: Mod: wiki (Wiki & Wolyo)        wiki    
[00:02:31]: Mod: wiki (Wiki & Wolyo)      Registering prefab file: prefabs/wiki_none    
[00:02:31]: Mod: wiki (Wiki & Wolyo)        wiki_none    
[00:02:31]: Mod: wiki (Wiki & Wolyo)      Registering prefab file: prefabs/willantern    
[00:02:31]: Mod: wiki (Wiki & Wolyo)        willantern    
[00:02:31]: Mod: wiki (Wiki & Wolyo)        willanternlight    
[00:02:31]: Mod: wiki (Wiki & Wolyo)      Registering prefab file: prefabs/walter_bear    
[00:02:31]: Mod: wiki (Wiki & Wolyo)        walter_bear    
[00:02:31]: Mod: wiki (Wiki & Wolyo)      Registering prefab file: prefabs/walter    
[00:02:31]: Mod: wiki (Wiki & Wolyo)        walter    
[00:02:31]: Mod: wiki (Wiki & Wolyo)      Registering default mod prefab    
[00:02:33]: Mod: workshop-345692228 (Minimap HUD)    Registering prefabs    
[00:02:33]: Mod: workshop-345692228 (Minimap HUD)      Registering default mod prefab    
[00:02:33]: Mod: workshop-416991215 (Dusk and Night Music)    Registering prefabs    
[00:02:33]: Mod: workshop-416991215 (Dusk and Night Music)      Registering default mod prefab    
[00:02:33]: Mod: workshop-376333686 (Combined Status)    Registering prefabs    
[00:02:33]: Mod: workshop-376333686 (Combined Status)      Registering default mod prefab    
[00:02:33]: Mod: workshop-351325790 (Geometric Placement)    Registering prefabs    
[00:02:33]: Mod: workshop-351325790 (Geometric Placement)      Registering prefab file: prefabs/buildgridplacer    
[00:02:33]: Mod: workshop-351325790 (Geometric Placement)        buildgridplacer    
[00:02:33]: Mod: workshop-351325790 (Geometric Placement)      Registering default mod prefab    
[00:02:33]: Mod: workshop-727774324 (Craft Pot)    Registering prefabs    
[00:02:33]: Mod: workshop-727774324 (Craft Pot)      Registering default mod prefab    
[00:02:33]:     LOAD BE    
[00:02:40]:     LOAD BE: done    
[00:02:40]: Begin Session: 442779653E37B9D6
[00:02:40]: saving to server_temp/server_save    
[00:02:41]: MiniMapComponent::AddAtlas( minimap/minimap_data.xml )
[00:02:41]: MiniMapComponent::AddAtlas( ../mods/wiki/images/map_icons/wiki.xml )
[00:02:42]: Loading Nav Grid    
[00:02:51]: Reconstructing topology    
[00:02:51]:     ...Sorting points    
[00:02:51]:     ...Sorting edges    
[00:02:51]:     ...Connecting nodes    
[00:02:51]:     ...Validating connections    
[00:02:51]:     ...Housekeeping    
[00:02:51]:     ...Done!    
[00:02:51]: 1 uploads added to server. From server_temp
[00:02:51]: Telling Client our new session identifier: 442779653E37B9D6
[00:02:51]: CURL ERROR: (metric.kleientertainment.com) Could not resolve host: metric.kleientertainment.com
[00:02:53]: Validating portal[1] <-> <nil>[1] (inactive)    
[00:02:54]: Validating portal[2] <-> <nil>[2] (inactive)    
[00:02:54]: Validating portal[3] <-> <nil>[3] (inactive)    
[00:02:55]: Attempting to send resume request
[00:02:55]: Resuming user: session/442779653E37B9D6/OU_76561198203855285_
[00:02:55]: ReceiveResumeNotification
[00:02:55]: Deleting user: session/442779653E37B9D6/OU_76561198203855285_/0000000003
[00:02:59]: Validating portal[4] <-> <nil>[4] (inactive)    
[00:02:59]: Validating portal[5] <-> <nil>[5] (inactive)    
[00:02:59]: Validating portal[6] <-> <nil>[6] (inactive)    
[00:02:59]: Validating portal[7] <-> <nil>[7] (inactive)    
[00:02:59]: Validating portal[8] <-> <nil>[8] (inactive)    
[00:02:59]: Validating portal[9] <-> <nil>[9] (inactive)    
[00:02:59]: Validating portal[10] <-> <nil>[10] (inactive)    
[00:03:05]: WARNING! Could not find region 'FROMNUM' from atlas 'FROMNUM'. Is the region specified in the atlas?
[00:03:05]: Looking for default texture '' from atlas 'FROMNUM'.
[00:03:05]: Error Looking for default texture in from atlas 'FROMNUM'.
[00:03:05]: WARNING! Could not find region 'FROMNUM' from atlas 'FROMNUM'. Is the region specified in the atlas?
[00:03:05]: Looking for default texture '' from atlas 'FROMNUM'.
[00:03:05]: Error Looking for default texture in from atlas 'FROMNUM'.
[00:03:07]: Spawn request: wiki from [Host] Ariana Venti
[00:03:07]: Skin request: (wiki_none) () () () ()
[00:03:07]: Invalid spawn request, defaulting to wiki
[00:03:10]: Spawning player at: [Fixed] (-58.00, 0.00, 58.00)    
[00:03:10]: Serializing user: session/442779653E37B9D6/OU_76561198203855285_/0000000003
[00:03:10]: Deserializing tile data (425 x 425)
[00:03:42]: [string "../mods/wiki/scripts/prefabs/walter.lua"]:105: bad argument #1 to 'pairs' (table expected, got nil)
LUA ERROR stack traceback:
=[C]:-1 in (global) pairs (C) <-1--1>
../mods/wiki/scripts/prefabs/walter.lua:105 in (method) LinkToPlayer (Lua) <99-109>
   inst = 113814 - walter (valid:true)
   player = 111838 - wiki (valid:true)
../mods/wiki/scripts/prefabs/walter_bear.lua:44 in (upvalue) ondeath (Lua) <30-48>
   inst = 112650 - walter_bear (valid:true)
   deadthing = 113799 - butterfly (valid:true)
   killer = nil
   walter = 113814 - walter (valid:true)
../mods/wiki/scripts/prefabs/walter_bear.lua:164 in (local) fn (Lua) <163-165>
   world = 100034 - world (valid:true)
   data = table: 2ACC3B98
scripts/entityscript.lua:975 in (method) PushEvent (Lua) <962-989>
   self (valid:true) =
      GUID = 100034
      inlimbo = false
      Pathfinder = Pathfinder (168FD350)
      worldstatewatching = table: 0D411708
      worldprefab = forest
      ismastershard = true
      shard = 100042 - shard_network (valid:true)
      OnRemoveEntity = function - scripts/prefabs/world.lua:240
      pendingtasks = table: 0D415F10
      hideminimap = false
      state = table: 2B5677F0
      spawntime = 8.5000004433095
      Transform = Transform (168FD2D0)
      generated = table: 27253578
      event_listening = table: 2B56A950
      actioncomponents = table: 2B5661E8
      lower_components_shadow = table: 2B566170
      entity = Entity (345405F8)
      prefab = world
      updatecomponents = table: 0CCCAEB8
      Map = Map (168FD310)
      watchingcycles = true
      net = 100038 - forest_network (valid:true)
      persists = false
      meta = table: 0BF525D0
      GroundCreep = GroundCreep (168FD370)
      event_listeners = table: 2B569D48
      minimap = 100035 - minimap (valid:true)
      PostInit = function - scripts/prefabs/world.lua:218
      ismastersim = true
      name = MISSING NAME
      WaveComponent = WaveComponent (168FDE10)
      replica = table: 2B566238
      topology = table: 27255850
      components = table: 2B5661C0
      SoundEmitter = SoundEmitter (168FD3B0)
   event = entity_death
   data = table: 2ACC3B98
   listeners = table: 2B026B90
   tocall = table: 2ACC3AF8
   i = 1
   fn = function - ../mods/wiki/scripts/prefabs/walter_bear.lua:163
scripts/components/health.lua:307 in (method) SetVal (Lua) <288-318>
   self =
      nofadeout = false
      absorb = 0
      vulnerabletoheatdamage = true
      firedamagecaptimer = 0
      minhealth = 0
      playerabsorb = 0
      inst = 113799 - butterfly (valid:true)
      firedamageinlastsecond = 0
      fire_damage_scale = 1
      takingfiredamagetime = 0
      _ = table: 50B8DD50
      fire_timestart = 1
   val = -49
   cause = wiki
   afflicter = 111838 - wiki (valid:true)
   old_health = 1
   max_health = 1
   min_health = 0
scripts/components/health.lua:333 in (method) DoDelta (Lua) <320-341>
   self =
      nofadeout = false
      absorb = 0
      vulnerabletoheatdamage = true
      firedamagecaptimer = 0
      minhealth = 0
      playerabsorb = 0
      inst = 113799 - butterfly (valid:true)
      firedamageinlastsecond = 0
      fire_damage_scale = 1
      takingfiredamagetime = 0
      _ = table: 50B8DD50
      fire_timestart = 1
   amount = -50
   overtime = nil
   cause = wiki
   ignore_invincible = nil
   afflicter = 111838 - wiki (valid:true)
   ignore_absorb = nil
   old_percent = 1
scripts/components/combat.lua:408 in (method) GetAttacked (Lua) <389-459>
   self =
      hiteffectsymbol = butterfly_body
      lastwasattackedtime = 45.633335713297
      defaultdamage = 0
      forcefacing = true
      laststartattacktime = 0
      lastattacker = 111838 - wiki (valid:true)
      inst = 113799 - butterfly (valid:true)
      keeptargettimeout = 0
      battlecryenabled = true
      _ = table: 504CF8D0
      hitrange = 3
   attacker = 111838 - wiki (valid:true)
   damage = 50
   weapon = nil
   stimuli = nil
   blocked = false
   damageredirecttarget = nil
   cause = 111838 - wiki (valid:true)
scripts/components/combat.lua:826 in (method) DoAttack 
[00:03:42]: [string "../mods/wiki/scripts/prefabs/walter.lua"]:105: bad argument #1 to 'pairs' (table expected, got nil)
LUA ERROR stack traceback:
    =[C]:-1 in (global) pairs (C) <-1--1>
    ../mods/wiki/scripts/prefabs/walter.lua:105 in (method) LinkToPlayer (Lua) <99-109>
    ../mods/wiki/scripts/prefabs/walter_bear.lua:44 in (upvalue) ondeath (Lua) <30-48>
    ../mods/wiki/scripts/prefabs/walter_bear.lua:164 in (local) fn (Lua) <163-165>
    scripts/entityscript.lua:975 in (method) PushEvent (Lua) <962-989>
    scripts/components/health.lua:307 in (method) SetVal (Lua) <288-318>
    scripts/components/health.lua:333 in (method) DoDelta (Lua) <320-341>
    scripts/components/combat.lua:408 in (method) GetAttacked (Lua) <389-459>
    scripts/components/combat.lua:826 in (method) DoAttack (Lua) <776-850>
    scripts/actions.lua:573 in (field) fn (Lua) <572-575>
    scripts/bufferedaction.lua:24 in (method) Do (Lua) <20-34>
    scripts/entityscript.lua:1246 in (method) PerformBufferedAction (Lua) <1238-1256>
    scripts/stategraphs/SGwilson.lua:3899 in (field) fn (Lua) <3896-3902>
    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:209 in () ? (Lua) <150-223>
    
 

and here are the luas in question:

walterbear.lua

Spoiler

local assets =
{
    Asset("ANIM", "anim/abigail_flower.zip"),
    Asset("INV_IMAGE", "abigail_flower2" ),
    Asset("INV_IMAGE", "abigail_flower_haunted" ),
}

local prefabs =
{
    "walter",
    "flower",
    "small_puff",
}

local function activate(inst)
    inst.SoundEmitter:PlaySound("dontstarve/common/haunted_flower_LP", "loop")
    inst:ListenForEvent("entity_death", inst._onentitydeath, TheWorld)
end

local function deactivate(inst)
    inst.SoundEmitter:KillAllSounds()
    inst:RemoveEventCallback("entity_death", inst._onentitydeath, TheWorld)
end

local function IsValidLink(inst, player)
    return player.prefab == inst.components.characterspecific.character and player.walter == nil
end


local function ondeath(inst, deadthing, killer)
    if  inst._playerlink ~= nil and
        inst._playerlink.walter == nil and
        inst._playerlink.components.leader ~= nil and
        inst.components.inventoryitem.owner == nil and
        deadthing ~= nil and
        not deadthing:HasTag("wall") and
        inst:GetDistanceSqToInst(deadthing) < 256 --[[16 * 16]] then

        inst._playerlink.components.sanity:DoDelta(-TUNING.SANITY_SMALL)
        local walter = SpawnPrefab("walter")
        if walter ~= nil then
            walter.Transform:SetPosition(inst.Transform:GetWorldPosition())
            walter.SoundEmitter:PlaySound("dontstarve/common/ghost_spawn")
            walter:LinkToPlayer(inst._playerlink)
            inst:Remove()
        end
    end
end

local function linktoplayer(inst, player)
    if player ~= nil and IsValidLink(inst, player) then
        inst:ListenForEvent("onremove", inst._onremoveplayer, player)
        inst:ListenForEvent("killed", inst._onplayerkillthing, player)
        inst._playerlink = player
        player.walter_bears[inst] = true
    end
end

local function unlink(inst)
    if inst._playerlink ~= nil then
        inst:RemoveEventCallback("onremove", inst._onremoveplayer, inst._playerlink)
        inst:RemoveEventCallback("killed", inst._onplayerkillthing, inst._playerlink)
        inst._playerlink.walter_bears[inst] = nil
        inst._playerlink = nil
    end
end

local function storeincontainer(inst, container)
    if container ~= nil and container.components.container ~= nil then
        inst:ListenForEvent("onopen", inst._ontogglecontainer, container)
        inst:ListenForEvent("onclose", inst._ontogglecontainer, container)
        inst:ListenForEvent("onremove", inst._onremovecontainer, container)
        inst._container = container
    end
end

local function unstore(inst)
    if inst._container ~= nil then
        inst:RemoveEventCallback("onopen", inst._ontogglecontainer, inst._container)
        inst:RemoveEventCallback("onclose", inst._ontogglecontainer, inst._container)
        inst:RemoveEventCallback("onremove", inst._onremovecontainer, inst._container)
        inst._container = nil
    end
end

local function topocket(inst, owner)
    deactivate(inst)
    if inst._container ~= owner then
        unstore(inst)
        storeincontainer(inst, owner)
    end
    if owner.components.container ~= nil then
        owner = owner.components.container.opener
    end
    if inst._playerlink ~= owner then
        unlink(inst)
        linktoplayer(inst, owner)
        
    end
end

local function toground(inst)
    unstore(inst)
    activate(inst)
end

local function refresh(inst)
    if inst._playerlink == nil then
        local owner = inst.components.inventoryitem.owner
        if owner ~= nil then
            if owner.components.container ~= nil then
                owner = owner.components.container.opener
            end
            linktoplayer(inst, owner)
            
        end
    elseif not IsValidLink(inst, inst._playerlink) then
        unlink(inst)
        
        
    end
end

local function fn()
    local inst = CreateEntity()

    inst.entity:AddTransform()
    inst.entity:AddAnimState()
    inst.entity:AddSoundEmitter()
    inst.entity:AddMiniMapEntity()
    inst.entity:AddNetwork()

    inst.AnimState:SetBank("abigail_flower")
    inst.AnimState:SetBuild("abigail_flower")
    inst.AnimState:PlayAnimation("idle_1")

    MakeInventoryPhysics(inst)

    inst.MiniMapEntity:SetIcon("abigail_flower.png")

    inst.entity:SetPristine()

    if not TheWorld.ismastersim then
        return inst
    end

   
    inst._playerlink = nil
    inst._container = nil
    inst._decaytask = nil
    inst._decaystart = nil

    inst._onremoveplayer = function()
        unlink(inst)
        

    end

    inst._onplayerkillthing = function(player, data)
        ondeath(inst, data.victim, player)
    end

    inst._onentitydeath = function(world, data)
        ondeath(inst, data.inst)
    end

    inst._ontogglecontainer = function(container)
        topocket(inst, container)
    end

    inst._onremovecontainer = function()
        unstore(inst)
    end

    inst:AddComponent("inventoryitem")
    inst.components.inventoryitem:ChangeImageName("abigail_flower_haunted")
            inst.AnimState:PlayAnimation("haunted_pre")
            inst.AnimState:PushAnimation("idle_haunted_loop", true)
            inst.AnimState:SetBloomEffectHandle("shaders/anim.ksh")
    -----------------------------------
    
    inst:AddComponent("inspectable")
    inst:ListenForEvent("onputininventory", topocket)
    inst:ListenForEvent("ondropped", toground)

    MakeHauntableLaunch(inst)
    
    if not inst.components.characterspecific then
    inst:AddComponent("characterspecific")
    end
    
    inst.components.characterspecific:SetOwner("wiki")
    inst.components.characterspecific:SetStorable(true)
    inst.components.characterspecific:SetComment("A gift from my big brother.") 
  
   
    inst.OnRemoveEntity = unlink
    inst.Refresh = refresh

    return inst
end

return Prefab("walter_bear", fn, assets, prefabs)


 

 

walter

Spoiler

local assets =
{
    Asset("ANIM", "anim/player_ghost_withhat.zip"),
    Asset("ANIM", "anim/ghost_abigail_build.zip"),
    Asset("SOUND", "sound/ghost.fsb"),
    

}

local brain = require("brains/walterbrain")

local function Retarget(inst)
    return FindEntity(
        inst,
        20,
        function(guy)
            return inst._playerlink ~= nil
                and inst.components.combat:CanTarget(guy)
                and (guy.components.combat.target == inst._playerlink or
                    inst._playerlink.components.combat.target == guy)
        end,
        { "_combat", "_health" },
        { "INLIMBO", "noauradamage" }
    )
end

local function OnAttacked(inst, data)
    if data.attacker == nil then
        inst.components.combat:SetTarget(nil)
    elseif data.attacker == inst._playerlink then
        inst.components.health:SetVal(0)
    elseif not data.attacker:HasTag("noauradamage") then
        inst.components.combat:SetTarget(data.attacker)
    end
end

local function auratest(inst, target)
    if target == inst._playerlink then
        return false
    end

    if inst.components.combat.target == target then
        return true
    end

    local leader = inst.components.follower.leader
    if target.components.combat.target ~= nil
        and (target.components.combat.target == inst or
            target.components.combat.target == leader) then
        return true
    end

    if leader ~= nil
        and (leader == target
            or (target.components.follower ~= nil and
                target.components.follower.leader == leader)) then
        return false
    end

    return not target:HasTag("player") and target:HasTag("monster") or target:HasTag("prey")
end


local LOOT = { "walter_bear" }

local function refreshcontainer(container)
    for i = 1, container:GetNumSlots() do
        local item = container:GetItemInSlot(i)
        if item ~= nil and item.prefab == "walter_bear" then
            item:Refresh()
        end
    end
end

local function unlink(inst)
    inst._playerlink.walter = nil
    local inv = inst._playerlink.components.inventory
    refreshcontainer(inv)

    local activeitem = inv:GetActiveItem()
    if activeitem ~= nil and activeitem.prefab == "walter_bear" then
        activeitem:Refresh()
    end

    for k, v in pairs(inv.opencontainers) do
        refreshcontainer(k.components.container)
    end
end

local function linktoplayer(inst, player)
    inst.components.lootdropper:SetLoot(LOOT)
    inst.persists = false
    inst._playerlink = player
    player.walter = inst
    player.components.leader:AddFollower(inst, true)
    for k, v in pairs(player.walter_bears) do
        k:Refresh()
    end
    player:ListenForEvent("onremove", unlink, inst)
end

local function fn()
    local inst = CreateEntity()

    inst.entity:AddTransform()
    inst.entity:AddAnimState()
    inst.entity:AddSoundEmitter()
    inst.entity:AddLight()
    inst.entity:AddNetwork()

    inst.AnimState:SetBank("ghost")
    inst.AnimState:SetBuild("ghost_abigail_build")
    inst.AnimState:PlayAnimation("idle", true)
    inst.AnimState:SetBloomEffectHandle("shaders/anim_bloom_ghost.ksh")
    inst.aaaaaaState:SetLightOverride(TUNING.GHOST_LIGHT_OVERRIDE)
    --inst.AnimState:SetMultColour(1, 1, 1, .6)

    inst:AddTag("character")
    inst:AddTag("scarytoprey")
    inst:AddTag("girl")
    inst:AddTag("ghost")
    inst:AddTag("noauradamage")
    inst:AddTag("notraptrigger")
    inst:AddTag("abigail")
    inst:AddTag("walter")
    

    --trader (from trader component) added to pristine state for optimization
    inst:AddTag("trader")

    MakeGhostPhysics(inst, 1, .5)

    inst.Light:SetIntensity(.6)
    inst.Light:SetRadius(5)
    inst.Light:SetFalloff(.9)
    inst.Light:Enable(true)
    inst.Light:SetColour(180 / 255, 195 / 255, 225 / 255)

    --It's a loop that's always on, so we can start this in our pristine state
    inst.SoundEmitter:PlaySound("dontstarve/ghost/ghost_girl_howl_LP", "howl")

    inst.entity:SetPristine()

    if not TheWorld.ismastersim then
        return inst
    end

    inst._playerlink = nil

    inst:SetBrain(brain)

    inst:AddComponent("locomotor") -- locomotor must be constructed before the stategraph
    inst.components.locomotor.walkspeed = TUNING.ABIGAIL_SPEED*1.3
    inst.components.locomotor.runspeed = TUNING.ABIGAIL_SPEED
    
    inst:SetStateGraph("SGghost")

    inst:AddComponent("inspectable")

    inst:AddComponent("health")
    inst.components.health:SetMaxHealth(750)
    inst.components.health:StartRegen(10, 5)

    inst:AddComponent("combat")
    inst.components.combat.defaultdamage = 30
    inst.components.combat.playerdamagepercent = TUNING.ABIGAIL_DMG_PLAYER_PERCENT
    inst.components.combat:SetRetargetFunction(3, Retarget)

    inst:AddComponent("aura")
    inst.components.aura.radius = 4
    inst.components.aura.tickperiod = 1
    inst.components.aura.ignoreallies = true
    inst.components.aura.auratestfn = auratest

    MakeHauntableGoToState(inst, "haunted", nil, 64 * FRAMES * 1.2)

    inst:AddComponent("lootdropper")
    ------------------
    --Added so you can attempt to give hearts to trigger flavour text when the action fails
    inst:AddComponent("trader")
    inst.components.trader:SetAbleToAcceptTest(AbleToAcceptTest)

    inst:AddComponent("follower")
    inst.components.follower:KeepLeaderOnAttacked()
    inst.components.follower.keepdeadleader = true

    inst:ListenForEvent("attacked", OnAttacked)

  
    inst.LinkToPlayer = linktoplayer

    return inst
end

return Prefab("common/monsters/walter", fn, assets)

Any ideas on the fix? I've been attempting to fix this for hours but alas, no results. Any help would be appreciated! Thanks in advance!

Edited by Aelia

There's no "pairs" in line 105 of the walter.lua you posted. From context, I imagine it's the one in the linktoplayer function in walter.lua. I didn't encounter that specific error, either. I copied your files, changed

inst.aaaaaaState:SetLightOverride(TUNING.GHOST_LIGHT_OVERRIDE)

to

inst.AnimState:SetLightOverride(TUNING.GHOST_LIGHT_OVERRIDE)

in walter.lua, added a dummy AbleToAcceptTest function to it and changed its brain to Abigail's, then I was able to spawn in walter. It looked like Abigail and seemed to wander around aimlessly.

To spawn in walter_bear, I commented out the references to a "characterspecific" component towards the end of the fn function in walter_bear.lua and in IsValidLink and making IsValidLink always return true (there's no characterspecific component in DST, only in DS). Then I added

player.walter_bears ={}

right before

player.walter_bears[inst] = true

in the linktoplayer function and finally I was able spawn in walter_bear, kill things and picking it up without the game crashing, and walter/abigail spawning from it after placing it back on the floor. It followed me around.

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