1. Why doesnt bandages stack?. OP help?
     
  2. LOL
     
  3. Iknow right? ;)
     
  4. 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]
    EDIT: nevermind i fixed it on my server, it is the loading order, just have to reload it after a restart to fix it
    2ndEDIT: removed this plugin and used Item Config for stack sizing, and cook/smelt speed on my server
     
    Last edited by a moderator: May 19, 2015
  5. How do you reload ?
     
  6. 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
     
  7. Wulf

    Wulf Community Admin

  8. You legend!
     
  9. 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
     
  10. "{'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}" +
     
  11. Wulf

    Wulf Community Admin

    You should be editing the config, not the plugin itself.
     
  12. 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}," +
                    "]"
                );
     
  13. Wulf

    Wulf Community Admin

    Edit the config, not the plugin itself.
     
  14. I tried the config but as there is nothign for these items in the script, there si nothign to edit in the cfg. If I add somethign to the cfg, it breaks the plug in.
     
  15. Wulf

    Wulf Community Admin

    You'd need to add them and make sure to keep proper formatting. If it breaks, then you didn't format it properly.
     
  16. so, copy pasting and changing the item name and the stack value should work but it does not for me. i even paid particular attention to making sure everything was lined up but maybe in my attempt to copy/paste the line above was a complete and utter failure. ill reinstall and try what you say again but it seems to me as if there should be a item listed in the original script to begin with so that the cfg file has something to be edited. Trying again.
    [DOUBLEPOST=1431983386][/DOUBLEPOST]plug is in stuck in loading and cant restart the server with players in so ill have to try this later.
     
  17. Wulf

    Wulf Community Admin

    It's often the little things that are missed, such as an extra +, or a missing comma.
     
  18. hate to keep looking dumb here but would my assumption be correct for the item needing listed in the script so there is an editable value in the cfg or are we still on the same page of just adding it to the cfg file after its compiled?
    [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
  19. Wulf

    Wulf Community Admin

    Editing the config is the best option, as you can easily fallback to the old config. Just edit the config, add the items you want, then reload the plugin using "oxide.reload StackSizes" in the F1 console or RCON.
     
  20. 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?