Jump to content

Search the Community

Showing results for tags 'temperature'.

  • 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] - General Discussion
    • [Griftlands] - Suggestions and Feedback
    • [Griftlands] - Mods and Tools
    • [Griftlands] - Localization
    • [Griftlands] - Bug Tracker
    • [Griftlands] - Developer log
  • Oxygen Not Included
    • Oxygen Not Included FAQ
    • [Oxygen Not Included] - Developer log
    • [Oxygen Not Included] - General Discussion
    • [Oxygen Not Included] - Bug Tracker
    • [Oxygen Not Included: Spaced Out!] - Bug Tracker
    • [Oxygen Not Included] - Mods and Tools
    • [Oxygen Not Included] - Suggestions and Feedback
    • [Oxygen Not Included] Art, Music & Lore
    • Community Challenges
    • [Oxygen Not Included] - Latest Content Update
    • [Oxygen Not Included] - Latest Animated Short
    • Oxygen Not Included DLC Alpha
  • 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] Beta Branch
    • [Don't Starve Together] PlayStation
    • [Don't Starve Together] Xbox One
    • [Don't Starve Together] Nintendo Switch
    • [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
    • Eets Munchies
    • [Invisible, Inc.] General Discussion and Strategies
    • Mark of the Ninja
    • Shank
  • Other Stuff
    • Other Klei Services

Categories

  • Oxygen Not Included
  • Oxygen Not Included: Spaced Out!
  • Griftlands
  • Don't Starve: Hamlet
  • Don't Starve: Hamlet Early Access
  • Don't Starve Together
  • Don't Starve Together: Beta Branch
  • [Don't Starve Together] Nintendo Switch
  • [Don't Starve Together] PlayStation
  • 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] 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
  • Oxygen Not Included: Spaced Out!
  • Griftlands
  • Hot Lava
  • Don't Starve Together
  • [Nintendo Switch] Don't Starve Together
  • [PlayStation] 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


Group


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


Oxygen Not Included

Found 4 results

  1. Hello Again! I need some assistance in regards to some custom items I've worked on for a friend. I was recently notified of a game crashing bug that only occurs with more than one person on a sever. Alone it doesn't crash, but once someone joins, boom. The items in question buff the player by temporarily giving them either a cooling or heating radius. I am using Ultroman's Aura Code and other references I've looked into to turn the crafter into a walking heater/cooler for a duration of time (the reason for the aura was for possible changes in case my friend wanted that buff to apply to other characters nearby by increasing the buffing range). I definitely screwed up in the heating & cooling, but unfortunately the error log is rather obscure to me, and since it doesn't crash with one player, so I can't seem to pinpoint this. I did browse through any existing examples of say portable heaters, thermal stones and similar items, but I was never comfortable when coding this. It was rather hard for me to tell whether or not my character was warming up or cooling down when these items applied their buff. Any assistance or insight will be greatly appreciated. I've attached the client_log and two item prefab files. This is what I have for the Heating. Cooling is pretty much the same but with different temp values. local assets = { Asset("ANIM", "anim/wyrdflask_heating.zip"), Asset("ATLAS", "images/inventoryimages/wyrdflask_heating.xml"), } local prefabs = { "wyrd", "wyrdflask" } -- HEATING AURA WORKS DIFFERENTLY THIS ONLY APPLIES THE BUFF -- ONCE BUT THE BUFF LASTS BASED ON WHAT heatingAuraDuration -- IS. RADIUS IS SET TO 1 SO THAT WYRD IS THE ONLY ONE WHO -- GETS THE BUFF. --------------------------------------- -- LOCAL EASY TO FIND VARIABLES - START --------------------------------------- -- TUNING.TOTAL_DAY_TIME = 8 MINUTES = 480 SECONDS / X = TOTAL TIME. -- WORK WITH DIVISION/MULTIPLICATION OF TOTAL DAY TIME -- EX: TUNING.TOTAL_DAY_TIME * 2 = DAYS local heatingAuraDuration = TUNING.TOTAL_DAY_TIME/1.6 -- 5 MINUTES local heatingAuraRadius = 1 -- RADIUS OF AURA local heatingTick = 0.1 -- DELAY IN WHICH HEATING AURA ACTIVATES WHEN CRAFTED --------------------------------------- -- LOCAL EASY TO FIND VARIABLES - END --------------------------------------- -------------------------------- -- WYRD EXCLUSIVE PICKUP - START - --CODE REFERENCED FROM maliblues : https://forums.kleientertainment.com/forums/topic/113820-help-preventing-custom-item-from-going-into-backpackschestsetc/?do=findComment&comment=1287064 -------------------------------- local function OnPutInInventory(inst) local owner = inst.components.inventoryitem:GetGrandOwner() if owner == nil then return elseif owner.components.inventory and owner.prefab ~= "wyrd" then inst:DoTaskInTime(0.1, function() owner.components.inventory:DropItem(inst) owner.components.talker:Say("That flask is cursed...") end) end if owner.components.container then --for chests --test when in backpack with diff owner inst:DoTaskInTime(0.1, function() owner.components.container:DropItem(inst) end) end end -------------------------------- -- WYRD EXCLUSIVE PICKUP - END -------------------------------- ------------------------------------------------------ -- RETURNS ORIGINAL FLASK AFTER TIME REACHES 0 - START ------------------------------------------------------ local function OnFinished(inst) local owner = inst.components.inventoryitem.owner local flask = SpawnPrefab("wyrdflask") inst:Remove() if owner ~= nil and owner.components.inventory then -- CHECK IF THE OWNER ITEM IS VALID AND NOT A CONTAINER owner.components.inventory:GiveItem(flask) elseif owner ~= nil and owner.components.container then -- OR IF THE OWNER IS VALID AND IS A CONTAINER owner.components.container:GiveItem(flask) else inst.components.lootdropper:SpawnLootPrefab("wyrdflask") -- DROPS NORMAL FLASK AS BASIC LOOT IN THE CASE OF ABOVE end end ------------------------------------------------------ -- RETURNS ORIGINAL FLASK AFTER TIME REACHES 0 - END ------------------------------------------------------ ----------------------- -- HEATING CODE - START ----------------------- -- Heated Character emits constant temperatures depending on the temperature range it's in local heats = { 30, 40, 60 } local function GetHeatFn(receiver) return heats or 20 end local function turnOnHeating(receiver) receiver:AddTag("HASHEATER") receiver:AddComponent("heater") receiver.components.heater.heatfn = GetHeatFn receiver.components.heater:SetThermics(false, true) end local function turnOffHeating(receiver) receiver:RemoveTag("HASHEATER") receiver:RemoveComponent("heater") end ----------------------- -- HEATING CODE - END ----------------------- --------------------- -- START OF AURA CODE --------------------- local onEndAura = function(receiver, wyrdflask_heatingGUID, wyrdHeatingAura) -- Fail-safe. if not receiver or not receiver:IsValid() then return end -- If the receiver has the heating aura task, cancel it. if receiver[wyrdHeatingAura] then receiver[wyrdHeatingAura]:Cancel() receiver[wyrdHeatingAura] = nil end turnOffHeating(receiver) end local onApplyAura = function(receiver, wyrdflask_heating) -- "receiver" = Player -- "wyrdflask_heating" = Item applying the aura -- Fail-safe. if not receiver or not receiver:IsValid() then return end -- Use the created entitie's unique ID to create a unique name. local wyrdflask_heatingGUID = wyrdflask_heating.GUID --Create a single instance of the aura to prevent stacking from multiples of the same flask. local wyrdHeatingAura = "wyrdHeatingAuraID" -- If the receiver does not already have our heating aura on from this particular -- wyrdflask_heating, start the heating aura task, and store it in a variable on the receiver. if not receiver[wyrdHeatingAura] then -- TASK APPLIES HEATING EFFECT receiver[wyrdHeatingAura] = receiver:DoTaskInTime(heatingTick, function(receiver) turnOnHeating(receiver) end) end -- Ending the Aura after some time -- Create a unique variable-name to store the end-aura task on the receiver. local endwyrdHeatingAura = "wyrdHeatingEntireAura" -- If the receiver already has an end-aura task, then we need to cancel it, -- so we can restart it with a refreshed end-time. if receiver[endwyrdHeatingAura] then receiver[endwyrdHeatingAura]:Cancel() receiver[endwyrdHeatingAura] = nil end -- Use DoTaskInTime to schedule calling the function that ends the aura after a while without renewals. -- We store the task on the receiver using our unique variable-name. receiver[endwyrdHeatingAura] = receiver:DoTaskInTime(heatingAuraDuration, onEndAura, wyrdflask_heatingGUID, wyrdHeatingAura) end local applyAuraInRange = function(inst) -- Store the position of the aura-emitting entity in x, y, z variables. local x,y,z = inst.Transform:GetWorldPosition() -- Any player that is not a ghost or in limbo. -- AURA RADIUS = 1 - MAKES IT SO WYRD IS THE ONLY ONE WITH THE HEATING BUFF local ents = TheSim:FindEntities(x, y, z, 1, {"player"}, {"playerghost", "INLIMBO"}, nil) -- Apply the aura to any of the found entities within the radius, including the aura-emitting -- entity itself if it fits the tag-list parameters! for i, v in ipairs(ents) do onApplyAura(v, inst) end end ------------------- -- END OF AURA CODE ------------------- -- Write a local function that creats, customizes, and returns an instance of the prefab. local function fn(Sim) local inst = CreateEntity() inst.entity:AddTransform() inst.entity:AddAnimState() inst.entity:AddSoundEmitter() inst.entity:AddNetwork() MakeInventoryPhysics(inst) inst.AnimState:SetBank("wyrdflask_heating") inst.AnimState:SetBuild("wyrdflask_heating") inst.AnimState:PlayAnimation("idle") MakeInventoryFloatable(inst, "small", 0.2) inst.entity:SetPristine() if not TheWorld.ismastersim then return inst end --inst:AddTag("undroppable") inst:AddComponent("lootdropper") inst:AddComponent("inspectable") inst:AddComponent("inventoryitem") inst.components.inventoryitem:SetOnPutInInventoryFn(OnPutInInventory) inst.components.inventoryitem.keepondeath = true inst.components.inventoryitem:EnableMoisture(false) inst.components.inventoryitem.atlasname = "images/inventoryimages/wyrdflask_heating.xml" inst:AddComponent("fueled") inst.components.fueled:InitializeFuelLevel(heatingAuraDuration) inst.components.fueled:StartConsuming() inst.components.fueled:SetDepletedFn(OnFinished) MakeHauntableLaunch(inst) inst:DoTaskInTime(0, applyAuraInRange) -- APPLY THE AURA INSTANTLY return inst end -- Finally, return a new prefab with the construction function and assets. return Prefab( "wyrdflask_heating", fn, assets) client_log.txt wyrdflask_heating.lua wyrdflask_cooling.lua
  2. say i'm using this code to prevent my self from getting attacked by charlie due giving my self faint light also to keep the peeps whom super close to me safe so i was thinking is it possible to make him not only making light but making him self warm like a camp fire ? with a really short radius just like the one above like to keep others warm when their close to him is such thing possible x_x; ? for example making him like a living thermal stone hope you understand what i mean Dx the code above is for light i'm looking for one that produce head like a thermal stone and make anyone around the character feel warm *i plan to make a fire character so i need that* the heat is only to make them warm not burning o-o
  3. ^ title. Can't find it! In temperature.lua, the overheating threshold is "self.overheattemp" and is declared as "TUNING.OVERHEAT_TEMP" (which in tuning is declared as 70). But neither in tuning nor in temperature.lua can I find any variable that defines the freezing temperature threshold. Anyone has any ideas? Oh, and, I also couldn't find where the overheating and freezing warning temperatures are declared. For freezing it's 5 and for overheating it's 65 or something along the lines, but I can't find it anywhere
  4. Let's you tune 26 different aspects of player temperatures! Link to Steam DS/RoG/SW version Link to Steam DST version Settings Information - Minimum and maximum player temperatures. - Freezing- and overheating-temperatures - Overall positive temperature multiplier (affects you, if your overall temperature change is positive) - Overall negative temperature multiplier (affects you, if your overall temperature change is negative) - Equipment effects (exo and endo separately!) - Inventory item effects (exo and endo separately!) - Backpack item effects (exo and endo separately!) - World entity effects e.g. firepits (exo and endo separately!) - Wetness heating penalty percentage - Wetness cooling penalty percentage - Summer insulation effect percentage - Winter insulation effect percentage - Overheating health penalty - Freezing health penalty - Shelter cooling effect (tree shade and caves) - Shelter target temperature - Belly temperature effect NOTE: The 'Maximum Player Temperature' setting defaults to 90, because both RoG and SW use that temperature, while DS only uses a heat cap of 40. Please do report any bugs Usage notes a. Does NOT require you to make a new world before taking effect. b. This mod only works if the host of the server has enabled it. c. When using this mod as a host, this will apply to all the players on the server. d. When using a dedicated server, enabling/disabling this mod requires a respawn of all players or a server restart.
×
×
  • Create New...