Sign in to follow this  
chazcat124

want nightvision for a spider character(Dot). (need help again)

Recommended Posts

chazcat124    18

heya there, it's me again... crawling back after just a week or so of getting assistance before on here, helping point my short attention span toward the ignorant mistake of capitalization of Dot's name into the code(dammnit, english class!).
i attempted to add nightvision by myself, but i don't really know how to code. one quick google search lead me to THIS thread:

after copying and pasting what i thought was right into what i thought was the right spot in the dot.lua[charactername].lua located in the scripts folder for people who are following along). 

this is what i copied and pasted:____________________________________________________________

 

local NIGHTVISION_COLOURCUBES =
{
    day = "images/colour_cubes/ruins_light_cc.tex",
    dusk = "images/colour_cubes/ruins_dim_cc.tex",
    night = "images/colour_cubes/purple_moon_cc.tex",
    full_moon = "images/colour_cubes/purple_moon_cc.tex",
}

local function SetNightVision(inst, enable)
    if TheWorld.state.isnight or TheWorld:HasTag("cave") then
        inst.components.playervision:ForceNightVision(true)
        inst.components.playervision:SetCustomCCTable(NIGHTVISION_COLOURCUBES)
    else
        inst.components.playervision:ForceNightVision(false)
        inst.components.playervision:SetCustomCCTable(nil)
    end
end

-- This initializes for both the server and client. Tags can be added here.
local common_postinit = function(inst) 
    inst:WatchWorldState( "isday", function() SetNightVision(inst) end)
      inst:WatchWorldState( "isdusk", function() SetNightVision(inst) end)
      inst:WatchWorldState( "isnight", function() SetNightVision(inst)  end)
    inst:WatchWorldState( "iscaveday", function() SetNightVision(inst) end)
      inst:WatchWorldState( "iscavedusk", function() SetNightVision(inst) end)
      inst:WatchWorldState( "iscavenight", SetNightVision)
    
    SetNightVision(inst)
    end

 

this is what the entirety of that file looks now: __________________________________________________________

 

local MakePlayerCharacter = require "prefabs/player_common"


local assets = {
 Asset("SCRIPT", "scripts/prefabs/player_common.lua"),

      Asset("ANIM", "anim/dot.zip"),
}
local prefabs = {}

-- Custom starting inventory
local start_inv = {
}

-- When the character is revived from human
local function onbecamehuman(inst)
    -- Set speed when not a ghost (optional)
    inst.components.locomotor:SetExternalSpeedMultiplier(inst, "dot_speed_mod", 1.5)
end

local function onbecameghost(inst)
    -- Remove speed modifier when becoming a ghost
   inst.components.locomotor:RemoveExternalSpeedMultiplier(inst, "dot_speed_mod")
end

-- When loading or spawning the character
local function onload(inst)
    inst:ListenForEvent("ms_respawnedfromghost", onbecamehuman)
    inst:ListenForEvent("ms_becameghost", onbecameghost)

    if inst:HasTag("playerghost") then
        onbecameghost(inst)
    else
        onbecamehuman(inst)
    end
end

local NIGHTVISION_COLOURCUBES =
{
    day = "images/colour_cubes/ruins_light_cc.tex",
    dusk = "images/colour_cubes/ruins_dim_cc.tex",
    night = "images/colour_cubes/purple_moon_cc.tex",
    full_moon = "images/colour_cubes/purple_moon_cc.tex",
}

local function SetNightVision(inst, enable)
    if TheWorld.state.isnight or TheWorld:HasTag("cave") then
        inst.components.playervision:ForceNightVision(true)
        inst.components.playervision:SetCustomCCTable(NIGHTVISION_COLOURCUBES)
    else
        inst.components.playervision:ForceNightVision(false)
        inst.components.playervision:SetCustomCCTable(nil)
    end
end

-- This initializes for both the server and client. Tags can be added here.
local common_postinit = function(inst) 
    inst:WatchWorldState( "isday", function() SetNightVision(inst) end)
      inst:WatchWorldState( "isdusk", function() SetNightVision(inst) end)
      inst:WatchWorldState( "isnight", function() SetNightVision(inst)  end)
    inst:WatchWorldState( "iscaveday", function() SetNightVision(inst) end)
      inst:WatchWorldState( "iscavedusk", function() SetNightVision(inst) end)
      inst:WatchWorldState( "iscavenight", SetNightVision)
    
    SetNightVision(inst)
    end

-- This initializes for both the server and client. Tags can be added here.
local common_postinit = function(inst) 
    -- Minimap icon
    inst.MiniMapEntity:SetIcon( "dot.tex" )
end

-- This initializes for the server only. Components are added here.
local master_postinit = function(inst)
    -- choose which sounds this character will play
    inst.soundsname = "webber"
    
    -- Uncomment if "wathgrithr"(Wigfrid) or "webber" voice is used
    inst.talker_path_override = "dontstarve_DLC001/characters/"
    
    -- Stats    
    inst.components.health:SetMaxHealth(125)
    inst.components.hunger:SetMax(175)
    inst.components.sanity:SetMax(125)
    
    -- Damage multiplier (optional)
    inst.components.combat.damagemultiplier = .72
    
    -- Hunger rate (optional)
    inst.components.hunger.hungerrate = .61 * TUNING.WILSON_HUNGER_RATE
    
    inst.OnLoad = onload
    inst.OnNewSpawn = onload
    
end

return MakePlayerCharacter("dot", prefabs, assets, common_postinit, master_postinit, start_inv)
 

_______________________________________________________________________________________________________________

after loading up the game after deleting & getting new .txt, .zip and .xml files from manually running the compiler, i was surprised to not get a crash after mutilating the character's code like this when starting a new world. everything was fine, no crashing upon worldgen, no whitescreening after character select... no, the problem came after all that. during play. the nightvision didn't work, so Dot lost 100 of her max 125 HP. poor girl...

i can upload the 'new and improved' files on google drive and post the shared link, if needed.

Edited by chazcat124

Share this post


Link to post
Share on other sites
Hornete    8954

Try this, You need some brackets I believe

 

Quote

local function SetNightVision(inst, enable)
    if (TheWorld.state.isnight or TheWorld:HasTag("cave")) then
        inst.components.playervision:ForceNightVision(true)
        inst.components.playervision:SetCustomCCTable(NIGHTVISION_COLOURCUBES)
    else
        inst.components.playervision:ForceNightVision(false)
        inst.components.playervision:SetCustomCCTable(nil)
    end
end

 

Share this post


Link to post
Share on other sites
Hornete    8954
Just now, chazcat124 said:

whoa, thanks for the quick reply!

where does that go?

ok, i put it in. i'll test it now.

image.thumb.png.a9b3f18f2b6626bd653e4ad32a08a39c.png
this is um...
going to be awhile

You tested in nighttime I assume?

 

Share this post


Link to post
Share on other sites
Hornete    8954
Just now, chazcat124 said:

yes, i did.

Alright let me keep doing some digging.

Give me the google drive stuff, It will be easier for me to compare

 

Share this post


Link to post
Share on other sites
Hornete    8954
Just now, chazcat124 said:

huh. is that kinda like how in minecraft, you can do /settime 1000 ?

Can you try getting rid of the ", enable"?

Quote

local function SetNightVision(inst, enable)
    if (TheWorld.state.isnight or TheWorld:HasTag("cave")) then
        inst.components.playervision:ForceNightVision(true)
        inst.components.playervision:SetCustomCCTable(NIGHTVISION_COLOURCUBES)
    else
        inst.components.playervision:ForceNightVision(false)
        inst.components.playervision:SetCustomCCTable(nil)
    end
end

 

Share this post


Link to post
Share on other sites
Hornete    8954
Just now, chazcat124 said:

just copy and paste that? sure.

Well, no haha I mean the function you have, Get rid of the enable part in 
 

Quote

local function SetNightVision(inst, enable)  

 

Share this post


Link to post
Share on other sites
chazcat124    18

ok testing now.
um... in what instances should i delete the .xml, .tex, and .zip files to get new ones from the compiler?

image.thumb.png.280e5dcbc82ac003f02e02b65d1cd21f.png

damn

image.thumb.png.26f9c6d193906eabc0e8ce692720bc36.png

well, that WAS unsuccessful, but i did get 5 bluecaps in one night, sooo that's got to be somethin'.

did i copy and paste the code initially into the wrong spot?

Share this post


Link to post
Share on other sites
Hornete    8954

Sorry, Can you send your client log? Make sure it was after trying and testing the world.

Quote

local common_postinit = function(inst) 
    inst:WatchWorldState( "isday", function() SetNightVision(inst) end)
      inst:WatchWorldState( "isdusk", function() SetNightVision(inst) end)
      inst:WatchWorldState( "isnight", function() SetNightVision(inst)  end)
    inst:WatchWorldState( "iscaveday", function() SetNightVision(inst) end)
      inst:WatchWorldState( "iscavedusk", function() SetNightVision(inst) end)
      inst:WatchWorldState( "iscavenight", SetNightVision)
    
    SetNightVision(inst)
    end

You forgot the word function() for iscavenight
 

Quote

inst:WatchWorldState( "iscavenight", function() SetNightVision end)

You also seemed to have forgotten your end command... This might fix it? Not sure

Edited by Omaremad74

Share this post


Link to post
Share on other sites
chazcat124    18

i'm guessing you can find it by booting up the game and hitting 'data', right?

 

oh, thanks!

hold on, i'm gonna start up a world with Dot then send it.

 

image.thumb.png.0b7e7421c44b0622da7b4befe3d8c726.png

hmmm.... is this normal?

Share this post


Link to post
Share on other sites
Hornete    8954
Just now, chazcat124 said:

i'm guessing you can find it by booting up the game and hitting 'data', right?

 

oh, thanks!

hold on, i'm gonna start up a world with Dot then send it.

 

image.thumb.png.0b7e7421c44b0622da7b4befe3d8c726.png

hmmm.... is this normal?

Huh, that's just a setpeice.

Share this post


Link to post
Share on other sites
chazcat124    18

image.thumb.png.a2b75541d130464183d1f5732e22b4a8.png

ok, i'm done screwing around...
for now.

here you go, it's quite long: ______________________________________________
 

9:00 PM 4/7/2019[00:00:00]: 
System Memory:
    Memory Load: 35%
    Available Physical Memory: 5268m/8146m
    Available Page File: 4601m/9426m
    Available Virtual Memory: 3949m/4095m
    Available Extended Virtual Memory: 0m
[00:00:00]: 
Process Memory:
    Peak Working Set Size: 31m
    Working Set Size: 30m
    Quota Peak Page Pool Usage: 264k
    Quota Page Pool Usage: 262k
    Quota Peak Non Paged Pool Usage:18k
    Quota Non Paged Pool Usage: 18k
    Page File Usage: 5m
    Peak Page File Usage: 5m
[00:00:00]: PersistRootStorage is now APP:Klei//DoNotStarveTogether/ 
[00:00:00]: Starting Up
[00:00:00]: Version: 322646
[00:00:00]: Current time: Sun Apr 07 20:46:21 2019

[00:00:00]: Don't Starve Together: 322646 WIN32_STEAM
[00:00:00]: Build Date: 3930
[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: 3710905
[00:00:01]: ....Done
[00:00:01]: PersistUserStorage is now APP:Klei//DoNotStarveTogether/332217723/ 
[00:00:01]: Fixing DPI
[00:00:01]: ...Done
[00:00:01]: THREAD - started 'GAClient' (6428)
[00:00:01]: CurlRequestManager::ClientThread::Main()
[00:00:01]: Mounting file system databundles/klump.zip successful.
[00:00:01]: Mounting file system databundles/shaders.zip successful.
[00:00:01]: Mounting file system databundles/fonts.zip successful.
[00:00:01]: Mounting file system databundles/anim_dynamic.zip successful.
[00:00:01]: Mounting file system databundles/bigportraits.zip successful.
[00:00:01]: Mounting file system databundles/images.zip successful.
[00:00:01]: Mounting file system databundles/scripts.zip successful.
[00:00:03]: ProfileIndex:4.43
[00:00:03]: [Connect] PendingConnection::Reset(true)
[00:00:03]: Platform: 1
[00:00:03]: THREAD - started 'Ping Job Thread' (8868)
[00:00:03]: Network tick rate: U=15(2), D=0
[00:00:03]: Authorized application C:\Program Files (x86)\Steam\steamapps\common\Don't Starve Together\bin\dontstarve_steam.exe is enabled in the firewall.
[00:00:03]: WindowsFirewall - Application already authorized
[00:00:03]: THREAD - started 'StreamInput' (6500)
[00:00:03]: loaded ping_cache
[00:00:03]: Offline user ID: OU_76561198292483451
[00:00:03]: SteamID: 76561198292483451
[00:00:03]: HardwareStats:
  OS                        
    name                      Microsoft Windows 10 Pro
    version                   10.0.17134
    architecture              64-bit
    platformSpecific          SP 0.0
  CPU                       
    numCores                  4
    features                  SSE,SSE2,SSE3,SSSE3,SSE41,SSE42,AVX
    name                      Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz
    manufacturer              GenuineIntel
    clockSpeed                3401
  RAM                       
    megsOfRam                 8192
  GPU                       
    name                      NVIDIA GeForce GTX 1050 Ti
    driverDate                20171027000000.000000-000
    megsOfRam                 4095
    refreshRate               60
    videoModeDescription      1366 x 768 x 4294967296 colors
    driverVersion             23.21.13.8813

[00:00:03]: cGame::InitializeOnMainThread
[00:00:03]: WindowManager::Initialize
[00:00:03]: CreateWindow: Requesting 1196,672 - 5/6/5 - -1/-1/-1 - 0
[00:00:03]: CreateEGLContext: 12 configs found
[00:00:03]:      0: 8/8/8 -  0/ 0/ 0 - 0
[00:00:03]:      1: 8/8/8 -  0/16/ 0 - 0
[00:00:03]:      2: 8/8/8 -  0/24/ 0 - 0
[00:00:03]:      3: 8/8/8 -  0/24/ 8 - 0
[00:00:03]:      4: 5/5/5 -  0/ 0/ 0 - 0
[00:00:03]:      5: 5/5/5 -  0/16/ 0 - 0
[00:00:03]:      6: 5/5/5 -  0/24/ 0 - 0
[00:00:03]:      7: 5/5/5 -  0/24/ 8 - 0
[00:00:03]:      8: 8/8/8 -  8/ 0/ 0 - 0
[00:00:03]:      9: 8/8/8 -  8/16/ 0 - 0
[00:00:03]:     10: 8/8/8 -  8/24/ 0 - 0
[00:00:03]:     11: 8/8/8 -  8/24/ 8 - 0
[00:00:03]: RestoreWindowPosition
[00:00:03]:    Saved Client Pos (1 x 31)
[00:00:03]:    Adjusted Window Pos (-7 x 0)
[00:00:03]: EnsureWindowOnScreen
[00:00:03]:    All good.
[00:00:03]: GLInfo
[00:00:03]: ~~~~~~
[00:00:03]: GL_VENDOR: Google Inc.
[00:00:03]: GL_RENDERER: ANGLE (NVIDIA GeForce GTX 1050 Ti)
[00:00:03]: GL_VERSION: OpenGL ES 2.0 (ANGLE 1.0.0.2249)
[00:00:03]: GL_SHADING_LANGUAGE_VERSION: OpenGL ES GLSL ES 1.00 (ANGLE 1.0.0.2249)
[00:00:03]: THREAD - started 'WindowsInputManager' (5640)
[00:00:03]: OpenGL extensions (19, 19):
[00:00:03]: GL_ANGLE_depth_texture
[00:00:03]: GL_ANGLE_framebuffer_blit
[00:00:03]: GL_ANGLE_framebuffer_multisample
[00:00:03]: GL_ANGLE_instanced_arrays
[00:00:03]: GL_ANGLE_pack_reverse_row_order
[00:00:03]: GL_ANGLE_texture_compression_dxt3
[00:00:03]: GL_ANGLE_texture_compression_dxt5
[00:00:03]: GL_ANGLE_texture_usage
[00:00:03]: GL_ANGLE_translated_shader_source
[00:00:03]: GL_EXT_read_format_bgra
[00:00:03]: GL_EXT_robustness
[00:00:03]: GL_EXT_texture_compression_dxt1
[00:00:03]: GL_EXT_texture_format_BGRA8888
[00:00:03]: GL_EXT_texture_storage
[00:00:03]: GL_OES_get_program_binary
[00:00:03]: GL_OES_packed_depth_stencil
[00:00:03]: GL_OES_rgb8_rgba8
[00:00:03]: GL_OES_standard_derivatives
[00:00:03]: GL_OES_texture_npot
[00:00:03]: GL_MAX_TEXTURE_SIZE = 16384
[00:00:03]: GL_MAX_TEXTURE_IMAGE_UNITS = 16
[00:00:03]: GL_MAX_RENDERBUFFER_SIZE = 16384
[00:00:03]: GL_MAX_VIEWPORT_DIMS = 16384, 16384
[00:00:03]: GL_MAX_VARYING_VECTORS = 10
[00:00:03]: GL_MAX_VERTEX_ATTRIBS = 16
[00:00:03]: GL_MAX_VERTEX_UNIFORM_VECTORS = 254
[00:00:03]: GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = 4
[00:00:03]: GL_MAX_FRAGMENT_UNIFORM_VECTORS = 221
[00:00:03]: 4 compressed texture formats
[00:00:03]: texture format 0x83f0
[00:00:03]: texture format 0x83f1
[00:00:03]: texture format 0x83f2
[00:00:03]: texture format 0x83f3
[00:00:04]: Renderer initialize: Okay
[00:00:04]: Ping measurement completed
[00:00:04]: Ping location: iad=26+2,atl=51+5/39+2,ord=40+4,okc=58+5/57+4,sea=92+9/82+4,eat=91+9/87+4,lax=89+8/88+2,ams=94+9,lhr=92+9/98+2,fra=116+11/104+9,gru=159+15/170+2,sgp=267+26/259+4
[00:00:04]: AnimManager initialize: Okay
[00:00:04]: Buffers initialize: Okay
[00:00:04]: cDontStarveGame::DoGameSpecificInitialize()
[00:00:04]: GameSpecific initialize: Okay
[00:00:04]: cGame::StartPlaying
[00:00:04]: LOADING LUA
[00:00:04]: DoLuaFile scripts/main.lua
[00:00:04]: 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]:   taskgrouplist:    quagmire_taskset    The Gorge    
[00:00:05]: running main.lua
    
[00:00:05]: loaded modindex    
[00:00:05]: WARNING: icon paths for mod dot (Dot, The Deep Chef) 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:05]: ModIndex: Beginning normal load sequence.
    
[00:00:05]: ModIndex:GetModsToLoad inserting moddir,     workshop-1688661034    
[00:00:05]: ModIndex:GetModsToLoad inserting moddir,     workshop-343753877    
[00:00:05]: ModIndex:GetModsToLoad inserting moddir,     workshop-376333686    
[00:00:05]: loaded mod_config_data/modconfiguration_workshop-1688661034    
[00:00:05]: Loading mod: workshop-1688661034 (Drops Reset Countdown) Version:0.17    
[00:00:05]: loaded mod_config_data/modconfiguration_workshop-343753877    
[00:00:05]: Loading mod: workshop-343753877 (Status Announcements) Version:2.6.0    
[00:00:05]: loaded mod_config_data/modconfiguration_workshop-376333686    
[00:00:05]: Loading mod: workshop-376333686 (Combined Status) Version:1.7.5    
[00:00:05]: Mod: workshop-343753877 (Status Announcements)    Loading modworldgenmain.lua    
[00:00:05]: Mod: workshop-343753877 (Status Announcements)      Mod had no modworldgenmain.lua. Skipping.    
[00:00:05]: Mod: workshop-343753877 (Status Announcements)    Loading modmain.lua    
[00:00:05]: ModIndex:GetModsToLoad inserting moddir,     workshop-1688661034    
[00:00:05]: ModIndex:GetModsToLoad inserting moddir,     workshop-343753877    
[00:00:05]: ModIndex:GetModsToLoad inserting moddir,     workshop-376333686    
[00:00:05]: modimport: ../mods/workshop-343753877/announcestrings/english.lua    
[00:00:05]: Mod: workshop-1688661034 (Drops Reset Countdown)    Loading modworldgenmain.lua    
[00:00:05]: Mod: workshop-1688661034 (Drops Reset Countdown)      Mod had no modworldgenmain.lua. Skipping.    
[00:00:05]: Mod: workshop-1688661034 (Drops Reset Countdown)    Loading modmain.lua    
[00:00:05]: modimport: ../mods/workshop-1688661034/scripts/drops_strings.lua    
[00:00:05]: Mod: workshop-376333686 (Combined Status)    Loading modworldgenmain.lua    
[00:00:05]: Mod: workshop-376333686 (Combined Status)      Mod had no modworldgenmain.lua. Skipping.    
[00:00:05]: Mod: workshop-376333686 (Combined Status)    Loading modmain.lua    
[00:00:05]: ModIndex:GetModsToLoad inserting moddir,     workshop-1688661034    
[00:00:05]: ModIndex:GetModsToLoad inserting moddir,     workshop-343753877    
[00:00:05]: ModIndex:GetModsToLoad inserting moddir,     workshop-376333686    
[00:00:05]: Event data unavailable: lavaarena_event_server/lavaarena_achievement_quest_defs
[00:00:07]: LOADING LUA SUCCESS
[00:00:07]: PlayerDeaths loaded morgue    3780    
[00:00:07]: PlayerHistory loaded player_history (v2) len:12219    
[00:00:07]: ServerPreferences loaded server_preferences    2    
[00:00:07]: bloom_enabled    false    
[00:00:07]: loaded saveindex    
[00:00:07]: OnFilesLoaded()    
[00:00:07]: OnUpdatePurchaseStateComplete    
[00:00:07]: Klump load on boot started.    
[00:00:07]: Klump files loaded:     0    
[00:00:09]: Mod: workshop-343753877 (Status Announcements)    Registering prefabs    
[00:00:09]: Mod: workshop-343753877 (Status Announcements)      Registering default mod prefab    
[00:00:09]: Mod: workshop-1688661034 (Drops Reset Countdown)    Registering prefabs    
[00:00:09]: Mod: workshop-1688661034 (Drops Reset Countdown)      Registering default mod prefab    
[00:00:09]: Mod: workshop-376333686 (Combined Status)    Registering prefabs    
[00:00:09]: Mod: workshop-376333686 (Combined Status)      Registering default mod prefab    
[00:00:09]:     Load FE    
[00:00:09]:     Load FE: done    
[00:00:09]: THREAD - started 'FilesExistAsyncThread' (6596)
[00:00:09]: OnLoadPermissionList: APP:Klei//DoNotStarveTogether/332217723/client_save/blocklist.txt (Failure)
[00:00:09]: FilesExistAsyncThread started (10548 files)...
[00:00:09]: OnLoadPermissionList: APP:Klei//DoNotStarveTogether/332217723/client_save/adminlist.txt (Failure)
[00:00:09]: OnLoadUserIdList: APP:Klei//DoNotStarveTogether/332217723/client_save/whitelist.txt (Failure)
[00:00:09]: [MOTD] Downloading info from   https://motd.klei.com/?game=dst&platform=STEAM&locale=US&lang=english&user=76561198292483451  
[00:00:09]: SimLuaProxy::QueryServer()
[00:00:09]: ModIndex: Load sequence finished successfully.    
[00:00:09]: Reset() returning
[00:00:11]: ... FilesExistAsyncThread complete
[00:00:11]: [MOTD] Downloading image for box1
[00:00:12]: [MOTD] Done Loading.    
[00:00:14]: [Steam] Auth Session Ticket requested...
[00:00:15]: [Steam] Got Auth Session Ticket
[00:00:15]: [200] Account Communication Success (3)
[00:00:15]: Logging in as KU_L8KAOOHa
[00:00:16]: There is no active event to get the status of.
[00:00:16]: loaded inventory_cache_prod
[00:00:16]: loaded inventory_cache_prod
[00:00:17]: [Drops Reset Countdown] Save file loaded successfully    
[00:02:50]: ModWorkshop::CancelDownloads clearing all unfinished downloads
[00:02:50]: Collecting garbage...
[00:02:50]: lua_gc took 0.02 seconds
[00:02:50]: ~ShardLuaProxy()
[00:02:50]: ~cEventLeaderboardProxy()
[00:02:50]: ~ItemServerLuaProxy()
[00:02:50]: ~InventoryLuaProxy()
[00:02:50]: ~NetworkLuaProxy()
[00:02:50]: ~SimLuaProxy()
[00:02:50]: ModWorkshop::CancelDownloads clearing all unfinished downloads
[00:02:50]: lua_close took 0.03 seconds
[00:02:50]: ModWorkshop::CancelDownloads clearing all unfinished downloads
[00:02:50]: [Steam] Auth ticket cancelled
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:02:51]: CurlRequestManager::ClientThread::Main() complete
[00:02:51]: HttpClient2 discarded 0 callbacks.
[00:02:51]: steamnetworkingsockets_lowlevel.cpp (88) : Assertion Failed: SteamDatagramTransportLock held for 251.5ms!
[00:02:51]: Shutting down

______________________________________________________________________________________

do you want that in a google drive link?

here you are:
https://drive.google.com/file/d/1B-sHArGoA41yKaIDbzCD3s8fMoS_yQrB/view?usp=sharing
i imagine this is easier to look at than it just copied n' pasted here.

Share this post


Link to post
Share on other sites
Hornete    8954
Quote

local common_postinit = function(inst) 
    inst:WatchWorldState( "isday", function() SetNightVision(inst) end)
      inst:WatchWorldState( "isdusk", function() SetNightVision(inst) end)
      inst:WatchWorldState( "isnight", function() SetNightVision(inst)  end)
    inst:WatchWorldState( "iscaveday", function() SetNightVision(inst) end)
      inst:WatchWorldState( "iscavedusk", function() SetNightVision(inst) end)
      inst:WatchWorldState( "iscavenight", function() SetNightVision(inst) end)
    
    SetNightVision(inst)
    end


Replace your local common_postinit with this.

P.S. It's getting late where I am so I may go to sleep soon

Edited by Omaremad74

Share this post


Link to post
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
Sign in to follow this