Jump to content

A troubleshooting needs a look (solved)


Recommended Posts

Update (2/4/18@14:04):

Can someone help troubleshoot my LUAs? I kept getting "There was some sort of trouble starting the server. Please try again." when I only enabled this one mod.

My mod is a lipstick, currently can do nothing except being created from DRESS. Should be simple enough but there must be some apparent mistakes that I don't realize. Appreciate your time.

 

dior.zip

 

modmain.lua

Spoiler

PrefabFiles = {
"dior",
}

local require = GLOBAL.require
local STRINGS = GLOBAL.STRINGS
local Ingredient = GLOBAL.Ingredient
local RECIPETABS = GLOBAL.RECIPETABS
local Recipe = GLOBAL.Recipe
local TECH = GLOBAL.TECH


--lipsticks
AddRecipe("dior", { Ingredient("cutgrass", 1)}, GLOBAL.RECIPETABS.DRESS, GLOBAL.TECH.NONE, nil, nil, nil, nil, nil, "images/inventoryimages/dior.xml", "dior.tex" )

 

 

modinfo.lua

Spoiler

name = "dior"
description = "nothing destroys you"
author = "nick "
version = "2"
forumthread = ""
api_version = 10

dst_compatible = true

reign_of_giants_compatible = true

all_clients_require_mod = true 

icon_atlas = "modicon.xml"

icon = "modicon.tex"


 

 

 

 

prefab -> dior.lua

Spoiler

local assets =
{
    Asset("ANIM", "anim/dior.zip"),
    Asset("ATLAS", "images/inventoryimages/dior.xml"),    
    Asset("IMAGE", "images/inventoryimages/dior.tex"),
}

local function fn()
    local inst = CreateEntity()

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

    MakeInventoryPhysics(inst)

    inst.AnimState:SetBank("dior")
    inst.AnimState:SetBuild("dior")
    inst.AnimState:PlayAnimation("idle")


    if not TheWorld.ismastersim then
        return inst
    end

    inst.entity:SetPristine()

    inst:AddComponent("inspectable")

    inst:AddComponent("inventoryitem")
    inst.components.inventoryitem.atlasname = "images/inventoryimages/dior.xml"
    inst:AddComponent("stackable")
    inst:AddComponent("tradable")

    return inst
end

return Prefab("common/inventory/dior", fn, assets)

 

 

crash log

Spoiler

[00:00:00]: 
System Memory:
    Memory Load: 21%
    Available Physical Memory: 12731m/16262m
    Available Page File: 14988m/18694m
    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: 6m
[00:00:00]: PersistRootStorage is now APP:Klei//DoNotStarveTogether/ 
[00:00:00]: Starting Up
[00:00:00]: Version: 251036
[00:00:00]: Current time: Sun Feb 04 14:03:42 2018

[00:00:00]: Don't Starve Together: 251036 WIN32_STEAM
[00:00:00]: Build Date: 2653
[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: 2446235
[00:00:00]: ....Done
[00:00:00]: Fixing DPI
[00:00:00]: ...Done
[00:00:00]: THREAD - started 'GAClient' (2564)
[00:00:00]: CurlRequestManager::ClientThread::Main()
[00:00:00]: Mounting file system databundles/shaders.zip successful.
[00:00:00]: Mounting file system databundles/fonts.zip successful.
[00:00:00]: Mounting file system databundles/anim_dynamic.zip successful.
[00:00:00]: Mounting file system databundles/bigportraits.zip successful.
[00:00:00]: Mounting file system databundles/images.zip successful.
[00:00:00]: Mounting file system databundles/scripts.zip successful.
[00:00:01]: ProfileIndex:4.01
[00:00:01]: [Connect] PendingConnection::Reset(true)
[00:00:01]: Network tick rate: U=15(2), D=0
[00:00:01]: Authorized application C:\Program Files (x86)\Steam\steamapps\common\Don't Starve Together\bin\dontstarve_steam.exe is enabled in the firewall.
[00:00:01]: WindowsFirewall - Application already authorized
[00:00:01]: THREAD - started 'StreamInput' (2556)
[00:00:01]: loaded ping_cache
[00:00:01]: Offline user ID: OU_76561198453578016
[00:00:01]: SteamID: 76561198453578016
[00:00:01]: 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) i7-7500U CPU @ 2.70GHz
    manufacturer              GenuineIntel
    clockSpeed                2904
  RAM                       
    megsOfRam                 16384
  GPU                       
    name                      NVIDIA GeForce 940MX
    driverDate                20171218000000.000000-000
    megsOfRam                 2048
    refreshRate               0
    videoModeDescription      
    driverVersion             23.21.13.8873

[00:00:01]: cGame::InitializeOnMainThread
[00:00:01]: WindowManager::Initialize
[00:00:01]: CreateWindow: Requesting 3840,2004 - 5/6/5 - -1/-1/-1 - 0
[00:00:02]: CreateEGLContext: 12 configs found
[00:00:02]:      0: 8/8/8 -  0/ 0/ 0 - 0
[00:00:02]:      1: 8/8/8 -  0/16/ 0 - 0
[00:00:02]:      2: 8/8/8 -  0/24/ 0 - 0
[00:00:02]:      3: 8/8/8 -  0/24/ 8 - 0
[00:00:02]:      4: 5/5/5 -  0/ 0/ 0 - 0
[00:00:02]:      5: 5/5/5 -  0/16/ 0 - 0
[00:00:02]:      6: 5/5/5 -  0/24/ 0 - 0
[00:00:02]:      7: 5/5/5 -  0/24/ 8 - 0
[00:00:02]:      8: 8/8/8 -  8/ 0/ 0 - 0
[00:00:02]:      9: 8/8/8 -  8/16/ 0 - 0
[00:00:02]:     10: 8/8/8 -  8/24/ 0 - 0
[00:00:02]:     11: 8/8/8 -  8/24/ 8 - 0
[00:00:02]: RestoreWindowPosition
[00:00:02]:    Saved Client Pos (0 x 56)
[00:00:02]:    Adjusted Window Pos (-16 x -16)
[00:00:02]: EnsureWindowOnScreen
[00:00:02]:    All good.
[00:00:02]: GLInfo
[00:00:02]: ~~~~~~
[00:00:02]: GL_VENDOR: Google Inc.
[00:00:02]: GL_RENDERER: ANGLE (NVIDIA GeForce 940MX)
[00:00:02]: THREAD - started 'WindowsInputManager' (9792)
[00:00:02]: GL_VERSION: OpenGL ES 2.0 (ANGLE 1.0.0.2249)
[00:00:02]: GL_SHADING_LANGUAGE_VERSION: OpenGL ES GLSL ES 1.00 (ANGLE 1.0.0.2249)
[00:00:02]: OpenGL extensions (19, 19):
[00:00:02]: GL_ANGLE_depth_texture
[00:00:02]: GL_ANGLE_framebuffer_blit
[00:00:02]: GL_ANGLE_framebuffer_multisample
[00:00:02]: GL_ANGLE_instanced_arrays
[00:00:02]: GL_ANGLE_pack_reverse_row_order
[00:00:02]: GL_ANGLE_texture_compression_dxt3
[00:00:02]: GL_ANGLE_texture_compression_dxt5
[00:00:02]: GL_ANGLE_texture_usage
[00:00:02]: GL_ANGLE_translated_shader_source
[00:00:02]: GL_EXT_read_format_bgra
[00:00:02]: GL_EXT_robustness
[00:00:02]: GL_EXT_texture_compression_dxt1
[00:00:02]: GL_EXT_texture_format_BGRA8888
[00:00:02]: GL_EXT_texture_storage
[00:00:02]: GL_OES_get_program_binary
[00:00:02]: GL_OES_packed_depth_stencil
[00:00:02]: GL_OES_rgb8_rgba8
[00:00:02]: GL_OES_standard_derivatives
[00:00:02]: GL_OES_texture_npot
[00:00:02]: GL_MAX_TEXTURE_SIZE = 16384
[00:00:02]: GL_MAX_TEXTURE_IMAGE_UNITS = 16
[00:00:02]: GL_MAX_RENDERBUFFER_SIZE = 16384
[00:00:02]: GL_MAX_VIEWPORT_DIMS = 16384, 16384
[00:00:02]: GL_MAX_VARYING_VECTORS = 10
[00:00:02]: GL_MAX_VERTEX_ATTRIBS = 16
[00:00:02]: GL_MAX_VERTEX_UNIFORM_VECTORS = 254
[00:00:02]: GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = 4
[00:00:02]: GL_MAX_FRAGMENT_UNIFORM_VECTORS = 221
[00:00:02]: 4 compressed texture formats
[00:00:02]: texture format 0x83f0
[00:00:02]: texture format 0x83f1
[00:00:02]: texture format 0x83f2
[00:00:02]: texture format 0x83f3
[00:00:03]: Renderer initialize: Okay
[00:00:03]: AnimManager initialize: Okay
[00:00:03]: Buffers initialize: Okay
[00:00:03]: cDontStarveGame::DoGameSpecificInitialize()
[00:00:03]: GameSpecific initialize: Okay
[00:00:03]: cGame::StartPlaying
[00:00:03]: LOADING LUA
[00:00:03]: DoLuaFile scripts/main.lua
[00:00:03]: DoLuaFile loading buffer scripts/main.lua
[00:00:03]:   taskgrouplist:    default    Together    
[00:00:03]:   taskgrouplist:    classic    Classic    
[00:00:03]:   taskgrouplist:    cave_default    Underground    
[00:00:03]:   taskgrouplist:    lavaarena_taskset    The Forge    
[00:00:03]: running main.lua
    
[00:00:03]: loaded modindex    
[00:00:03]: ModIndex: Beginning normal load sequence.
    
[00:00:03]: ModIndex:GetModsToLoad inserting moddir,     workshop-345692228    
[00:00:03]: ModIndex:GetModsToLoad inserting moddir,     workshop-351325790    
[00:00:03]: ModIndex:GetModsToLoad inserting moddir,     workshop-376333686    
[00:00:03]: ModIndex:GetModsToLoad inserting moddir,     workshop-609051112    
[00:00:03]: Could not load mod_config_data/modconfiguration_workshop-345692228    
[00:00:03]: Loading mod: workshop-345692228 (Minimap HUD) Version:1.0.7    
[00:00:03]: Could not load mod_config_data/modconfiguration_workshop-351325790    
[00:00:03]: Loading mod: workshop-351325790 (Geometric Placement) Version:2.2.2    
[00:00:03]: Could not load mod_config_data/modconfiguration_workshop-376333686    
[00:00:03]: Loading mod: workshop-376333686 (Combined Status) Version:1.6.21    
[00:00:03]: loaded mod_config_data/modconfiguration_workshop-609051112    
[00:00:03]: Loading mod: workshop-609051112 (ActionQueue(DST)) Version:1.3.6    
[00:00:03]: Mod: workshop-345692228 (Minimap HUD)    Loading modworldgenmain.lua    
[00:00:03]: Mod: workshop-345692228 (Minimap HUD)      Mod had no modworldgenmain.lua. Skipping.    
[00:00:03]: Mod: workshop-345692228 (Minimap HUD)    Loading modmain.lua    
[00:00:03]: Mod: workshop-376333686 (Combined Status)    Loading modworldgenmain.lua    
[00:00:03]: Mod: workshop-376333686 (Combined Status)      Mod had no modworldgenmain.lua. Skipping.    
[00:00:03]: Mod: workshop-376333686 (Combined Status)    Loading modmain.lua    
[00:00:03]: ModIndex:GetModsToLoad inserting moddir,     workshop-345692228    
[00:00:03]: ModIndex:GetModsToLoad inserting moddir,     workshop-351325790    
[00:00:03]: ModIndex:GetModsToLoad inserting moddir,     workshop-376333686    
[00:00:03]: ModIndex:GetModsToLoad inserting moddir,     workshop-609051112    
[00:00:03]: Mod: workshop-609051112 (ActionQueue(DST))    Loading modworldgenmain.lua    
[00:00:03]: Mod: workshop-609051112 (ActionQueue(DST))      Mod had no modworldgenmain.lua. Skipping.    
[00:00:03]: Mod: workshop-609051112 (ActionQueue(DST))    Loading modmain.lua    
[00:00:03]: Mod: workshop-351325790 (Geometric Placement)    Loading modworldgenmain.lua    
[00:00:03]: Mod: workshop-351325790 (Geometric Placement)      Mod had no modworldgenmain.lua. Skipping.    
[00:00:03]: Mod: workshop-351325790 (Geometric Placement)    Loading modmain.lua    
[00:00:03]: Could not load mod_config_data/modconfiguration_workshop-351325790    
[00:00:05]: LOADING LUA SUCCESS
[00:00:05]: PlayerDeaths loaded morgue    804    
[00:00:05]: PlayerHistory loaded player_history    689    
[00:00:05]: bloom_enabled    false    
[00:00:05]: loaded saveindex    
[00:00:05]: OnFilesLoaded()    
[00:00:05]: OnUpdatePurchaseStateComplete    
[00:00:07]: Mod: workshop-345692228 (Minimap HUD)    Registering prefabs    
[00:00:07]: Mod: workshop-345692228 (Minimap HUD)      Registering default mod prefab    
[00:00:07]: Mod: workshop-376333686 (Combined Status)    Registering prefabs    
[00:00:07]: Mod: workshop-376333686 (Combined Status)      Registering default mod prefab    
[00:00:07]: Mod: workshop-609051112 (ActionQueue(DST))    Registering prefabs    
[00:00:07]: Mod: workshop-609051112 (ActionQueue(DST))      Registering default mod prefab    
[00:00:07]: Mod: workshop-351325790 (Geometric Placement)    Registering prefabs    
[00:00:07]: Mod: workshop-351325790 (Geometric Placement)      Registering prefab file: prefabs/buildgridplacer    
[00:00:07]: Mod: workshop-351325790 (Geometric Placement)        buildgridplacer    
[00:00:07]: Mod: workshop-351325790 (Geometric Placement)      Registering default mod prefab    
[00:00:07]:     Load FE    
[00:00:07]:     Load FE: done    
[00:00:07]: THREAD - started 'FilesExistAsyncThread' (10236)
[00:00:07]: FilesExistAsyncThread started (13214 files)...
[00:00:07]: OnLoadPermissionList: APP:Klei//DoNotStarveTogether/client_save/blocklist.txt (Failure)
[00:00:07]: OnLoadPermissionList: APP:Klei//DoNotStarveTogether/client_save/adminlist.txt (Failure)
[00:00:07]: OnLoadUserIdList: APP:Klei//DoNotStarveTogether/client_save/whitelist.txt (Failure)
[00:00:07]: ModIndex: Load sequence finished successfully.    
[00:00:07]: Reset() returning
[00:00:09]: ... FilesExistAsyncThread complete
[00:00:09]: [Steam] Auth Session Ticket requested...
[00:00:10]: [Steam] Got Auth Session Ticket
[00:00:11]: [200] Account Communication Success (3)
[00:00:11]: Logging in as KU_V_O7lHWS
[00:00:11]: saved APP:Klei//DoNotStarveTogether/client_save/pricing_cache
[00:00:12]: loaded inventory_cache
[00:00:12]: loaded inventory_cache
[00:00:12]: SimLuaProxy::QueryServer()
[00:00:13]: QueryStats: { "req":"modrank", "field":"Session.Loads.Mods.list", "fieldop":"unwind", "linkpref":"external", "limit": 20}
[00:00:13]: Frontend-Unloading mod 'all'.    
[00:00:14]: FrontendLoadMod    dior    
[00:00:14]: Could not load mod_config_data/modconfiguration_dior    
[00:00:14]: Fontend-Loading mod: dior Version:2    
[00:00:14]: Mod: dior    Loading modworldgenmain.lua    
[00:00:14]: Mod: dior      Mod had no modworldgenmain.lua. Skipping.    
[00:00:14]: ../mods/workshop-439115156/modicon.tex is 316x316 but compressed textures must have power of 2 dimensions.
[00:00:18]: Could not load mod_config_data/modconfiguration_dior    
[00:00:18]: [IPC] Signal 'DST_Master_Starting' created  #000009B8
[00:00:18]: [IPC] Clearing pending signals #000009B8...
[00:00:18]: [IPC] Registering handler for signal #000009B8
[00:00:18]: [IPC] Handle #000009B8 added to the Eventhandles
[00:00:18]: [IPC] Signal 'DST_Master_WorldGen' created  #00000978
[00:00:18]: [IPC] Clearing pending signals #00000978...
[00:00:18]: [IPC] Registering handler for signal #00000978
[00:00:18]: [IPC] Handle #00000978 added to the Eventhandles
[00:00:18]: [IPC] Signal 'DST_Master_Ready' created  #000009B0
[00:00:18]: [IPC] Clearing pending signals #000009B0...
[00:00:18]: [IPC] Registering handler for signal #000009B0
[00:00:18]: [IPC] Handle #000009B0 added to the Eventhandles
[00:00:18]: [IPC] Signal 'DST_Master_ErrPort' created  #000009A4
[00:00:18]: [IPC] Clearing pending signals #000009A4...
[00:00:18]: [IPC] Registering handler for signal #000009A4
[00:00:18]: [IPC] Handle #000009A4 added to the Eventhandles
[00:00:18]: [IPC] Signal 'DST_Master_ErrStartup' created  #000009A8
[00:00:18]: [IPC] Clearing pending signals #000009A8...
[00:00:18]: [IPC] Registering handler for signal #000009A8
[00:00:18]: [IPC] Handle #000009A8 added to the Eventhandles
[00:00:18]: [IPC] Signal 'DST_Master_Kill' created  #00000988
[00:00:18]: [IPC] Clearing pending signals #00000988...
[00:00:18]: [IPC] Signal 'DST_Slave_Starting' created  #000009AC
[00:00:18]: [IPC] Clearing pending signals #000009AC...
[00:00:18]: [IPC] Registering handler for signal #000009AC
[00:00:18]: [IPC] Handle #000009AC added to the Eventhandles
[00:00:18]: [IPC] Signal 'DST_Slave_WorldGen' created  #00000998
[00:00:18]: [IPC] Clearing pending signals #00000998...
[00:00:18]: [IPC] Registering handler for signal #00000998
[00:00:18]: [IPC] Handle #00000998 added to the Eventhandles
[00:00:18]: [IPC] Signal 'DST_Slave_Ready' created  #000009A0
[00:00:18]: [IPC] Clearing pending signals #000009A0...
[00:00:18]: [IPC] Registering handler for signal #000009A0
[00:00:18]: [IPC] Handle #000009A0 added to the Eventhandles
[00:00:18]: [IPC] Signal 'DST_Slave_ErrPort' created  #00000984
[00:00:18]: [IPC] Clearing pending signals #00000984...
[00:00:18]: [IPC] Registering handler for signal #00000984
[00:00:18]: [IPC] Handle #00000984 added to the Eventhandles
[00:00:18]: [IPC] Signal 'DST_Slave_ErrStartup' created  #000009B4
[00:00:18]: [IPC] Clearing pending signals #000009B4...
[00:00:18]: [IPC] Registering handler for signal #000009B4
[00:00:18]: [IPC] Handle #000009B4 added to the Eventhandles
[00:00:18]: [IPC] Signal 'DST_Slave_Kill' created  #000007B8
[00:00:18]: [IPC] Clearing pending signals #000007B8...
[00:00:23]: [IPC] Received DST_Slave Starting signal !
[00:00:23]: [IPC] Received DST_Master Starting signal !
[00:00:28]: [Error] Dedicated server process terminated prematurely.
[00:00:28]: [IPC] Sending signal... #00000988
[00:00:28]: [IPC] Unregistering handler for signal #000009B8
[00:00:28]: [IPC] Unregistering handler for signal #00000978
[00:00:28]: [IPC] Unregistering handler for signal #000009B0
[00:00:28]: [IPC] Unregistering handler for signal #000009A4
[00:00:28]: [IPC] Unregistering handler for signal #000009A8
[00:00:28]: [IPC] Unregistering handler for signal #000009AC
[00:00:28]: [IPC] Unregistering handler for signal #00000998
[00:00:28]: [IPC] Unregistering handler for signal #000009A0
[00:00:28]: [IPC] Unregistering handler for signal #00000984
[00:00:28]: [IPC] Unregistering handler for signal #000009B4
[00:00:29]: ModWorkshop::CancelDownloads clearing all unfinished downloads
[00:00:31]: Frontend-Unloading mod 'all'.    
[00:00:33]: unloading prefabs for mod MOD_workshop-345692228    
[00:00:33]: unloading prefabs for mod MOD_workshop-376333686    
[00:00:33]: unloading prefabs for mod MOD_workshop-609051112    
[00:00:33]: unloading prefabs for mod MOD_workshop-351325790    
[00:00:33]: ModWorkshop::CancelDownloads clearing all unfinished downloads
[00:00:33]: Collecting garbage...
[00:00:33]: lua_gc took 0.03 seconds
[00:00:33]: ~ShardLuaProxy()
[00:00:33]: ~ItemServerLuaProxy()
[00:00:33]: ~InventoryLuaProxy()
[00:00:33]: ~NetworkLuaProxy()
[00:00:33]: ~SimLuaProxy()
[00:00:33]: ModWorkshop::CancelDownloads clearing all unfinished downloads
[00:00:33]: lua_close took 0.04 seconds
[00:00:33]: ModWorkshop::CancelDownloads clearing all unfinished downloads
[00:00:33]: [Steam] Auth ticket cancelled
[00:00:33]:  Manager - ORPHANED UNKNOWN RESOURCES:
[00:00:33]: shaders/ui_yuv.ksh - 1
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:33]: CurlRequestManager::ClientThread::Main() complete
[00:00:33]: HttpClient2 discarded 0 callbacks.
[00:00:33]: Shutting down
 

 

 

Origin post (2/4/18@noon)

Hey there, I'm trying to create a lipstick which acts like spider gland only the lipstick adds sanity instead of health.

I have searched component folder but couldn't find a "sanity healer" similar to the "healer".

Would you please show me what to do or where to look, to grant the lipstick the ability to add sanity instantly?

I would really appreciate it!

Edited by nicknightyx
Link to comment
Share on other sites

While this is probably not the best way to go about it, it is the one that requires very little code and changes;

modmain.lua

AddComponentPostInit("healer", function(self)
    function self:SetComponent(comp)
        self.component = comp
    end

    local oldHeal = self.Heal
    function self:Heal(target)
        if self.component == nil or self.component == "health" then
            return oldHeal(self, target)
        end
        if self.component == "sanity" then
            if target.components.sanity ~= nil then
                target.components.sanity:DoDelta(self.health, false)
                if self.inst.components.stackable ~= nil and self.inst.components.stackable:IsStack() then
                    self.inst.components.stackable:Get():Remove()
                else
                    self.inst:Remove()
                end
                return true
            end
        end
    end
end)

how to use in yourprefab.lua:

inst:AddComponent("healer")
inst.components.healer:SetComponent("sanity")
inst.components.healer:SetHealthAmount(20)--this is the amount of sanity gained

 

Edited by Aquaterion
Link to comment
Share on other sites

Is that your server log or your client log? (server logs can be found in Documents/Klei/DoNotStarveTogether/Cluster_[slot]/Master/server_log.txt)

Also, your dior.zip is not present, as the spriter file is giving an error. Btw, you normally use a transparent background for items...

Edited by Aquaterion
Link to comment
Share on other sites

@Aquaterion

Oh that was my client log, below is my server log. Could you please tell me what are their differences by the way? Thanks!

 

 

server_log

Spoiler

[00:00:00]: 
System Memory:
    Memory Load: 26%
    Available Physical Memory: 12000m/16262m
    Available Page File: 13904m/18694m
    Available Virtual Memory: 3942m/4095m
    Available Extended Virtual Memory: 0m
[00:00:00]: 
Process Memory:
    Peak Working Set Size: 29m
    Working Set Size: 29m
    Quota Peak Page Pool Usage: 229k
    Quota Page Pool Usage: 222k
    Quota Peak Non Paged Pool Usage:15k
    Quota Non Paged Pool Usage: 15k
    Page File Usage: 5m
    Peak Page File Usage: 5m
[00:00:00]: PersistRootStorage is now APP:Klei//DoNotStarveTogether/Cluster_3/Master/ 
[00:00:00]: Starting Up
[00:00:00]: Version: 251036
[00:00:00]: Current time: Sun Feb 04 14:04:01 2018

[00:00:00]: Don't Starve Together: 251036 WIN32
[00:00:00]: Build Date: 2793
[00:00:00]: Parsing command line
[00:00:00]: Command Line Arguments: -monitor_parent_process 832 -persistent_storage_root APP:Klei/ -conf_dir DoNotStarveTogether -cluster Cluster_3 -ownernetid 76561198453578016 -backup_log_count 10 -shard Master -sigprefix DST_Master 
[00:00:00]: Initializing distribution platform
[00:00:00]: Initializing Minidump handler
[00:00:00]: ....Done
[00:00:00]: ....Done
[00:00:00]: Fixing DPI
[00:00:00]: ...Done
[00:00:00]: THREAD - started 'GAClient' (2316)
[00:00:00]: CurlRequestManager::ClientThread::Main()
[00:00:00]: Mounting file system databundles/shaders.zip successful.
[00:00:00]: Mounting file system databundles/fonts.zip successful.
[00:00:00]: Mounting file system databundles/anim_dynamic.zip successful.
[00:00:00]: Mounting file system databundles/bigportraits.zip successful.
[00:00:00]: Mounting file system databundles/images.zip successful.
[00:00:00]: Mounting file system databundles/scripts.zip successful.
[00:00:00]: ProfileIndex:3.25
[00:00:00]: [Connect] PendingConnection::Reset(true)
[00:00:00]: Network tick rate: U=15(2), D=0
[00:00:00]: Network tick rate: U=15(2), D=0
[00:00:00]: [Warning] Authorized application C:\Program Files (x86)\Steam\steamapps\common\Don't Starve Together\bin\dontstarve_dedicated_server_nullrenderer.exe is not setup in the firewall.
[00:00:00]: Authorized application C:\Program Files (x86)\Steam\steamapps\common\Don't Starve Together\bin\dontstarve_dedicated_server_nullrenderer.exe is now enabled in the firewall.
[00:00:00]: OnLoadPermissionList: APP:Klei//DoNotStarveTogether/client_save/blocklist.txt (Failure)
[00:00:00]: THREAD - started 'StreamInput' (14012)
[00:00:00]: OnLoadPermissionList: APP:Klei//DoNotStarveTogether/client_save/adminlist.txt (Failure)
[00:00:00]: OnLoadUserIdList: APP:Klei//DoNotStarveTogether/client_save/whitelist.txt (Failure)
[00:00:00]: Offline user ID: OU_76561198453578016
[00:00:00]: Token retrieved from: APP:Klei//DoNotStarveTogether/Cluster_3/cluster_token.txt
[00:00:00]: Token retrieved from: APP:Klei//DoNotStarveTogether/Cluster_3/cluster_token.txt
[00:00:00]: 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) i7-7500U CPU @ 2.70GHz
    manufacturer              GenuineIntel
    clockSpeed                2904
  RAM                       
    megsOfRam                 16384
  GPU                       
    name                      NVIDIA GeForce 940MX
    driverDate                20171218000000.000000-000
    megsOfRam                 2048
    refreshRate               0
    videoModeDescription      
    driverVersion             23.21.13.8873

[00:00:00]: cGame::InitializeOnMainThread
[00:00:00]: Renderer initialize: Okay
[00:00:00]: AnimManager initialize: Okay
[00:00:00]: Buffers initialize: Okay
[00:00:00]: cDontStarveGame::DoGameSpecificInitialize()
[00:00:00]: GameSpecific initialize: Okay
[00:00:00]: cGame::StartPlaying
[00:00:00]: LOADING LUA
[00:00:00]: DoLuaFile scripts/main.lua
[00:00:00]: DoLuaFile loading buffer scripts/main.lua
[00:00:01]:   taskgrouplist:    default    Together    
[00:00:01]:   taskgrouplist:    classic    Classic    
[00:00:01]:   taskgrouplist:    cave_default    Underground    
[00:00:01]:   taskgrouplist:    lavaarena_taskset    The Forge    
[00:00:01]: running main.lua
    
[00:00:01]: loaded modindex    
[00:00:01]: ModIndex: Beginning normal load sequence for dedicated server.
    
[00:00:01]: DownloadMods(0)
[00:00:01]: modoverrides.lua enabling dior    
[00:00:01]: ModIndex:GetModsToLoad inserting moddir,     dior    
[00:00:01]: Could not load mod_config_data/modconfiguration_dior_CLIENT    
[00:00:01]: applying configuration_options from modoverrides.lua to mod dior    
[00:00:01]: Loading mod: dior Version:2    
[00:00:01]: Mod: dior    Loading modworldgenmain.lua    
[00:00:01]: Mod: dior      Mod had no modworldgenmain.lua. Skipping.    
[00:00:01]: Mod: dior    Loading modmain.lua    
[00:00:02]: LOADING LUA SUCCESS
[00:00:02]: PlayerDeaths could not load morgue    
[00:00:02]: PlayerHistory could not load player_history    
[00:00:02]: bloom_enabled    false    
[00:00:02]: loaded saveindex    
[00:00:02]: OnFilesLoaded()    
[00:00:02]: OnUpdatePurchaseStateComplete    
[00:00:04]: Mod: dior    Registering prefabs    
[00:00:04]: Mod: dior      Registering prefab file: prefabs/dior    
[00:00:04]: error calling LoadPrefabFile in mod dior: 
[string "scripts/util.lua"]:549: Could not find an asset matching anim/dior.zip in any of the search paths.
LUA ERROR stack traceback:
        =[C] in function 'assert'
        scripts/util.lua(549,1) in function 'resolvefilepath'
        scripts/mainfunctions.lua(114,1) in function 'resolve_fn'
        scripts/mainfunctions.lua(102,1) in function 'RegisterPrefabsImpl'
        scripts/mainfunctions.lua(128,1) in function 'RegisterPrefabs'
        scripts/mainfunctions.lua(157,1)
        =(tail call) ?
        =[C] in function 'xpcall'
        scripts/mods.lua(158,1)
        scripts/mods.lua(598,1) in function 'RegisterPrefabs'
        scripts/gamelogic.lua(216,1) in function 'LoadAssets'
    ...
        =[C] in function 'GetPersistentString'
        scripts/saveindex.lua(250,1) in function 'Load'
        scripts/gamelogic.lua(1039,1) in function 'callback'
        scripts/playerprofile.lua(977,1) in function 'Set'
        scripts/playerprofile.lua(838,1)
        =[C] in function 'GetPersistentString'
        scripts/playerprofile.lua(836,1) in function 'Load'
        scripts/gamelogic.lua(1038,1) in main chunk
        =[C] in function 'require'
        scripts/mainfunctions.lua(873,1)    
[00:00:04]: Disabling dior because it had an error.    
[00:00:04]: [string "scripts/util.lua"]:549: Could not find an asset matching anim/dior.zip in any of the search paths.
LUA ERROR stack traceback:
        =[C] in function 'assert'
        scripts/util.lua(549,1) in function 'resolvefilepath'
        scripts/mainfunctions.lua(114,1) in function 'resolve_fn'
        scripts/mainfunctions.lua(102,1) in function 'RegisterPrefabsImpl'
        scripts/mainfunctions.lua(128,1) in function 'RegisterPrefabs'
        scripts/mainfunctions.lua(157,1)
        =(tail call) ?
        =[C] in function 'xpcall'
        scripts/mods.lua(158,1)
        scripts/mods.lua(598,1) in function 'RegisterPrefabs'
        scripts/gamelogic.lua(216,1) in function 'LoadAssets'
    ...
        =[C] in function 'GetPersistentString'
        scripts/saveindex.lua(250,1) in function 'Load'
        scripts/gamelogic.lua(1039,1) in function 'callback'
        scripts/playerprofile.lua(977,1) in function 'Set'
        scripts/playerprofile.lua(838,1)
        =[C] in function 'GetPersistentString'
        scripts/playerprofile.lua(836,1) in function 'Load'
        scripts/gamelogic.lua(1038,1) in main chunk
        =[C] in function 'require'
        scripts/mainfunctions.lua(873,1)
[00:00:04]: [string "scripts/util.lua"]:549: Could not find an asset matching anim/dior.zip in any of the search paths.
LUA ERROR stack traceback:
        =[C] in function 'assert'
        scripts/util.lua(549,1) in function 'resolvefilepath'
        scripts/mainfunctions.lua(114,1) in function 'resolve_fn'
        scripts/mainfunctions.lua(102,1) in function 'RegisterPrefabsImpl'
        scripts/mainfunctions.lua(128,1) in function 'RegisterPrefabs'
        scripts/mainfunctions.lua(157,1)
        =(tail call) ?
        =[C] in function 'xpcall'
        scripts/mods.lua(158,1)
        scripts/mods.lua(598,1) in function 'RegisterPrefabs'
        scripts/gamelogic.lua(216,1) in function 'LoadAssets'
    ...
        =[C] in function 'GetPersistentString'
        scripts/saveindex.lua(250,1) in function 'Load'
        scripts/gamelogic.lua(1039,1) in function 'callback'
        scripts/playerprofile.lua(977,1) in function 'Set'
        scripts/playerprofile.lua(838,1)
        =[C] in function 'GetPersistentString'
        scripts/playerprofile.lua(836,1) in function 'Load'
        scripts/gamelogic.lua(1038,1) in main chunk
        =[C] in function 'require'
        scripts/mainfunctions.lua(873,1)    
[00:00:04]: Mod: dior      Registering default mod prefab    
[00:00:04]:     Load FE    
[00:00:04]:     Load FE: done    
[00:00:04]: THREAD - started 'FilesExistAsyncThread' (3024)
[00:00:04]: FilesExistAsyncThread started (12987 files)...
[00:00:04]: ModIndex: Load sequence finished successfully.    
[00:00:04]: Reset() returning
[00:00:04]: [IPC] Signal 'DST_Master_Kill' opened  #000004D0
[00:00:04]: [IPC] Registering handler for signal #000004D0
[00:00:04]: [IPC] Handle #000004D0 added to the Eventhandles
[00:00:04]: [IPC] Signal 'DST_Master_Starting' opened  #000004C8
[00:00:04]: [IPC] Sending signal... #000004C8
[00:00:04]: [200] Account Communication Success (6)
[00:00:04]: Received (KU_V_O7lHWS) from TokenPurpose
[00:00:04]: Starting Dedicated Server Game    
[00:00:04]: Network tick rate: U=15(2), D=0
[00:00:04]: About to start a server with the following settings:
[00:00:04]:   Dedicated: true
[00:00:04]:   Online: true
[00:00:04]:   Passworded: false
[00:00:04]:   ServerPort: 10999
[00:00:04]:   SteamAuthPort: 8766
[00:00:04]:   SteamMasterServerPort: 27016
[00:00:04]:   ClanID: false
[00:00:04]:   ClanOnly: false
[00:00:04]:   ClanAdmin: false
[00:00:04]:   LanOnly: true
[00:00:04]:   FriendsOnly: false
[00:00:04]:   EnableAutosaver: true
[00:00:04]:   EncodeUserPath: true
[00:00:04]:   PVP: false
[00:00:04]:   MaxPlayers: 1
[00:00:04]:   GameMode: survival
[00:00:04]:   OverridenDNS: 
[00:00:04]:   PauseWhenEmpty: true
[00:00:04]:   IdleTimeout: 1800s
[00:00:04]:   VoteEnabled: false
[00:00:04]:   InternetBroadcasting: true
[00:00:04]:   Intent: social
[00:00:05]: [Warning] Could not confirm port 10999 is open in the firewall. 
[00:00:05]: Online Server Started on port: 10999
[00:00:05]: unloading prefabs for mod MOD_dior    
[00:00:05]: Collecting garbage...
[00:00:05]: lua_gc took 0.02 seconds
[00:00:05]: ~ShardLuaProxy()
[00:00:05]: ~ItemServerLuaProxy()
[00:00:05]: ~InventoryLuaProxy()
[00:00:05]: ~NetworkLuaProxy()
[00:00:05]: ~SimLuaProxy()
[00:00:05]: FilesExistAsyncThread aborted.
[00:00:05]: ... FilesExistAsyncThread complete
[00:00:05]: lua_close took 0.04 seconds
[00:00:05]: ReleaseAll
[00:00:05]: ReleaseAll Finished
[00:00:05]: cGame::StartPlaying
[00:00:05]: LOADING LUA
[00:00:05]: DoLuaFile scripts/main.lua
[00:00:05]: DoLuaFile loading buffer scripts/main.lua
[00:00:05]:   taskgrouplist:    default    Together    
[00:00:05]:   taskgrouplist:    classic    Classic    
[00:00:05]:   taskgrouplist:    cave_default    Underground    
[00:00:05]:   taskgrouplist:    lavaarena_taskset    The Forge    
[00:00:05]: running main.lua
    
[00:00:05]: loaded modindex    
[00:00:05]: ModIndex: Beginning normal load sequence for dedicated server.
    
[00:00:05]: modoverrides.lua enabling dior    
[00:00:05]: ModIndex:GetModsToLoad inserting moddir,     dior    
[00:00:05]: Could not load mod_config_data/modconfiguration_dior    
[00:00:05]: applying configuration_options from modoverrides.lua to mod dior    
[00:00:05]: Loading mod: dior Version:2    
[00:00:05]: Mod: dior    Loading modworldgenmain.lua    
[00:00:05]: Mod: dior      Mod had no modworldgenmain.lua. Skipping.    
[00:00:05]: Mod: dior    Loading modmain.lua    
[00:00:05]: LOADING LUA SUCCESS
[00:00:05]: PlayerDeaths could not load morgue    
[00:00:05]: PlayerHistory could not load player_history    
[00:00:05]: bloom_enabled    false    
[00:00:05]: loaded saveindex    
[00:00:05]: OnFilesLoaded()    
[00:00:05]: OnUpdatePurchaseStateComplete    
[00:00:05]: Loading world: session/29C452109D9BE1F9/0000000013    
[00:00:05]: Save file is at version 4.77    
[00:00:05]:     Unload FE    
[00:00:05]:     Unload FE done    
[00:00:06]: Mod: dior    Registering prefabs    
[00:00:06]: Mod: dior      Registering prefab file: prefabs/dior    
[00:00:06]: error calling LoadPrefabFile in mod dior: 
[string "scripts/util.lua"]:549: Could not find an asset matching anim/dior.zip in any of the search paths.
LUA ERROR stack traceback:
        =[C] in function 'assert'
        scripts/util.lua(549,1) in function 'resolvefilepath'
        scripts/mainfunctions.lua(114,1) in function 'resolve_fn'
        scripts/mainfunctions.lua(102,1) in function 'RegisterPrefabsImpl'
        scripts/mainfunctions.lua(128,1) in function 'RegisterPrefabs'
        scripts/mainfunctions.lua(157,1)
        =(tail call) ?
        =[C] in function 'xpcall'
        scripts/mods.lua(158,1)
        scripts/mods.lua(598,1) in function 'RegisterPrefabs'
        scripts/gamelogic.lua(263,1) in function 'LoadAssets'
    ...
        =[C] in function 'GetPersistentString'
        scripts/saveindex.lua(250,1) in function 'Load'
        scripts/gamelogic.lua(1039,1) in function 'callback'
        scripts/playerprofile.lua(977,1) in function 'Set'
        scripts/playerprofile.lua(838,1)
        =[C] in function 'GetPersistentString'
        scripts/playerprofile.lua(836,1) in function 'Load'
        scripts/gamelogic.lua(1038,1) in main chunk
        =[C] in function 'require'
        scripts/mainfunctions.lua(873,1)    
[00:00:06]: Disabling dior because it had an error.    
[00:00:06]: Mod: dior      Registering default mod prefab    
[00:00:06]:     LOAD BE    
[00:00:08]: Could not preload undefined prefab (dior)
[00:00:08]:     LOAD BE: done    
[00:00:08]: Begin Session: 29C452109D9BE1F9
[00:00:08]: saving to server_temp/server_save    
[00:00:08]: MiniMapComponent::AddAtlas( minimap/minimap_data.xml )
[00:00:08]: ModIndex: Load sequence finished successfully.    
 

 

Link to comment
Share on other sites

@Aquaterion

There we go, how careless I am. So it looks like the server log is more helpful with the bugs than the client log?

Thank you for spotting this, you made my day! Perhaps you will see me posting more questions in the future, but all I can do is accepting advises from you modders and let the gratitude stay with me. 

Link to comment
Share on other sites

Basically, if when entering 1 of your servers, it gives you the pop up saying "Launching Server...." then it will be using server_log instead. If your server didnt have caves/wasn't dedicated, then the error would have been in the client_log, and the game would have crashed.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...