Hi,
For begining sorry for my bad english.
I have a problem with this plugin.
I Do everything like in description but is not working for me.
I load in plugin to the server, then i see New file in Oxide/plugins and Oxide/Data(.json - file). I edit Plugin How i want Before so i do something Like this>
DefaultStack = 100,
StackHealthItems = true,
CategoryDefaultStack = new Dictionary<string, int>()
{
{ "Ammunition", 250 },
{ "Attire", 5 },
{ "Common", 100 },
{ "Component", 50 },
{ "Construction", 50 },
{ "Food", 25 },
{ "Items", 25 },
{ "Medical", 15 },
{ "Misc", 100 },
{ "Resources", 15000 },
{ "Tools", 0 },
{ "Traps", 0 },
{ "Weapon", 0 },
},
},
}, true);
Next was Json file. there was nothing in so i just copy vanilla stack size,change everything like i want (example. wood/stone/metal etc 15000) and save,reload server,reload plugin in Rcon.
{
"itemlist": {
"8x Zoom Scope": 5,
"Assault Rifle": 5,
"Handmade Shell": 1000,
"Pistol Bullet": 1000,
"Incendiary Pistol Bullet": 1000,
"HV Pistol Ammo": 1000,
"5.56 Rifle Ammo": 1000,
"Explosive 5.56 Rifle Ammo": 1000,
"Incendiary 5.56 Rifle Ammo": 1000,
"HV 5.56 Rifle Ammo": 1000,
"Rocket": 100,
"Incendiary Rocket": 100,
"High Velocity Rocket": 100,
"Smoke Rocket WIP!!!!": 100,
"12 Gauge Buckshot": 1000,
"12 Gauge Incendiary Shell": 1000,
"12 Gauge Slug": 1000,
"AND Switch": 15,
"Anti-Radiation Pills": 1000,
"Apple": 1000,
"Rotten Apple": 1000,
"Bone Arrow": 100,
"Fire Arrow": 100,
"High Velocity Arrow": 100,
"Wooden Arrow": 100,
"Audio Alarm": 15,
"Auto Turret": 500,
"Salvaged Axe": 5,
"Bandage": 50,
"A Barrel Costume": 5,
"Concrete Barricade": 20,
"Metal Barricade": 20,
"Sandbag Barricade": 20,
"Stone Barricade": 20,
"Wooden Barricade": 20,
"Barbed Wooden Barricade": 20,
"Battery - Small": 20,
"Barbeque": 10,
"Snap Trap": 50,
"Bed": 10,
"Binoculars": 5,
"Black Raspberries": 1000,
"Bleach": 50,
"Blood": 50,
"Blueberries": 1000,
"Blueprint": 5,
"Bolt Action Rifle": 5,
"Bone Club": 5,
"Bone Fragments": 2000,
"Bota Bag": 10,
"Hunting Bow": 5,
"Large Wood Box": 100,
"Wood Storage Box": 100,
"Water Bucket": 5,
"Building Plan": 20,
"Burlap Shirt": 5,
"Burlap Shoes": 5,
"Butcher Knife": 5,
"Cable Tunnel": 15,
"Cactus Flesh": 1000,
"Birthday Cake": 5,
"Camera": 15,
"Camp Fire": 100,
"Can of Beans": 100,
"Empty Can Of Beans": 200,
"Can of Tuna": 100,
"Empty Tuna Can": 100,
"Candy Cane Club": 5,
"Candy Cane": 100,
"Cursed Cauldron": 5,
"CCTV Camera": 2000,
"Ceiling Light": 100,
"Chainsaw": 5,
"Chair": 10,
"Charcoal": 600000,
"Burnt Chicken": 100,
"Cooked Chicken": 1000,
"Raw Chicken Breast": 1000,
"Spoiled Chicken": 100,
"Chinese Lantern": 10,
"Chocolate Bar": 100,
"Christmas Door Wreath": 100,
"Cloth": 2000,
"Coal :(": 200000,
"Coffin": 5,
"Compound Bow": 5,
"Corn": 1000,
"Corn Clone": 100,
"Corn Seed": 100,
"Counter": 15,
"Crossbow": 5,
"Crude Oil": 200000,
"Tool Cupboard": 20,
"RF Transmitter": 15,
"Diving Fins": 15,
"Diving Mask": 15,
"Diving Tank": 15,
"Wetsuit": 15,
"Sheet Metal Double Door": 20,
"Armored Double Door": 20,
"Wood Double Door": 20,
"Sheet Metal Door": 20,
"Armored Door": 20,
"Wooden Door": 20,
"Door Key": 5,
"Door Closer": 20,
"Door Controller": 15,
"Festive Doorway Garland": 100,
"Dragon Door Knocker": 100,
"Drop Box": 100,
"Duct Tape": 500,
"Flasher Light": 15,
"Siren Light": 15,
"Blocker": 15,
"Electrical Branch": 15,
"Root Combiner": 15,
"Memory Cell": 15,
"RAND Switch": 15,
"Satchel Charge": 50,
"Timed Explosive Charge": 50,
"Explosives": 2000,
"m-facialhair01": 5,
"Animal Fat": 200000,
"f-armpit01": 5,
"f-eyebrow01": 5,
"f-pubic01": 5,
"f-hairstyle-1": 5,
"f-hairstyle-3": 5,
"f-hairstyle-5": 5,
"Stone Fireplace": 10,
"Cooked Fish": 1000,
"Raw Fish": 1000,
"Handmade Fishing Rod": 5,
"Flame Thrower": 5,
"Flame Turret": 50,
"Flare": 5,
"Flashlight": 5,
"Weapon flashlight": 5,
"Floor grill": 20,
"Ladder Hatch": 20,
"Fogger-3000": 5,
"Fridge": 100,
"Frog Boots": 5,
"Low Grade Fuel": 600000,
"Furnace": 100,
"Large Furnace": 100,
"Electric Fuse": 15,
"High External Stone Gate": 20,
"High External Wooden Gate": 20,
"Gears": 500,
"Geiger Counter": 15,
"Small Generator": 15,
"Wind Turbine": 10,
"Giant Candy Decor": 5,
"Giant Lollipop Decor": 5,
"Burlap Gloves": 5,
"Leather Gloves": 5,
"Roadsign Gloves": 5,
"Tactical Gloves": 5,
"Glowing Eyes": 5,
"Glue": 500,
"Granola Bar": 100,
"Gravestone": 5,
"Wooden Cross": 5,
"Graveyard Fence": 5,
"Beancan Grenade": 50,
"F1 Grenade": 50,
"Acoustic Guitar": 5,
"Gun Powder": 600000,
"Hab Repair": 5,
"m-hairstyle-1": 5,
"f-hairstyle-2": 5,
"Halloween Loot Bag": 5,
"WIP": 5,
"Scarecrow Wrap": 5,
"Hide Halterneck": 5,
"Hammer": 5,
"Salvaged Hammer": 5,
"Beenie Hat": 5,
"Boonie Hat": 5,
"Bucket Helmet": 5,
"Burlap Headwrap": 5,
"Candle Hat": 5,
"Baseball Cap": 5,
"Clatter Helmet": 5,
"Coffee Can Helmet": 5,
"Bone Helmet": 5,
"Dragon Mask": 5,
"Heavy Plate Helmet": 5,
"Miners Hat": 5,
"Party Hat": 5,
"Reindeer Antlers": 5,
"Riot Helmet": 5,
"Wolf Headdress": 5,
"Wood Armor Helmet": 5,
"Hatchet": 5,
"Hazmat Suit": 50,
"HBHF Sensor": 15,
"Hemp Clone": 100,
"Hemp Seed": 100,
"Hide Boots": 5,
"Hide Skirt": 5,
"Hide Vest": 5,
"Holosight": 50,
"Hoodie": 5,
"High Quality Metal Ore": 600000,
"Burnt Human Meat": 100,
"Cooked Human Meat": 100,
"Raw Human Meat": 100,
"Spoiled Human Meat": 100,
"Salvaged Icepick": 5,
"Bone Armor": 5,
"Heavy Plate Jacket": 5,
"Snow Jacket": 5,
"Jacket": 5,
"Jackhammer": 5,
"Jack O Lantern Angry": 100,
"Jack O Lantern Happy": 100,
"Blue Keycard": 50,
"Green Keycard": 50,
"Red Keycard": 50,
"Bone Knife": 5,
"L96 Rifle": 5,
"Wooden Ladder": 20,
"Land Mine": 50,
"Lantern": 100,
"Large Rechargable Battery": 15,
"Large Candle Set": 5,
"Large Medkit": 50,
"Laser Detector": 15,
"Weapon Lasersight": 50,
"Leather": 20000,
"Code Lock": 20,
"Key Lock": 20,
"Locker": 100,
"Longsword": 5,
"LR-300 Assault Rifle": 5,
"M249": 5,
"M39 Rifle": 5,
"M92 Pistol": 5,
"Mace": 5,
"Machete": 5,
"Mail Box": 100,
"m-facialhair02": 5,
"m-facialhair03": 5,
"m-facialhair04": 5,
"m-hairstyle-2": 5,
"m-hairstyle-4": 5,
"m-armpit01": 5,
"m-eyebrow01": 5,
"m-pubic01": 5,
"m-hairstyle-3": 5,
"m-hairstyle-5": 5,
"Paper Map": 10,
"Improvised Balaclava": 5,
"Bandana Mask": 5,
"Metal Facemask": 5,
"Burnt Bear Meat": 1000,
"Cooked Bear Meat": 1000,
"Raw Bear Meat": 1000,
"Burnt Deer Meat": 1000,
"Cooked Deer Meat": 1000,
"Raw Deer Meat": 1000,
"Burnt Horse Meat": 1000,
"Cooked Horse Meat": 1000,
"Raw Horse Meat": 1000,
"Burnt Pork": 1000,
"Cooked Pork": 1000,
"Raw Pork": 1000,
"Burnt Wolf Meat": 1000,
"Cooked Wolf Meat": 1000,
"Raw Wolf Meat": 1000,
"Spoiled Wolf Meat": 1000,
"Metal Fragments": 600000,
"Metal Ore": 600000,
"Metal Chest Plate": 5,
"High Quality Metal": 600000,
"Metal Blade": 500,
"Metal Pipe": 500,
"MC repair": 15,
"Pump Jack": 20,
"Mining Quarry": 20,
"Minnows": 1000,
"MP5A4": 5,
"Mushroom": 1000,
"Muzzle Boost": 5,
"Muzzle Brake": 5,
"Nailgun": 5,
"Nailgun Nails": 1000,
"Note": 5,
"OR Switch": 15,
"Burlap Trousers": 5,
"Pants": 5,
"Heavy Plate Pants": 5,
"Hide Pants": 5,
"Road Sign Kilt": 5,
"Shorts": 5,
"Paper": 2000,
"Pickaxe": 5,
"Pickles": 100,
"Eoka Pistol": 5,
"Revolver": 5,
"Semi-Automatic Pistol": 5,
"Pitchfork": 5,
"Large Planter Box": 100,
"Small Planter Box": 100,
"Hide Poncho": 5,
"Pookie Bear": 100,
"Large Present": 5,
"Medium Present": 5,
"Small Present": 5,
"Pressure Pad": 15,
"Empty Propane Tank": 50,
"Pumpkin": 1000,
"Pumpkin Plant Clone": 100,
"Pumpkin Seed": 100,
"Python Revolver": 5,
"Reactive Target": 100,
"Repair Bench": 10,
"Research Table": 10,
"Research Paper": 200,
"RF Broadcaster": 15,
"RF Pager": 15,
"RF Receiver": 15,
"Rifle Body": 5,
"Road Sign Jacket": 5,
"Road Signs": 5,
"Rock": 5,
"Rocket Launcher": 5,
"Rope": 5000,
"Rug Bear Skin": 100,
"Rug": 100,
"Salt Water": 2000000,
"Salvaged Cleaver": 5,
"Salvaged Sword": 5,
"SAM Ammo": 1000,
"SAM Site": 5,
"Santa Hat": 5,
"Scarecrow": 100,
"Scientist Suit": 10,
"4x Zoom Scope": 5,
"Scrap": 600000,
"Search Light": 100,
"Semi-Automatic Rifle": 5,
"Semi Automatic Body": 5,
"Sewing Kit": 50,
"Sheet Metal": 500,
"Salvaged Shelves": 100,
"Shirt": 5,
"Tank Top": 5,
"Boots": 5,
"Double Barrel Shotgun": 5,
"Pump Shotgun": 5,
"Waterpipe Shotgun": 5,
"Shotgun Trap": 5,
"Metal horizontal embrasure": 20,
"Metal Vertical embrasure": 20,
"Wood Shutters": 20,
"Sickle": 5,
"Large Banner Hanging": 10,
"Two Sided Hanging Sign": 10,
"Two Sided Ornate Hanging Sign": 10,
"Landscape Picture Frame": 10,
"Portrait Picture Frame": 10,
"Tall Picture Frame": 10,
"XL Picture Frame": 10,
"XXL Picture Frame": 10,
"Large Banner on pole": 10,
"Double Sign Post": 10,
"Single Sign Post": 10,
"One Sided Town Sign Post": 10,
"Two Sided Town Sign Post": 10,
"Huge Wooden Sign": 10,
"Large Wooden Sign": 10,
"Wooden Sign": 10,
"Small Wooden Sign": 10,
"Silencer": 5,
"Simple Light": 5,
"Simple Handmade Sight": 5,
"Skull Fire Pit": 100,
"Human Skull": 200,
"Wolf Skull": 200,
"Sleeping Bag": 100,
"Small Rechargable Battery": 15,
"Small Oil Refinery": 10,
"Small Stash": 10,
"Small Candle Set": 5,
"Small Trout": 100,
"Small Water Bottle": 10,
"Custom SMG": 5,
"SMG Body": 5,
"Smoke Grenade": 50,
"Snowball": 5,
"Snow Machine": 5,
"Snowman": 10,
"Large Solar Panel": 15,
"Spas-12 Shotgun": 5,
"Stone Spear": 5,
"Wooden Spear": 5,
"Spider Webs": 5,
"Wooden Floor Spikes": 500,
"Spinning wheel": 100,
"Splitter": 15,
"Spooky Speaker": 15,
"Metal Spring": 500,
"Sticks": 500,
"SUPER Stocking": 100,
"Small Stocking": 100,
"Stone Pickaxe": 5,
"Stone Hatchet": 5,
"Stones": 600000,
"Strobe Light": 50,
"Sulfur": 600000,
"Sulfur Ore": 600000,
"Supply Signal": 100,
"Survey Charge": 50,
"Survival Fish Trap": 100,
"Switch": 15,
"Medical Syringe": 50,
"Table": 100,
"Targeting Computer": 2000,
"Tarp": 50,
"Tech Trash": 1000,
"Thompson": 5,
"Timer": 15,
"Torch": 5,
"Decorative Baubels": 5,
"Decorative Plastic Candy Canes": 5,
"Decorative Gingerbread Men": 5,
"Tree Lights": 5,
"Decorative Pinecones": 5,
"Star Tree Topper": 5,
"Decorative Tinsel": 5,
"T-Shirt": 5,
"Longsleeve T-Shirt": 5,
"Tuna Can Lamp": 100,
"Vending Machine": 100,
"High External Stone Wall": 20,
"High External Wooden Wall": 20,
"Prison Cell Gate": 20,
"Prison Cell Wall": 20,
"Chainlink Fence Gate": 20,
"Chainlink Fence": 20,
"Garage Door": 20,
"Netting": 20,
"Shop Front": 20,
"Metal Shop Front": 20,
"Metal Window Bars": 20,
"Reinforced Window Bars": 20,
"Wooden Window Bars": 20,
"Reinforced Glass Window": 20,
"Watch Tower": 20,
"Water": 2000000,
"Large Water Catcher": 20,
"Small Water Catcher": 20,
"Water Barrel": 100,
"Water Jug": 5,
"Water Purifier": 100,
"Festive Window Garland": 100,
"Wire Tool": 15,
"Wood": 600000,
"Wood Chestplate": 5,
"Wood Armor Pants": 5,
"Work Bench Level 1": 100,
"Work Bench Level 2": 100,
"Work Bench Level 3": 100,
"Christmas Lights": 100,
"Christmas Tree": 100,
"XOR Switch": 15
}
}?
But,is not working for me.
Did i need to give any premission to do that?
Or i just do something wrong?
In Rcon when i try reload plugin i have this error
Failed to call hook 'OnServerInitialized' on plugin 'StackSizeController v2.0.0' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.StackSizeController.UpdateItems () [0x0001a] in <4b3e9717624e4187bf78edac399ccd10>:0 at Oxide.Plugins.StackSizeController.OnServerInitialized () [0x0000c] in <4b3e9717624e4187bf78edac399ccd10>:0 at Oxide.Plugins.StackSizeController.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0037e] in <4b3e9717624e4187bf78edac399ccd10>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0
Thanks for any help.
Greetings