Stack Sizes [Unmaintained]
Discussion in 'Plugin Support' started by ColonelAngus, Feb 7, 2015.
-
-
-
new items and added items will not stack, default items in config will stack even with changed values, is there something that changed, or a required alternate plugin?
ive seen stacking work on other oxide modded servers, but cant get mine to work
[DOUBLEPOST=1431930250,1431816299][/DOUBLEPOST]
2ndEDIT: removed this plugin and used Item Config for stack sizing, and cook/smelt speed on my serverLast edited by a moderator: May 19, 2015 -
-
Could someone give me the item names for the following to work in my config.
- Wolf Meat Raw
- Wolf Meat Cooked
- All the Ammo types
-
Wulf Community Admin
-
You legend!
-
The thing that blows my mind is this.....on several servers I have seen this plugin(or at least I believe its this plugin) work without any issues. But it would seem no one knows or wants to post the fix. If this plugin works on your server 100% aside the new items please post your config/fix. it would help out a ton. And maybe wolf will not need to pull out all of his fur. LOLs
-
"{'name': 'bone_fragments', 'stackSize': 100000}," +
"{'name': 'charcoal', 'stackSize': 100000}," +
"{'name': 'cloth', 'stackSize': 100000}," +
"{'name': 'fat_animal', 'stackSize': 100000}," +
"{'name': 'gunpowder', 'stackSize': 100000}," +
"{'name': 'lowgradefuel', 'stackSize': 100000}," +
"{'name': 'metal_fragments', 'stackSize': 100000}," +
"{'name': 'metal_ore', 'stackSize': 100000}," +
"{'name': 'metal_refined', 'stackSize': 100000}," +
"{'name': 'paper', 'stackSize': 10000}," +
"{'name': 'stones', 'stackSize': 100000}," +
"{'name': 'sulfur', 'stackSize': 100000}," +
"{'name': 'sulfur_ore', 'stackSize': 100000}," +
"{'name': 'wood', 'stackSize': 100000}" +
THE ABOVE WORKS PERFECTLY
Is there a reason the ones below do not work?
"{'name': 'wolfmeat_raw', 'stackSize': 1000}" +
"{'name': 'wolfmeat_cooked', 'stackSize': 1000}" +
"{'name': 'ammo_pistol', 'stackSize': 1000}" +
"{'name': 'ammo_pistol_hv', 'stackSize': 1000}" +
"{'name': 'ammo_rifle', 'stackSize': 1000}" +
"{'name': 'ammo_rifle_hv', 'stackSize': 1000}" +
"{'name': 'ammo_shotgun', 'stackSize': 1000}" +
"{'name': 'ammo_homemade_shell', 'stackSize': 1000}" + -
Wulf Community Admin
-
I was successful in adding items to the stack but after doing it a few times, i get an error. [Oxide] 3:16 PM [Error] StackSizes.cs(136,40): error CS1012: Too many characters in character literal. Here are my additions to the original script. Adding to the config file seems to break the plug in for me. Thas why i went to the script to make any edits which worked just fine the first few additions.
Code:localConfig.items = JsonConvert.DeserializeObject<List<itemMeta>>( "[" + "{'name': 'bone_fragments', 'stackSize': 10000}," + "{'name': 'charcoal', 'stackSize': 10000}," + "{'name': 'cloth', 'stackSize': 10000}," + "{'name': 'fat_animal', 'stackSize': 10000}," + "{'name': 'gunpowder', 'stackSize': 10000}," + "{'name': 'lowgradefuel', 'stackSize': 10000}," + "{'name': 'metal_fragments', 'stackSize': 10000}," + "{'name': 'metal_ore', 'stackSize': 10000}," + "{'name': 'metal_refined', 'stackSize': 10000}," + "{'name': 'paper', 'stackSize': 10000}," + "{'name': 'stones', 'stackSize': 100000}," + "{'name': 'sulfur', 'stackSize': 10000}," + "{'name': 'sulfur_ore', 'stackSize': 100000}," + "{'name': 'wood', 'stackSize': 100000}," + "{'name': 'wolfmeat_cooked', 'stackSize': 100}," + "{'name': 'smallwaterbottle', 'stackSize': 25}," + "{'name': 'bandage', 'stackSize': 20}," + "{'name': 'largemedkit', 'stackSize': 10}," + "{'name': 'can_tuna', 'stackSize': 10}," + "{'name': 'can_beans', 'stackSize': 100}," + "{'name': 'pickaxe', 'stackSize': 5}," + "{'name': 'wolfmeat_raw', 'stackSize': 100}," + "{'name': 'campfire', 'stackSize': 10}," + "]" );
-
Wulf Community Admin
-
-
Wulf Community Admin
-
[DOUBLEPOST=1431983386][/DOUBLEPOST]plug is in stuck in loading and cant restart the server with players in so ill have to try this later. -
Wulf Community Admin
-
[DOUBLEPOST=1431983963][/DOUBLEPOST]I did find an " where it was looking for a ' so maybe that was my issue. If any one is so inclined, im uploading my changes for inspection. This is the original script with item edits/additions.Attached Files:
Last edited by a moderator: May 18, 2015 -
-
Wulf Community Admin
-
I have been able to stack everything except Medical items.(ie.bandage/largemedkit/syringe_medical)And also could not stack rocket ammo types and grenade types..any ideas?