• Announcements

    • JoeW

      UPDATED - Studio Note & Rhymes with Play Streams Temporarily Canceled.   03/06/2020

      UPDATE (3/19/20): Just a quick note regarding the team at Klei Entertainment. As noted previously, everybody at Klei Entertainment is working from home due to the Covid-19 outbreak. Many of us have been working especially hard to help maintain operations as we all move out of the office and into our homes and with everything being done online, extra time must be spent in organizing conversations and trying to maintain communication. As some of you may know, we have a very open office and we are almost always in contact with each other as we go about our days. Some of us work across multiple teams and that work has become a bit more challenging for everybody.   That being said, at this time the transition has not caused any major disruption in our operations, but it would be overly optimistic to expect that we won't have any delays at all. We're going to have to be especially mindful about this in the coming weeks and make sure we don't take on too much work so we can keep things running smoothly.  We will let you know as we see how these changes affect our timelines.  Thanks UPDATE (3/10/20):
      The test yesterday went well. We got the whole office (mostly) to work from home without significant issue. As a result, Klei Staff that can work from home have been asked to do so until further notice.  This means that we will have to cancel the Rhymes with Play stream until we are all back in the office. This shouldn't affect anything else at least in the short term, but if things change I will update you all here.  Original Post: Hey everybody,  This Tuesday March 10th, 2020 the entire staff at Klei will be working remotely for 1 day in an effort to prepare the studio to work remotely for a little while if the need arises.  Klei is already set up pretty well to allow for working remotely, however we are going to have a one day "dry run" with the whole studio so that we can identify and avoid any issues or downtime that may arise should choose to implement a work from home policy due to COVID-19 outbreak concerns. Unfortunately this does mean that we will be canceling the “Rhymes with Play” Art stream this coming Tuesday, however unless the situation changes we expect everything at the studio to be back to normal Wednesday and we’ll continue our regular stream schedule Thursday March 12th. If the situation changes at all, we'll let you know. Thanks for your understanding.
       

Argonium

  • Content count

    22
  • Joined

  • Last visited

Community Reputation

4 Neutral

About Argonium

  • Rank
    Junior Member
  1. I usually use "continue" in loops to remove unwanted things, but its missing? Is there any "continue" statement in DS/DST?
  2. Recipe() function is deprecated in DST, use AddRecipe()
  3. I need to make a list with inventory items. I already tried using AddPrefabPostInitAny but it doesn't give me all the names of inv. items AddComponentPostInit doesn't work as well, GLOBAL.PREFABFILES too... I need a loop which checks if prefab has inv.item component? I think it's all about SpawnPrefab and GLOBAL.Prefab but not sure...
  4. Help with a lil' bit of code

    1)scripts/prefabs/preparedfood.lua scripts/prefabs/meats.lua 2) drinker.components.temperture:SetTempertureInBelly(10, 7.5) -- 10 temp in 7.5 seconds drinker.components.debuffable:AddDebuff("healthregenbuff","healthregenbuff") --copy paste jelly beans
  5. if player.prefab == "mario" then --or insert this to your mario masterfn function ( if you do - you can delete if statement ) player:AddComponent("sanityaura") player.components.sanityaura.aura = GLOBAL.TUNING.SANITYAURA_SMALL player.components.sanityaura.aurafn = function(player, observer) if observer.prefab == "luigi" then return true end return false end end -- Not sure if it works, never used aurafn
  6. Solution: AddPrefabPostInit("seeds", function(inst) if GLOBAL.TheWorld.ismastersim then inst.components.deployable.restrictedtag = nil inst.components.deployable.IsDeployable = function(self,deployer) return deployer:HasTag("plantkin") or deployer:HasTag("canplantseeds") end end end) AddPrefabPostInit("veggies", function(inst) if GLOBAL.TheWorld.ismastersim then inst.components.deployable.restrictedtag = nil inst.components.deployable.IsDeployable = function(self,deployer) return deployer:HasTag("plantkin") or deployer:HasTag("canplantseeds") end end end)
  7. Having many tags is the issue. I really want some other tags have an opportunity to plant seeds but it is only restricted by "plantkin"? Can I have 2 restricted tags without removing "plantkin" one? inst.components.deployable.restrictedtag = "plantkin"
  8. Planting Seeds Crashes Servers

    Try to disable mods like My Pet and etc