Jump to content

Recommended Posts

--I put in the purple moon overlay, but you can navigate to C:\Program Files (x86)\steam\steamapps\common\Don't Starve Together\data\images\colour_cubes and replace it with whatever best fits.
local BEAVERVISION_COLOURCUBES =
{
    night = "images/colour_cubes/purple_moon_cc.tex",
}

--Add these lines to your existing common_postinit
    inst.components.playervision:ForceNightVision(true)
    inst:AddTag("nightvision")
    inst.components.playervision:SetCustomCCTable(BEAVERVISION_COLOURCUBES)

 

On 4/12/2021 at 7:21 PM, Birdskull said:

--I put in the purple moon overlay, but you can navigate to C:\Program Files (x86)\steam\steamapps\common\Don't Starve Together\data\images\colour_cubes and replace it with whatever best fits.
local BEAVERVISION_COLOURCUBES =
{
    night = "images/colour_cubes/purple_moon_cc.tex",
}

--Add these lines to your existing common_postinit
    inst.components.playervision:ForceNightVision(true)
    inst:AddTag("nightvision")
    inst.components.playervision:SetCustomCCTable(BEAVERVISION_COLOURCUBES)

 

hi sorry im so late-    i am using the extended character template and i'm not sure if it has a common_postinit  file. is there a way to make one or am i screwed ":)

7 hours ago, Tennisball said:

hi sorry im so late-    i am using the extended character template and i'm not sure if it has a common_postinit  file. is there a way to make one or am i screwed ":)

Nah, you're good. It's not a separate file. common_postinit is local inside your character .lua. In the extended character template, you can find it under this comment:

-- This initializes for both the server and client. Tags can be added here.

I don't know off the top which line it's on in the unedited template, but here's a screenshot of what you're looking for
image.png.bfb9c03a5c00bbfceea1f32aa906fb6d.png

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