1. AnExiledGod submitted a new resource:

    Stack Size Controller - Allows you to set the max stack size of every item.

    Read more about this resource...
     
  2. "Semi-Automatic Pistol\n": 1,
    "HV Pistol Ammo\t": 64,

    as it should be?
     
  3. Yes, that's the items display name for some reason. All names should be displayed correctly as they were gathered directly from the game files. :)
     
  4. Thanks for the plugin! very handy and simple to implement.
     
  5. Your welcome! That was the main purpose of this plugin. Simplicity of use, and setup in such a way that it updates automatically. :)
     
  6. [Oxide] 7:47 PM [Warning] CallHook 'OnServerInitialized' on plugin 'Stack Size Controller' took: 1266ms
    what does it mean?
     
  7. It's going through each item in the game and setting the stack size to your defined stack size. It does this on start and whenever you reload the plugin. I set it up to only update the stack size of items that had the stack size changed, but it still takes about 1200ms.

    This warning is harmless and just lets you know that my plugin took a little longer than is normal. Your users, if any are on at the time, might experience a 1 second lag. But this lag is only caused when you reload the server. If it lags at all.

    This is a necessary evil I can't get around.
     
  8. i never have luck with these stack plugins i add them into my ftp i edit them to what i want and they never work idk what im doing wrong
     
  9. Great plugin!! Thanks!! You've been creating a lot of great stuff here lately. Thanks for all of it. Any chance you could take over that Voter Rewards plugin? Looks like it was left behind. I know you have a lot on your plate already, I'm just getting greedy. Thanks Bro! Happy Trails!
     
  10. everytime i change the amount and save it and restart my server it changes them back
     
  11. Paste your modified config here in code tags and I'll take a look at it.

    Thank you, I appreciate it. I just try to fill the gap and make the smaller plugins others don't want to hassle with. I'm starting a new job soon, and my own server is going to be stealing some of my time soon, however I will check it out and get to it eventually if it looks like something I want to mess with. I probably wont implement economy support because the economy plugins are kind of crappy right now I think. (Haven't checked on the state of them in a month)
     
  12. Code:
    {
      "12 Gauge Buckshot": 640000000000000,
      "12 Gauge Slug": 320000000000000,
      "5.56 Rifle Ammo\n": 640000000000000,
      "Acoustic Guitar": 10000000000000,
      "Animal Fat": 10000000000000000,
      "Anti-Radiation Pills": 100000000000000,
      "Apple": 100000000000000,
      "Assault Rifle": 10000000000000,
      "Bandage": 10000000000000,
      "Barbed Wooden Barricade": 10000000000000,
      "Battery - Small": 10000000000000,
      "Beancan Grenade": 10000000000000,
      "Bear Meat": 200000000000000,
      "Bed": 10000000000000,
      "Black Raspberries": 10000000000000,
      "Blood": 10000000000000000,
      "Blue Longsleeve T-Shirt": 1,
      "Blueberries": 200000000000000,
      "Bolt Action Rifle": 10000000000000,
      "Bone Fragments": 10000000000000000,
      "Bone Knife": 10000000000000,
      "Bota Bag": 10000000000000,
      "Bucket Helmet": 10000000000000,
      "Building Plan": 10000000000000,
      "Burlap Headwrap": 10000000000000,
      "Burlap Shirt": 10000000000000,
      "Burlap Shoes": 10000000000000,
      "Burlap Trousers": 10000000000000,
      "Burned Chicken": 200000000000000,
      "Burned Human Meat": 200000000000000,
      "Burned Wolf Meat": 20,
      "Camera": 10000000000000,
      "Camp Fire": 10000000000000,
      "Can of Beans": 10000000000000,
      "Can of Tuna": 10000000000000,
      "Candle Hat": 10000000000000,
      "Charcoal": 5000000000000000,
      "Chocolate Bar": 10000000000000,
      "Cloth": 10000000000000000,
      "Code Lock": 10000000000000,
      "Coffee Can Helmet": 10000000000000,
      "Concrete Barricade": 10000000000000,
      "Cooked Chicken": 200000000000000,
      "Cooked Human Meat": 200000000000000,
      "Cooked Wolf Meat": 200000000000000,
      "Corn": 10000000000000,
      "Corn Seed": 500000000000000,
      "Custom SMG": 10000000000000,
      "Door Key": 10000000000000,
      "Empty Can Of Beans": 10000000000000,
      "Empty Tuna Can": 10000000000000,
      "Eoka Pistol": 10000000000000,
      "Explosive 5.56 Rifle Ammo": 640000000000000,
      "Explosives": 1000000000000000,
      "F1 Grenade": 10000000000000,
      "Flare": 10000000000000,
      "Furnace": 10000000000000,
      "Granola Bar": 10000000000000,
      "Green T-Shirt": 10000000000000,
      "Gun Powder": 10000000000000000,
      "Hammer": 10000000000000,
      "Handmade Shell": 640000000000000,
      "Hatchet": 10000000000000,
      "Hazmat Boots": 10000000000000,
      "Hazmat Gloves": 10000000000000,
      "Hazmat Helmet": 10000000000000,
      "Hazmat Jacket": 10000000000000,
      "Hazmat Pants": 10000000000000,
      "Hide Boots": 10000000000000,
      "Hide Pants": 10000000000000,
      "Hide Poncho": 10000000000000,
      "Hide Vest": 10000000000000,
      "High Velocity Arrow": 480000000000000,
      "High Velocity Rocket": 30000000000000,
      "Huge Wooden Sign": 10000000000000,
      "Human Skull": 10000000000000,
      "Hunting Bow": 10000000000000,
      "HV 5.56 Rifle Ammo": 640000000000000,
      "HV Pistol Ammo\t": 640000000000000,
      "Incendiary 5.56 Rifle Ammo": 640000000000000,
      "Incendiary Pistol Bullet": 640000000000000,
      "Incendiary Rocket": 30000000000000,
      "Lantern": 10000000000000,
      "Large Medkit": 10000000000000,
      "Large Water Catcher": 10000000000000,
      "Large Wood Box": 10000000000000,
      "Large Wooden Sign": 10000000000000,
      "Leather Gloves": 10000000000000,
      "Lock": 10000000000000,
      "Low Grade Fuel": 5000000000000000,
      "Medical Syringe": 10000000000000,
      "Metal - Refined": 1000000000000000,
      "Metal Barricade": 10000000000000,
      "Metal Chest Plate": 10000000000000,
      "Metal Facemask": 10000000000000,
      "Metal Fragments": 10000000000000000,
      "Metal Ore": 10000000000000000,
      "Miners Hat": 10000000000000,
      "Mining Quarry": 10000000000000,
      "Mushroom": 100000000000000,
      "Note": 10000000000000,
      "Paper": 10000000000000000,
      "Paper Map": 10000000000000,
      "Pick Axe": 10000000000000,
      "Pistol Bullet": 640000000000000,
      "Pump Shotgun": 10000000000000,
      "Pumpkin": 10000000000000,
      "Pumpkin Seed": 500000000000000,
      "Raw Chicken Breast": 200000000000000,
      "Raw Human Meat": 200000000000000,
      "Raw Wolf Meat": 200000000000000,
      "Red Jacket": 10000000000000,
      "Repair Bench": 10000000000000,
      "Research Table": 10000000000000,
      "Revolver": 10000000000000,
      "Road Sign Jacket": 10000000000000,
      "Rock": 10000000000000,
      "Rocket": 30000000000000,
      "Rocket Launcher": 10000000000000,
      "Rotten Apple": 10000000000000,
      "Salt Water": 21474836470000000000000,
      "Salvaged Axe": 10000000000000,
      "Salvaged Hammer": 10000000000000,
      "Salvaged Icepick": 10000000000000,
      "Sandbag Barricade": 10000000000000,
      "Semi-Automatic Pistol\n": 10000000000000,
      "Sleeping Bag": 10000000000000,
      "Small Water Bottle": 10000000000000,
      "Small Water Catcher": 10000000000000,
      "Small Wooden Sign": 10000000000000,
      "Smoke Rocket WIP!!!!": 30000000000000,
      "Snap Trap": 10000000000000,
      "Snow Jacket - Black": 10000000000000,
      "Snow Jacket - Red": 10000000000000,
      "Snow Jacket - Wood Camo": 10000000000000,
      "Spoiled Chicken": 200000000000000,
      "Spoiled Human Meat": 200000000000000,
      "Spoiled Wolf Meat": 200000000000000,
      "Stone Barriade": 10000000000000,
      "Stone Hatchet": 10000000000000,
      "Stone Pick Axe": 10000000000000,
      "Stone Spear": 10000000000000,
      "Stones": 10000000000000000,
      "Sulfur": 10000000000000000,
      "Sulfur Ore": 10000000000000000,
      "Supply Signal": 10000000000000,
      "Survey Charge": 100000000000000,
      "Thompson": 10000000000000,
      "Timed Explosive Charge": 100000000000000,
      "Tool Cupboard": 10000000000000,
      "Torch": 10000000000000,
      "Urban Boots": 10000000000000,
      "Urban Pants": 10000000000000,
      "Vagabond Jacket": 10000000000000,
      "Water": 21474836470000000000000,
      "Waterpipe Shotgun": 10000000000000,
      "Wolf Headdress": 10000000000000,
      "Wolf Skull": 10000000000000,
      "Wood": 10000000000000000,
      "Wood Storage Box": 10000000000000,
      "Wooden Arrow": 320000000000000,
      "Wooden Barricade": 10000000000000,
      "Wooden Floor Spikes": 10000000000000,
      "Wooden Ladder": 10000000000000,
      "Wooden Sign": 10000000000000,
      "Wooden Spear": 10000000000000
    }
     
    Last edited by a moderator: Jun 29, 2015
  13. you can ;) just remove the filesystem loading which isn't needed there at all...changed your method and time warning is gone...
    Code:
    void OnServerInitialized()
    {
        var itemList = SingletonComponent<ItemManager>.Instance.itemList;    foreach (ItemDefinition item in itemList)
        {
            if (item.stackable != (int) Config[item.displayName.english])
            {
                item.stackable = (int) Config[item.displayName.english];
            }
        }
    }
     
  14. It is required, unless I'm missing something. I JUST checked, if I remove the OnServerInitalized code then when I reload the plugin (after changing stack sizes) the new stack sizes are not put into effect. Do you have a better implementation in mind? I already cut the time in half by checking if the item stackable doesn't match the configs stackable, rather than applying the stackable value to every single one.
     
  15. For me the changed method i posted above works fine. It uses the ItemManager instead of loading from FileSystem. You shouldn't remove it but change to my posted version ;)
     
  16. I love you AnExiledGod!!!!
     
  17. That's because those values are WAY too large. Like... Why? The max stack size you can choose is 2,147,483,647
     
  18. AnExiledGod updated Stack Size Controller with a new update entry:

    Updated Item Grabbing Method

     
  19. Code:
    {
      "12 Gauge Buckshot": 64,
      "12 Gauge Slug": 32,
      "5.56 Rifle Ammo\n": 64,
      "Acoustic Guitar": 1,
      "Animal Fat": 1000,
      "Anti-Radiation Pills": 10,
      "Apple": 10,
      "Assault Rifle": 1,
      "Bandage": 1,
      "Barbed Wooden Barricade": 1,
      "Battery - Small": 1,
      "Beancan Grenade": 1,
      "Bear Meat": 20,
      "Bed": 1,
      "Black Raspberries": 1,
      "Blood": 1000,
      "Blue Longsleeve T-Shirt": 1,
      "Blueberries": 20,
      "Bolt Action Rifle": 1,
      "Bone Fragments": 1000,
      "Bone Knife": 1,
      "Bota Bag": 1,
      "Bucket Helmet": 1,
      "Building Plan": 1,
      "Burlap Headwrap": 1,
      "Burlap Shirt": 1,
      "Burlap Shoes": 1,
      "Burlap Trousers": 1,
      "Burned Chicken": 20,
      "Burned Human Meat": 20,
      "Burned Wolf Meat": 20,
      "Camera": 1,
      "Camp Fire": 1,
      "Can of Beans": 1,
      "Can of Tuna": 1,
      "Candle Hat": 1,
      "Charcoal": 500,
      "Chocolate Bar": 1,
      "Cloth": 1000,
      "Code Lock": 1,
      "Coffee Can Helmet": 1,
      "Concrete Barricade": 1,
      "Cooked Chicken": 20,
      "Cooked Human Meat": 20,
      "Cooked Wolf Meat": 20,
      "Corn": 1,
      "Corn Seed": 50,
      "Custom SMG": 1,
      "Door Key": 1,
      "Empty Can Of Beans": 1,
      "Empty Tuna Can": 1,
      "Eoka Pistol": 1,
      "Explosive 5.56 Rifle Ammo": 64,
      "Explosives": 100,
      "F1 Grenade": 1,
      "Flare": 1,
      "Furnace": 1,
      "Granola Bar": 1,
      "Green T-Shirt": 1,
      "Gun Powder": 1000,
      "Hammer": 1,
      "Handmade Shell": 64,
      "Hatchet": 1,
      "Hazmat Boots": 1,
      "Hazmat Gloves": 1,
      "Hazmat Helmet": 1,
      "Hazmat Jacket": 1,
      "Hazmat Pants": 1,
      "Hide Boots": 1,
      "Hide Pants": 1,
      "Hide Poncho": 1,
      "Hide Vest": 1,
      "High Velocity Arrow": 48,
      "High Velocity Rocket": 3,
      "Huge Wooden Sign": 1,
      "Human Skull": 1,
      "Hunting Bow": 1,
      "HV 5.56 Rifle Ammo": 64,
      "HV Pistol Ammo\t": 64,
      "Incendiary 5.56 Rifle Ammo": 64,
      "Incendiary Pistol Bullet": 64,
      "Incendiary Rocket": 3,
      "Lantern": 1,
      "Large Medkit": 1,
      "Large Water Catcher": 1,
      "Large Wood Box": 1,
      "Large Wooden Sign": 1,
      "Leather Gloves": 1,
      "Lock": 1,
      "Low Grade Fuel": 500,
      "Medical Syringe": 1,
      "Metal - Refined": 100,
      "Metal Barricade": 1,
      "Metal Chest Plate": 1,
      "Metal Facemask": 1,
      "Metal Fragments": 1000,
      "Metal Ore": 1000,
      "Miners Hat": 1,
      "Mining Quarry": 1,
      "Mushroom": 10,
      "Note": 1,
      "Paper": 1000,
      "Paper Map": 1,
      "Pick Axe": 1,
      "Pistol Bullet": 64,
      "Pump Shotgun": 1,
      "Pumpkin": 1,
      "Pumpkin Seed": 50,
      "Raw Chicken Breast": 20,
      "Raw Human Meat": 20,
      "Raw Wolf Meat": 20,
      "Red Jacket": 1,
      "Repair Bench": 1,
      "Research Table": 1,
      "Revolver": 1,
      "Road Sign Jacket": 1,
      "Rock": 1,
      "Rocket": 3,
      "Rocket Launcher": 1,
      "Rotten Apple": 1,
      "Salt Water": 2147483647,
      "Salvaged Axe": 1,
      "Salvaged Hammer": 1,
      "Salvaged Icepick": 1,
      "Sandbag Barricade": 1,
      "Semi-Automatic Pistol\n": 1,
      "Sleeping Bag": 1,
      "Small Water Bottle": 1,
      "Small Water Catcher": 1,
      "Small Wooden Sign": 1,
      "Smoke Rocket WIP!!!!": 3,
      "Snap Trap": 1,
      "Snow Jacket - Black": 1,
      "Snow Jacket - Red": 1,
      "Snow Jacket - Wood Camo": 1,
      "Spoiled Chicken": 20,
      "Spoiled Human Meat": 20,
      "Spoiled Wolf Meat": 20,
      "Stone Barriade": 1,
      "Stone Hatchet": 1,
      "Stone Pick Axe": 1,
      "Stone Spear": 1,
      "Stones": 1000,
      "Sulfur": 1000,
      "Sulfur Ore": 1000,
      "Supply Signal": 1,
      "Survey Charge": 10,
      "Thompson": 1,
      "Timed Explosive Charge": 10,
      "Tool Cupboard": 1,
      "Torch": 1,
      "Urban Boots": 1,
      "Urban Pants": 1,
      "Vagabond Jacket": 1,
      "Water": 2147483647,
      "Waterpipe Shotgun": 1,
      "Wolf Headdress": 1,
      "Wolf Skull": 1,
      "Wood": 1000,
      "Wood Storage Box": 1,
      "Wooden Arrow": 32,
      "Wooden Barricade": 1,
      "Wooden Floor Spikes": 1,
      "Wooden Ladder": 1,
      "Wooden Sign": 1,
      "Wooden Spear": 1
    }