• Announcements

    • JoeW

      [UPDATED] Physical Megapack Disc Issues   04/16/2018

      UPDATE: Earlier this week, we discovered that the wrong content was printed on the PS4 retail version of Don’t Starve Mega Pack (the Xbox One version is not affected). It’s a really unfortunate situation and we’ve been working hard with 505 to resolve this as soon as possible. Below is the latest information: New copies are currently in print and will be on shelves ASAP, hopefully within a few weeks. When the new discs arrive in stores, players who already purchased misprinted discs will be able to exchange the disc for a new one in store. Details will follow as we figure out the exact timing, the procedures with specific retailers and what the exchange will entail.  Players who already purchased the faulty disc will also be able to contact Klei support for a voucher code that includes Don't Starve, Shipwrecked and the Reign of Giants DLC until the new disc is ready. Please specify your country as certain vouchers only work in certain regions.  We will have more details when they become available including details on contacting us and what information we might need.  Once again, thanks to everybody for their patience while we work this out. For questions or concerns, the forum discussion can be found below:   

Search the Community

Showing results for tags 'coding'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Oxygen Not Included
    • Oxygen Not Included FAQ
    • [Oxygen Not Included] - Developer log
    • [Oxygen Not Included] - General Discussion
    • [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
  • Hot Lava
    • [Hot Lava Beta] - General Discussion
    • [Hot Lava Beta] - Suggestions and Feedback
    • [Hot Lava Beta] - Bug Tracker
    • [Hot Lava Beta] - Strats and Records
    • Hot Lava Beta Info
  • Griftlands
    • [Griftlands] - General Discussion
  • 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] The Forge
    • [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
    • [Don't Starve Together] Suggestions and Feedback
    • [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
    • Eets Munchies
    • [Invisible, Inc.] General Discussion and Strategies
    • Mark of the Ninja
    • Shank
  • Other Stuff
    • The Off-Topic Area
    • Forum Upgrade


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


  • Oxygen Not Included - [Early Access]
  • Don't Starve Together
  • 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


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


  • Hot Lava - Beta Reports






Chester Kickstarter

Chester Kickstarter

Chester Kickstarter

Chester Kickstarter

Chester Kickstarter

Klei Featured Artist

Early Supporter

Early Supporter

Don't Starve

Don't Starve Together

Oxygen Not Included

Found 7 results

  1. Hey guys, Found a mod called Taronci with night vision configuration but I found that his night vision uses inst.Light instead of color cubes. My night vision uses Color Cubes. so I tried to change the inst.Light part into inst.components.playervision. My code doesn't work and I think I'm using the wrong statement for this. What statement should I be using for Color Cubes, instead of inst.light? Any help is appreciated, thanks
  2. Hi there, I want to monitor the value change of a variable, say "inst.gcp = 0 or 1". How can I push event when the value of "inst.gcp" changes so that I could listen for event in the character.lua? Would someone please tell me how to do push event? I tried put on the code, it doesn't crash but it doesn't work either. This is my code Would someone care to answer? Really appreciate it. Regards, Nick
  3. Hi there, I have the idea of creating a brand new prototyper with new tabs and items. I tried reading the "scienceprototyper.lua" but couldn't understand it well and was confused with some concept including "component("prototyper")", "techtree", "parent.prefab == "researchlab2"" and "return createmachine(......)". Related files: [scienceprototyper.lua] [researchlab2_pod.lua] [researchlab2_pod_alt.lua] [techtree.lua] and [tuning.lua]. (All under script.zip) I guess I need help with understanding the relations among these code files and how they work. Or maybe someone who has previous experience with prototypers could show me a path through? Or is there an existing mod that does something similar? Any piece of help would be appreciated. Regards,
  4. Hey guys! 3 things today... 1. Like in woodie's transformation, his nightvision only activates in werebeaver form. I'd like to only have my night vision turn on for my lycan transformation but what should I put in my code that would tell it so? I'm using Kzisor/Ysovuka's transformation code As of now this is my night vision code local function RestoreNightvision(inst) inst:DoTaskInTime(3, function(inst) inst.Light:Enable(true) inst.Light:SetRadius(1) inst.Light:SetFalloff(20) inst.Light:SetIntensity(.1) inst.Light:SetColour(245/255,40/255,0/255) end, inst) end local function UpdateNightVision(inst, phase) local enable = phase == "night" inst:DoTaskInTime(enable and 0 or 1, function(inst) inst.components.playervision:ForceNightVision(enable) inst.components.playervision:SetCustomCCTable(enable and {} or nil) end) end local function OnInitNightVision(inst) if TheWorld.ismastersim or inst.HUD then inst:WatchWorldState("phase", UpdateNightVision) UpdateNightVision(inst, TheWorld.state.phase) end end this is in my local common_postinit inst:DoTaskInTime(0, OnInitNightVision) 2. Also what colorcube codes should I use to get this sort of look? Original picture from SuperDavid. As of now my night vision is super bright a fully lit as if there were no difference from the day time and night time. I'd like to have it dimmer and bluer similar to how it looks when there's a full moon at night 3. I'd also like to only eat raw meats while in lycan form, but I'm not sure where to put that or how to do it. Oh one more thing, this is alot to ask but much feedback from steam has been conflicted with people clamoring for night vision or not to have it at all. I'd like to add a configurable setting to the mod where you can choose to play with it or without it. Does anyone know how to do this? If anyone has answers I'd love to hear them, thanks so much guys! Much appreciated!
  5. Hey guys! So, I'm trying to enable my weapon the ability to set enemies on fire when hit. I thought I had an idea to go about it, but it doesn't seem to work in-game. Here's my code, including the other function I think may be conflicting with it: local function onattack_defiance(inst, attacker, victim) if victim ~= nil then local onepercent = inst.components.finiteuses.total / 100 if (inst.components.finiteuses.current) <= inst.components.finiteuses.total then inst.components.finiteuses:Use(2) elseif (inst.components.finiteuses.current) == inst.components.finiteuses.total then inst.components.finiteuses:Use(-onepercent) end end local function onattack(weapon, attacker, victim) if victim ~= nil and victim.components.burnable ~= nil and math.random() < TUNING.TORCH_ATTACK_IGNITE_PERCENT * victim.components.burnable.flammability then victim.components.burnable:Ignite(nil, attacker) end end Any idea what's going wrong?
  6. Hey guys, for the life of me I can't figure out how to have the character's name show up in game since they updated. I've searched the forums and saw someone with a similar problem, so I tried out her solution. But nothing works. I also did some digging in the images in DST's folder itself and tried to copy the code exactly, with changes to the names and file names, but that also did not work. I tried following the same xml code from a mod on steam by Diao Bao, but upon hovering over my character the entire game crashes. I'm stumped Here's my code for the gold name and my code for the normal one (ignore that the character portrait is blank, i have yet to work on it) attaching tex and png files just in case I missed something and someone could help. names_gold_illyria.tex names_illyria.tex
  7. So I'm working on some new characters, as always, coding isn't my strong point.I'm trying to make some characters, simple, except for a perk that keeps ALL mobs from aggroing onto them.Would anyone have some solutions?And if anyone knows where I can look up common codes so I know what I can use I'd be most appreciated!