Stacksize

Moved

Total Downloads: 4,775 - First Release: Jan 24, 2016 - Last Update: Jul 27, 2017

5/5, 6 likes
  1. Noviets submitted a new resource:

    Stacksize - Simple stacksize config

    Read more about this resource...
     
  2. Thanks
    I likeit very much
     
  3. Thank you very much , it could also be used for resources ?
     
  4. been trying it on wood and woodplanks so far no luck
     
  5. Can't edit resource data but you can consumables
     
  6. Wood logs and woodplanks are already stacked.
     
  7. to put it past the default stack size i mean does not seem to work
     
  8. 255 is the maximum.
     
  9. how can i change dynamite stack?
    Code:
    {
      "C4": 255,
      "CookedSteak": 255,
      "Dynamite": 255,
      "FreshOwrong": 255,
      "RancidSteak": 255,
      "RawSteak": 255
    }
    Code:
                GlobalItemManager GIM = Singleton<GlobalItemManager>.Instance;
                (GIM.GetItem(4) as ConsumableItem)?.StackSize((int)Config["RawSteak"]);
                (GIM.GetItem(5) as ConsumableItem)?.StackSize((int)Config["CookedSteak"]);
                (GIM.GetItem(6) as ConsumableItem)?.StackSize((int)Config["RancidSteak"]);
                (GIM.GetItem(25) as ConsumableItem)?.StackSize((int)Config["FreshOwrong"]);
                (GIM.GetItem(155) as ConsumableItem)?.StackSize((int)Config["Dynamite"]);
                (GIM.GetItem(144) as ConsumableItem)?.StackSize((int)Config["C4"]);
            }
            protected override void LoadDefaultConfig()
            {
                if(Config["RawSteak"] == null) Config.Set("RawSteak", 255);
                if(Config["CookedSteak"] == null) Config.Set("CookedSteak", 255);
                if(Config["RancidSteak"] == null) Config.Set("RancidSteak", 255);
                if(Config["FreshOwrong"] == null) Config.Set("FreshOwrong", 255);
                if(Config["Dynamite"] == null) Config.Set("Dynamite", 255);
                if(Config["C4"] == null) Config.Set("Dynamite", 255);
                SaveConfig();
     
    Last edited by a moderator: Jan 25, 2016
  10. Only problem ive noticed so far is now because the owrongs are stacked only 1 rots every time out of the stack...takes a long time to rot a stack :p
     
  11. The mechanics of how things cook and rot (go moldy or rancid) are unchanged, this just changed the stack size.
    [DOUBLEPOST=1453808283][/DOUBLEPOST]
    List every item you want to stack and I'll add them. Will only take me a few seconds to add them all.
    [DOUBLEPOST=1453808345][/DOUBLEPOST]
    255 is the maximum display stack, but if you make a stack of 510 for example, you can split that into two 255 stacks.

    It works, but the actuall display numbers don't go above 255.
     
  12. Hi Noviets, you could add a stack of these items ? Thank You
     
    Last edited by a moderator: Jan 26, 2016
  13. Noviets updated Stacksize with a new update entry:

    1.0.1

     
  14. love it man keep up the good work
     
  15. Arrows need to be added
     
  16. also the quad nipple wheels dont stack :)
     
  17. They're not on the list :p
    You can add them yourself with:
    Code:
    (GIM.GetItem(184) as VehicleAttachmentWheelItem)?.StackSize((int)Config["Wheels"]);
    I'll bring out another patch soon, I'm going to work on the RandomChests plugin for now.
     
  18. ok thanks i done that and all is now good ty for the work
     
  19. How to add Arrows please? Thanks.
     
  20. How to make ruby stack-able? I added ruby under C4 to make it 255 stackable but didnt work. Something I'm doing wrong?
    Code:
    (GIM.GetItem(12) as ConstructionItem)?.StackSize((int)Config["C4"]);