Search the Community

Showing results for tags 'nightvision'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Hot Lava
    • [Hot Lava] - General Discussion
    • [Hot Lava] - Suggestions and Feedback
    • [Hot Lava] - Bug Tracker
    • [Hot Lava] - Strats and Records
    • [Hot Lava] - Developer Log
    • Hot Lava Latest Update
  • Griftlands
    • [Griftlands Early Access] - General Discussion
    • [Griftlands Early Access] - Suggestions and Feedback
    • [Griftlands Early Access] - Localization
    • [Griftlands Early Access] - Bug Tracker
    • [Griftlands Early Access] - Developer log
  • Oxygen Not Included
    • Oxygen Not Included FAQ
    • [Oxygen Not Included] - Developer log
    • [Oxygen Not Included] - General Discussion
    • [Oxygen Not Included] - Mods and Tools
    • [Oxygen Not Included] - Suggestions and Feedback
    • [Oxygen Not Included] - Bug Tracker
    • [Oxygen Not Included] Art, Music & Lore
    • Community Challenges
    • [Oxygen Not Included] - Latest Content Update
    • [Oxygen Not Included] - Latest Animated Short
  • Don't Starve Together
    • Don't Starve Together FAQ
    • [Don't Starve Together] Developer log
    • [Don't Starve Together] General Discussion
    • [Don't Starve Together] Return of Them
    • [Don't Starve Together] PS4
    • [Don't Starve Together] Xbox One
    • [Don't Starve Together] Bug Tracker
    • [Don't Starve Together] Trading
    • [Don't Starve Together] Server Bulletin
    • [Don't Starve Together] Dedicated Server Discussion
    • [Don't Starve Together] Mods and Tools
    • [Don't Starve Together] Tales of Life and Death
    • [DS + DST] Art, Music and Lore
    • [Don't Starve Together] Suggestions and Feedback
    • [Don't Starve Together] The Forge
    • [Don't Starve Together] The Gorge
    • [Archived Bugs]
  • Don't Starve
    • Don't Starve FAQ
    • [Don't Starve: Pocket Edition] iOS / Android
    • [Don't Starve] General Discussion
    • [Don't Starve] Mods and tools
    • [Don't Starve] Art, Music & Lore
    • [Don't Starve] Suggestions and Feedback
    • [Don't Starve] Videos
    • [Don't Starve] Bug Tracker
    • [Don't Starve] Trading
    • [Don't Starve] Testing Discussion (archive)
  • Klei Entertainment Games
  • Other Stuff

Categories

  • Don't Starve
    • Custom Character and Skins
    • Game Modifications
    • Language Packs
    • Modding Tools, Tutorials & Examples
    • Custom Maps

Categories

  • Oxygen Not Included
  • Griftlands - [Early Access]
  • Don't Starve: Hamlet
  • Don't Starve: Hamlet Early Access
  • Don't Starve Together
  • Don't Starve Together: Return of Them
  • Don't Starve Together: The Gorge
  • Don't Starve Together: The Forge
  • Don't Starve Together: The Forge (Archive)
  • [Don't Starve Together] PS4
  • [Don't Starve Together] Xbox One
  • Don't Starve: Shipwrecked
  • Don't Starve: Shipwrecked [archive]
  • [Don't Starve Together] PS4 (archive)
  • [iOS] Don't Starve: Shipwrecked
  • Don't Starve: Hamlet Closed Beta (ARCHIVE)

Categories

  • Oxygen Not Included
  • Griftlands - [Early Access]
  • Hot Lava
  • Don't Starve Together
  • [PS4] Don't Starve Together
  • [Xbox One] Don't Starve Together
  • Don't Starve: Hamlet
  • Don't Starve: Shipwrecked

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End



Biography


Location


Interests


Occupation


Favorite Game


Modder


Chester Kickstarter


Chester Kickstarter


Chester Kickstarter


Chester Kickstarter


Chester Kickstarter


Klei Featured Artist


Early Supporter


Early Supporter


Don't Starve


Don't Starve Together

Found 5 results

  1. 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.
  2. Version 1.0.0

    636 downloads

    IT'S FINALLY HAPPENED. This piece'a crap took nearly forever, and, in all honesty, i'm fuckin' excited for this ****s release. And who is the genius whom coded in literally all of War's functions? Why, that man is @DarkXero! This man had coded in an enormous amount of code and i honestly can't thank him enough. But onto its special abilities now! War's pro's: *War can not only continuously sail on water, but he creates waves during the process! *War is able to literally go out of bounds (going too far may cause a crash, just sayin') *War has the ability to trample over things, just like giants! *War is able to devour everything and anything *War is a living divining rod (press G to toggle that function) *War never freezes nor burns *War can't overheat nor get cold *War has night-vision *War doesn't get hurt and his health is literally gibberish *War does not starve *War does not lose sanity *War does not inflict pain when it comes to small weaklings *War does not flinch upon being hit by monkey **** *War is not effected by spider webs *War can literally kill the master on the throne *War has a custom intro! *War will be struck by lightning upon moving from world-to-world! *War is a killing machine *Custom Maxwell intros for all 6 chapters! *War's ability to become a living divining rod will automatically trigger in adventure mode *War has 3 extra inventory slots War's con's: *War cannot equip any items *War will inflict pain upon being hit by Giants *Upon throne death, the world gets immensely ****** up *War does not speak *War can't sleep, similarly to Wickerbottom *War can't use items for anything but to eat them *Upon throne death, War will be constantly hunt down by them *War has seen some **** I guess you could say that this fag has 2 purposes. 1. it makes life easier for those whom suck at don't starve. e.g. me. 2. its coding could be used for those whom aren't so skilled at coding when makin' a mod i guess. But again, i cannot thank @DarkXero enough. What makes me even more thankful is how all of these functions were done by him and only him. i'm not even exaggerating. i was surprised and baffled how he had the patience to stay by my side with this mod from beginning to end. i genuinely am honored to have been able to work with this man, and i really wish to make this man about as happy as i. so please, give this man some recognition and some praise by following him. please, i beg of you. P.S. special thanks to Deeyadee. please go watch her through deviantart for doing War's banner in the bigportrait file: http://deeyadee.deviantart.com/
  3. I've been trying to figure out this problem for a while but due to *cough* lack of programming skill *cough* I've had issues. Basically i want my character to have night vision so I've basically took the night vision code from Woodie and put it on my character but added a bit so it fits what i want it to do. This is the night vision code (Not the entire script): local MONSTERVISION_COLOURCUBES ={ day = "images/colour_cubes/beaver_vision_cc.tex", dusk = "images/colour_cubes/beaver_vision_cc.tex", night = "images/colour_cubes/beaver_vision_cc.tex", full_moon = "images/colour_cubes/beaver_vision_cc.tex",}local function NightVision(inst)if not TheWorld.ismastersim then inst.components.playervision:ForceNightVision(true) inst.components.playervision:SetCustomCCTable(MONSTERVISION_COLOURCUBES)endendlocal function NightVision2(inst)if not TheWorld.ismastersim then inst.components.playervision:ForceNightVision(false) inst.components.playervision:SetCustomCCTable(nil) endendinst:WatchWorldState("startnight", NightVision)inst:WatchWorldState("startday", NightVision2)The code seems to work fine but according to a friend I've messed up the porting of my mod to DST as whenever my character comes into vision of another player on a dedicated server, it crashes with this error: "[00:05:09]: [string "scripts/components/playervision.lua"]:43: attempt to index field 'inventory' (a nil value)" I just don't know what to do sadly and i was wondering if someone could help me?
  4. How would I be able to run this function client-side only? local function FormVision(inst, phase) if inst.trentform and phase == "night" then inst.entity:AddLight() inst.Light:SetFalloff(0.5) inst.Light:SetIntensity(0.9) inst.Light:SetRadius(15) inst.Light:SetColour(245/255,255/255,245/255) inst.Light:Enable(true) else inst.Light:Enable(false) endend
  5. Hey guys, I found some code to enable a lightsource at night (nightvision) but right now it is visible for all the players on the server. I want it to be playervision-only. This is the code for the "light": Is it possible to make this light (or any other light) player-only? I really think that nightvision is a cool perk, but it's a gamebreaker when everyone can see it. I looked into woddie's code for beaver, but it's just the same as stated above. Since it was singleplayer, it worked as intended. Is it possible to make a player-only light now when it's multiplayer? Best regards