Search the Community
Showing results for tags 'stack'.
Found 3 results
-
As the title says, I want to give a specific item a new maximum stack size in a mod. While this is joyfully (or maybe ridiculously) simple to do in Don't Starve: modmain.lua: local function changestackA(inst) inst.components.stackable.maxsize = 12 end local function changestackB(inst) inst.components.stackable.maxsize = 53 end AddPrefabPostInit("poop",changestackA) --manure now stacks up to 12 AddPrefabPostInit("cutgrass",changestackB) --cut grass now stacks up to 53 ...I can't manage to do the same in Don't Starve Together. Whatever I thought to attempt only caused an error related to stackable_replica.lua or just had no discernible effect. I tried to look into it and it appears that in DST item stack sizes may be based on predefined amounts in a local table in stackable_replica.lua. I'm quite stumped, as I'm not sure how to go about dealing with that, or if netcode is related to my problems... Does anyone know how to accomplish this? Thanks for any help.
-
Bug Submission Please choose a category [Gameplay] Platform Steam Version Number Nov27 Issue title You can research ANYWHERE Steps to reproduce Step one, highlight item not researched and x'd out in red (signifying you are not near a Science Machine or Alchemy Engine.) Step two, click it. CLICK IT. And bamf, researched. Describe your issue So I accidently clicked an item I hadn't researched yet - in this case, the Blowdart gun - and was able to do so without being near any machines. It still took the research points, but seems like it shouldn't be happening that way. It was X'd out at the time, not green, stating you needed a Science Machine, etc. Very weird.
-
Okay, so I crafted a backpack, switching my log suit to my main inventory, and then went about harvest resources as usual. Now I've started to carry my resources in my backpack because I mainly use them for crafting, so that frees up my main inventory for tools and food. However I've encountered an odd annoyance. Okay, so I've got less than a full stack of a resource in my main inventory, I move it into the backpack, and then I collect some more of that very same resource... only it creates a new stack of sai resource in my main inventory instead of adding it to the existing stack in the backpack. It only seems to stack directly to the backpack if you main inventory is full. It goes without saying that I think items should automatically stack with any existing stack that is not at its maximum, whether it's in your main inventory or inside the backpack. Thoughts?