Stack Size Controller

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

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

5/5, 50 likes
  1. (01:19:14) | Failed to call hook 'OnServerInitialized' on plugin 'StackSizeController v1.9.4' (InvalidCastException: Cannot cast from source type to destination type.)
     
  2. What Oxide and Rust version are you running?
     
    Last edited by a moderator: Mar 8, 2017
  3. Any debug messages? Does this happen to you even on a clean config/plugin?
    [DOUBLEPOST=1489151993][/DOUBLEPOST]Ah alright. I most likely found your issue, you have an item set to stack higher than 2,147,483,647. Any higher than this and the plugin will throw that error. This is related to Rust's code.
     
    Last edited by a moderator: Mar 10, 2017
  4. No, it also seems to have an issue saving some certain items (stone/wood/sulfur).

    Code:
    {
      "12 Gauge Buckshot": 64,
      "12 Gauge Slug": 32,
      "4x Zoom Scope": 5,
      "5.56 Rifle Ammo": 300,
      "52 Gauge Buckshot": 550,
      "52 Gauge Slug": 550,
      "Acoustic Guitar": 5,
      "Animal Fat": 5000,
      "Anti-Radiation Pills": 50,
      "Apple": 500,
      "Auto Turret": 50,
      "Bandage": 30,
      "Bandana Mask": 5,
      "Barbed Wooden Barricade": 500,
      "Baseball Cap": 5,
      "Battery - Small": 5,
      "Beancan Grenade": 50,
      "Bear Meat": 300,
      "Bear Meat Cooked": 500,
      "Bed": 5,
      "Beenie Hat": 5,
      "Black Raspberries": 30,
      "Bleach": 30,
      "Blood": 5000,
      "Blueberries": 30,
      "Blueprint": 5000,
      "Bone Fragments": 5000,
      "Boonie Hat": 5,
      "Boots": 5,
      "Bota Bag": 5,
      "Building Plan": 5,
      "Burlap Headwrap": 5,
      "Burlap Shirt": 5,
      "Burlap Shoes": 5,
      "Burlap Trousers": 5,
      "Burned Chicken": 30,
      "Burned Human Meat": 30,
      "Burned Pork": 30,
      "Burned Wolf Meat": 30,
      "Burnt Bear Meat": 30,
      "Cactus Flesh": 30,
      "Camera": 5,
      "Camp Fire": 5,
      "Can of Beans": 30,
      "Can of Tuna": 30,
      "Candle Hat": 5,
      "Candy Cane": 30,
      "CCTV Camera": 30,
      "Ceiling Light": 30,
      "Chair": 30,
      "Charcoal": 5000,
      "Chocolate Bar": 30,
      "Cloth": 5000,
      "Coal :(": 5,
      "Code Lock": 5,
      "Concrete Barricade": 30,
      "Cooked Chicken.": 30,
      "Cooked Fish": 30,
      "Cooked Human Meat": 30,
      "Cooked Pork": 30,
      "Cooked Wolf Meat": 30,
      "Corn Clone": 5,
      "Corn Seed": 50,
      "Crude Oil": 500,
      "Door Closer": 5,
      "Door Key": 5,
      "Double Sign Post": 5,
      "Duct Tape": 30,
      "Empty Can Of Beans": 50,
      "Empty Propane Tank": 5,
      "Empty Tuna Can": 50,
      "Explosive 5.56 Rifle Ammo": 528,
      "Explosives": 500,
      "F1 Grenade": 5,
      "F5 Grenade": 5,
      "Flame Turret": 5,
      "Flare": 5,
      "Fridge": 5,
      "Furnace": 5,
      "Gears": 30,
      "Glue": 50,
      "Granola Bar": 50,
      "Gun Powder": 5000,
      "Hammer": 5,
      "Handmade Shell": 64,
      "Hazmat Boots": 5,
      "Hazmat Gloves": 5,
      "Hazmat Jacket": 5,
      "Hazmat Pants": 5,
      "Hazmat Suit": 5,
      "Hemp Clone": 5,
      "Hemp Seed": 50,
      "Hide Boots": 5,
      "Hide Halterneck": 5,
      "Hide Pants": 5,
      "Hide Skirt": 5,
      "Hide Vest": 5,
      "High External Stone Gate": 5,
      "High External Stone Wall": 50,
      "High External Wooden Gate": 5,
      "High External Wooden Wall": 50,
      "High Quality Metal": 500,
      "High Quality Metal Ore": 5000,
      "High Velocity Arrow": 64,
      "High Velocity Rocket": 3,
      "Holosight": 5,
      "Hoodie": 5,
      "Huge Wooden Sign": 5,
      "Human Skull": 5,
      "HV 5.56 Rifle Ammo": 528,
      "HV Pistol Ammo": 528,
      "Improvised Balaclava": 5,
      "Incendiary 5.56 Rifle Ammo": 528,
      "Incendiary Pistol Bullet": 528,
      "Incendiary Rocket": 3,
      "Jack O Lantern Angry": 5,
      "Jack O Lantern Happy": 5,
      "Jacket": 5,
      "Land Mine": 5,
      "Landscape Picture Frame": 5,
      "Lantern": 5,
      "Large Banner Hanging": 5,
      "Large Banner on pole": 5,
      "Large Furnace": 5,
      "Large Medkit": 5,
      "Large Planter Box": 5,
      "Large Present": 5,
      "Large Water Catcher": 5,
      "Large Wood Box": 5,
      "Large Wooden Sign": 5,
      "Leather": 5000,
      "Leather Gloves": 5,
      "Lock": 5,
      "Locker": 1,
      "Longsleeve T-Shirt": 5,
      "Low Grade Fuel": 500,
      "Medical Syringe": 2,
      "Medium Present": 5,
      "Metal Barricade": 5,
      "Metal Blade": 30,
      "Metal Fragments": 5000,
      "Metal horizontal embrasure": 30,
      "Metal Ore": 5000,
      "Metal Pipe": 30,
      "Metal Spring": 30,
      "Metal Vertical embrasure": 30,
      "Metal Window Bars": 50,
      "Miners Hat": 5,
      "Mining Quarry": 5,
      "Minnows": 50,
      "Mushroom": 50,
      "Note": 5,
      "One Sided Town Sign Post": 5,
      "Pants": 5,
      "Paper": 5000,
      "Paper Map": 5,
      "Pistol Bullet": 528,
      "Pookie Bear": 5,
      "Pork": 30,
      "Portrait Picture Frame": 5,
      "Pump Jack": 5,
      "Pumpkin Plant Clone": 5,
      "Pumpkin Seed": 50,
      "Raw Chicken Breast": 30,
      "Raw Fish": 30,
      "Raw Human Meat": 30,
      "Raw Wolf Meat": 30,
      "Reinforced Window Bars": 50,
      "Repair Bench": 5,
      "Research Paper": 5000,
      "Research Table": 5,
      "Rifle Body": 50,
      "Road Signs": 30,
      "Rocket": 3,
      "Rope": 50,
      "Rotten Apple": 5,
      "Rug": 5,
      "Rug Bear Skin": 5,
      "Salt Water": "2547483647",
      "Salvaged Shelves": 50,
      "Sandbag Barricade": 50,
      "Santa Hat": 5,
      "Satchel Charge": 50,
      "Semi Automatic Body": 50,
      "Sewing Kit": 30,
      "Sheet Metal": 30,
      "Shirt": 5,
      "Shorts": 5,
      "Single Sign Post": 5,
      "Sleeping Bag": 5,
      "Small Oil Refinery": 5,
      "Small Planter Box": 5,
      "Small Present": 50,
      "Small Stash": 5,
      "Small Stocking": 5,
      "Small Trout": 50,
      "Small Water Bottle": 5,
      "Small Water Catcher": 5,
      "Small Wooden Sign": 5,
      "SMG Body": 50,
      "Smoke Rocket WIP!!!!": 3,
      "Snow Jacket - Red": 5,
      "Spoiled Chicken": 30,
      "Spoiled Human Meat": 30,
      "Spoiled Wolf Meat": 30,
      "Sticks": 500,
      "Stone Barricade": 50,
      "Stones": 5000,
      "Sulfur": 5000,
      "Sulfur Ore": 5000,
      "SUPER Stocking": 5,
      "Supply Signal": 5,
      "Survey Charge": 50,
      "Survival Fish Trap": 5,
      "Table": 5,
      "Tall Picture Frame": 5,
      "Tank Top": 5,
      "Targeting Computer": 5,
      "Tarp": 30,
      "Tech Trash": 50,
      "Timed Explosive Charge": 50,
      "Tool Cupboard": 5,
      "T-Shirt": 5,
      "Tuna Can Lamp": 5,
      "Two Sided Hanging Sign": 5,
      "Two Sided Ornate Hanging Sign": 5,
      "Two Sided Town Sign Post": 5,
      "Water": "2547483647",
      "Water Barrel": 5,
      "Water Jug": 5,
      "Water Purifier": 5,
      "Weapon Flashlight": 5,
      "Weapon Lasersight": 5,
      "Wind Turbine": 5,
      "Wolf Headdress": 5,
      "Wolf Skull": 5,
      "Wood": 5000,
      "Wood Storage Box": 5,
      "Wooden Arrow": 64,
      "Wooden Barricade": 5,
      "Wooden Floor Spikes": 5,
      "Wooden Ladder": 5,
      "Wooden Sign": 5,
      "Wooden Window Bars": 50,
      "XL Picture Frame": 5,
      "XXL Picture Frame": 5
    }
     
  5. I'd recommend regenerating your config, you have multiple errors such as duplicate and misspelled items. I tried to remove a few, but I couldn't find all of them. You can use the Oxide API for Rust to help you.
     
  6. Odd, cause I haven't changed anything except numbers. Will do though, thanks
     
  7. update pls ?
     
  8. The couple errors I saw were stuff like "52 gage slug/buckshot" and "f5 grenade"
    Update for what?
     
  9. for the update
     
  10. What version are you using? The latest version (1.9.4) compiles for me on multiple servers.
     
  11. I'm using the latest one from here... I deleted the .js and reloaded it and so far no issues. Idk, very possible it was an error on my end. Thanks for the help.
     
  12. i have this plugin deleted, server restarted and stopped. plugin new uploaded, but it doesnt work. why ?
     
    Last edited by a moderator: Mar 12, 2017
  13. Any errors in your Log.Error file? (server/your_server_identity_here/Log.Error)
     
  14. the logfile say nothing about this plugin
     
  15. If you're not getting any errors, then you do not need to update this plugin.
     
  16. Rust did an update this morning and this plugin stopped working?
    [DOUBLEPOST=1489421966][/DOUBLEPOST]Here is my Oxide Log
     

    Attached Files:

  17. The plugin was loaded for you in that log, can you run the stack commands? Did you also check your config?
     
  18. What is the stack commands and where do i type them I'm new to this, and my config shows all the numbers I had before the update the config has not changed.
     
  19. Check the overview, the commands are posted there. Also note when you make changes to your config and after reuploading/saving the file, you have to reload the plugin for the changes to take place.