Stack Size Controller

Allows you to set the max stack size of every item.

Total Downloads: 39,390 - First Release: Feb 10, 2017 - Last Update: Oct 27, 2017

5/5, 50 likes
  1. i don't know what it's supposed to say
     
  2. Here's an example of what you might see when you type "oxide.plugins"
    Untitled.png
    GatherRewards is unloaded, FreshStart has a compiling error and the rest are loaded and active. After you restart your server, check your plugins list and make sure StackSizeController is loaded, you can load it with "oxide.load"

    Make sure you also have permission to do so ingame (either oxide permission or auth level).
     
  3. yes that i receive when typing, exactly that, so this means that it's loaded then right?
     
  4. Yes, correct. If you're still having the issue, attach your config and I'll take a look for you.
     
  5. well here you go, the files out of the config AND plugins folder
     

    Attached Files:

  6. I've compared your version with the stock version, and even though line 31 is different than the regular version, it still shouldn't affect it. I also did try both the config and plugin on my test server, and I don't seem to be having the issue. Are any other of your plugins having this issue? How are you restarting your server? After a restart, try reloading the plugin to see if that fixes the problem.
     
  7. You are missing a lot of items in your config try mine
     

    Attached Files:

  8. can you fix this pls when I change it back to 20 it puts it to 1 again. If its fixable


    [Stack Size Controller] WARNING: Item 'Metal horizontal embrasure' will not stack more than 1 in game. Changing stack size to 1..

    [Stack Size Controller] WARNING: Item 'Metal Vertical embrasure' will not stack more than 1 in game. Changing stack size to 1..

    [Stack Size Controller] WARNING: Item 'Metal Window Bars' will not stack more than 1 in game. Changing stack size to 1..

    [Stack Size Controller] WARNING: Item 'Reinforced Window Bars' will not stack more than 1 in game. Changing stack size to 1..

    [Stack Size Controller] WARNING: Item 'Wooden Window Bars' will not stack more than 1 in game. Changing stack size to 1..

    [Stack Size Controller] Updating configuration file with new values.
     
  9. Not a problem, the plugin is functioning properly. These items will not stack ingame at all even if you change the stacksize.
     
  10. not working since update - any fixes?
     
  11. Any errors in your logs? Working normally for me.
     
  12. I can't get the default config back, I uninstalled and re-installed the plugin but it still loads an existing config I had set up before...
    Can someone upload the latest default config for this plugin, please?

    // Fixed after restarting the server completely.

    Default config:

    Code:
    {
      "12 Gauge Buckshot": 64,
      "12 Gauge Slug": 32,
      "4x Zoom Scope": 1,
      "5.56 Rifle Ammo": 128,
      "Acoustic Guitar": 1,
      "Animal Fat": 1000,
      "Anti-Radiation Pills": 10,
      "Apple": 10,
      "Bandage": 3,
      "Bandana Mask": 1,
      "Barbed Wooden Barricade": 1,
      "Baseball Cap": 1,
      "Battery - Small": 1,
      "Beancan Grenade": 5,
      "Bear Meat": 20,
      "Bear Meat Cooked": 20,
      "Bed": 1,
      "Beenie Hat": 1,
      "Binoculars": 1,
      "Black Raspberries": 1,
      "Bleach": 20,
      "Blood": 1000,
      "Blueberries": 20,
      "Blueprint": 1000,
      "Bone Fragments": 1000,
      "Boonie Hat": 1,
      "Boots": 1,
      "Bota Bag": 1,
      "Building Plan": 1,
      "Burlap Headwrap": 1,
      "Burlap Shirt": 1,
      "Burlap Shoes": 1,
      "Burlap Trousers": 1,
      "Burned Chicken": 20,
      "Burned Deer Meat": 20,
      "Burned Human Meat": 20,
      "Burned Pork": 20,
      "Burned Wolf Meat": 20,
      "Burnt Bear Meat": 20,
      "Cactus Flesh": 10,
      "Camera": 1,
      "Camp Fire": 1,
      "Can of Beans": 10,
      "Can of Tuna": 10,
      "Candle Hat": 1,
      "Candy Cane": 1,
      "CCTV Camera": 1,
      "Chair": 1,
      "Charcoal": 1000,
      "Chocolate Bar": 10,
      "Cloth": 1000,
      "Coal :(": 1,
      "Code Lock": 1,
      "Concrete Barricade": 10,
      "Cooked Chicken.": 20,
      "Cooked Deer Meat": 20,
      "Cooked Fish": 20,
      "Cooked Human Meat": 20,
      "Cooked Pork": 20,
      "Cooked Wolf Meat": 20,
      "Corn Clone": 1,
      "Corn Seed": 50,
      "Crude Oil": 500,
      "Door Closer": 1,
      "Door Key": 1,
      "Double Sign Post": 1,
      "Duct Tape": 20,
      "Empty Can Of Beans": 10,
      "Empty Propane Tank": 5,
      "Empty Tuna Can": 10,
      "Explosive 5.56 Rifle Ammo": 128,
      "Explosives": 100,
      "F1 Grenade": 5,
      "Flare": 1,
      "Fridge": 1,
      "Furnace": 1,
      "Gears": 20,
      "Glue": 10,
      "Granola Bar": 10,
      "Gun Powder": 1000,
      "Hammer": 1,
      "Handmade Shell": 64,
      "Hazmat Suit": 1,
      "Hemp Clone": 1,
      "Hemp Seed": 50,
      "Hide Boots": 1,
      "Hide Halterneck": 1,
      "Hide Pants": 1,
      "Hide Skirt": 1,
      "Hide Vest": 1,
      "High External Stone Gate": 1,
      "High External Stone Wall": 10,
      "High External Wooden Gate": 1,
      "High External Wooden Wall": 10,
      "High Quality Metal": 100,
      "High Quality Metal Ore": 1000,
      "High Velocity Arrow": 64,
      "High Velocity Rocket": 3,
      "Holosight": 1,
      "Hoodie": 1,
      "Huge Wooden Sign": 1,
      "Human Skull": 1,
      "HV 5.56 Rifle Ammo": 128,
      "HV Pistol Ammo": 128,
      "Improvised Balaclava": 1,
      "Incendiary 5.56 Rifle Ammo": 128,
      "Incendiary Pistol Bullet": 128,
      "Incendiary Rocket": 3,
      "Jack O Lantern Angry": 1,
      "Jack O Lantern Happy": 1,
      "Jacket": 1,
      "Land Mine": 5,
      "Landscape Picture Frame": 1,
      "Large Banner Hanging": 1,
      "Large Banner on pole": 1,
      "Large Furnace": 1,
      "Large Medkit": 1,
      "Large Planter Box": 1,
      "Large Present": 1,
      "Large Water Catcher": 1,
      "Large Wood Box": 1,
      "Large Wooden Sign": 1,
      "Leather": 1000,
      "Leather Gloves": 1,
      "Lock": 1,
      "Locker": 1,
      "Longsleeve T-Shirt": 1,
      "Low Grade Fuel": 500,
      "Mail Box": 1,
      "Medical Syringe": 2,
      "Medium Present": 5,
      "Metal Barricade": 1,
      "Metal Blade": 20,
      "Metal Fragments": 1000,
      "Metal Ore": 1000,
      "Metal Pipe": 20,
      "Metal Spring": 20,
      "Miners Hat": 1,
      "Mining Quarry": 1,
      "Minnows": 10,
      "Mushroom": 10,
      "Note": 1,
      "One Sided Town Sign Post": 1,
      "Pants": 1,
      "Paper": 1000,
      "Paper Map": 1,
      "Pistol Bullet": 128,
      "Pookie Bear": 1,
      "Portrait Picture Frame": 1,
      "Pump Jack": 1,
      "Pumpkin Plant Clone": 1,
      "Pumpkin Seed": 50,
      "Raw Chicken Breast": 20,
      "Raw Deer Meat": 20,
      "Raw Fish": 20,
      "Raw Human Meat": 20,
      "Raw Pork": 20,
      "Raw Wolf Meat": 20,
      "Repair Bench": 1,
      "Research Paper": 1000,
      "Research Table": 1,
      "Rifle Body": 10,
      "Road Signs": 20,
      "Rocket": 3,
      "Rope": 50,
      "Rotten Apple": 1,
      "Rug": 1,
      "Rug Bear Skin": 1,
      "Salt Water": 2147483647,
      "Salvaged Shelves": 10,
      "Sandbag Barricade": 10,
      "Santa Hat": 1,
      "Satchel Charge": 10,
      "Scrap": 1000,
      "Search Light": 1,
      "Semi Automatic Body": 10,
      "Sewing Kit": 20,
      "Sheet Metal": 20,
      "Shirt": 1,
      "Shorts": 1,
      "Simple Handmade Sight": 1,
      "Single Sign Post": 1,
      "Sleeping Bag": 1,
      "Small Oil Refinery": 1,
      "Small Planter Box": 1,
      "Small Present": 10,
      "Small Stash": 1,
      "Small Stocking": 5,
      "Small Trout": 10,
      "Small Water Bottle": 1,
      "Small Water Catcher": 1,
      "Small Wooden Sign": 1,
      "SMG Body": 10,
      "Smoke Rocket WIP!!!!": 3,
      "Snow Jacket - Red": 1,
      "Spinning wheel": 1,
      "Spoiled Chicken": 20,
      "Spoiled Human Meat": 20,
      "Spoiled Wolf Meat": 20,
      "Sticks": 100,
      "Stone Barricade": 10,
      "Stones": 1000,
      "Sulfur": 1000,
      "Sulfur Ore": 1000,
      "SUPER Stocking": 1,
      "Supply Signal": 1,
      "Survey Charge": 10,
      "Survival Fish Trap": 1,
      "Table": 1,
      "Tall Picture Frame": 1,
      "Tank Top": 1,
      "Targeting Computer": 1,
      "Tarp": 20,
      "Tech Trash": 50,
      "Timed Explosive Charge": 10,
      "Tool Cupboard": 1,
      "T-Shirt": 1,
      "Two Sided Hanging Sign": 1,
      "Two Sided Ornate Hanging Sign": 1,
      "Two Sided Town Sign Post": 1,
      "Water": 2147483647,
      "Water Barrel": 1,
      "Water Jug": 1,
      "Water Purifier": 1,
      "Weapon Flashlight": 1,
      "Weapon Lasersight": 1,
      "Wind Turbine": 1,
      "Wolf Headdress": 1,
      "Wolf Skull": 1,
      "Wood": 1000,
      "Wood Storage Box": 1,
      "Wooden Arrow": 64,
      "Wooden Barricade": 1,
      "Wooden Floor Spikes": 1,
      "Wooden Ladder": 1,
      "Wooden Sign": 1,
      "XL Picture Frame": 1,
      "XXL Picture Frame": 1
    }
     
  13. Got this out of the blue this morning... tried unloading and loading the config and cs file but it persists.

    Code:
    Failed to call hook 'OnServerInitialized' on plugin 'StackSizeController v1.9.4' (InvalidCastException: Cannot cast from source type to destination type.)  at Oxide.Plugins.StackSizeController.OnServerInitialized () [0x00000] in :0
      at Oxide.Plugins.StackSizeController.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in :0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in :0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in :0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in :0 
     
  14. Double check your config for any misspelled values or improper numbers. Also make sure the max you're trying to stack is 2,147,483,647, any higher will throw an error.
     
  15. another couple of items that wont stack over one, if this keeps up we wont need the plugin, i do notice the useless things in the game like tarps and sticks, small batteries etc stack high but they have no use at all,
     
  16. When Facepunch gives an item durability, that item can no longer be stacked above one regardless of what you do. The game overlooks the variable, if it didn't, you would have an easy exploit to instantly repair items by stacking them together. The check for the plugin itself is simply there to prevent any confusion on why items with durability aren't stacking above one.
     
  17. Thanks, man. I must've jacked something up while adjust stacks the other day. I did a fresh install and its error-free now.
     
  18. please add in config:
    1. Drop Box
    2. Shotgun Trap
     
  19. Impossible to stack "turrets, drop boxes, ladders, cell bars and window bars When a update for ca thank you
     
  20. I've quoted my post above, and will restate that these items cannot be stacked because they have durability.