Modifies stack sizes of server game items

Supported Games
GameServerKingsGameServerKings

This plugin will seamlessly handle all of the ugly side effects and glitches. Thanks to StackModifier's feature additions, it makes it feel just like Rusts default behaviot, but better!

Known Conflicts

  • Magic Coin (uses some of the same hooks); set up config in it correctly to not conflict
  • Custom Skin Stack Fix (not needed this handles it properly)
  • Stack Size Controller (cannot have 2 of the same plugins basically)
  • Extra Loot (causes a stacking bug when a reboot occurs)
  • Compound Options
    • If stack modifier loads after compound options, some compound options may not get set during the restart process
    • To fix, reload compound options

Features

  • This plugin has chat/console commands and no lang file
  • Supports stacking of liquids
  • Supports Stacking of Fuel Containers (hats, tools, etc.)
  • Supports Stacking of Guns
  • Supports Stacking of Skins
  • Works with SkinBox plugins
  • Supports Stacking of Custom Items
  • Supports Stacking of Custom Items with Custom Display Names
  • Supports Stacking of Key Cards without losing the stack when swiping
  • The largest possible value in C# is 2,147,483,647 Which means anything over this stacksize will break the plugin

Having Problems?

  • Warning this plugin is not compatibly with custom-skins-stacks-fix plugin since this already handles everything.
  • If you already have a plugin that modify's the rust stacksizes you will first need to remove that plugin.
  • Then you simply load StackModifier onto your server open the config and start editing the Modified values to your new stacksize amounts!
  • When you are done simply save and reload the plugin! oxide.reload StackModifier

How to revert to vanillia?

  • Unload StackModifier, delete the config, and restart your server.
  • It will reset the config back to vanillia settings allowing you to start over if you went and did the Quick/Dirty method for switching plugins.

Upcoming

  • Full rewrite with UI.

Configuration

{
  "Revert to Vanilla Stacks on unload (Recommended true if removing plugin)": true,
  "Disable Ammo/Fuel duplication fix (Recommended false)": false,
  "Enable VendingMachine Ammo Fix (Recommended)": true,
  "Category Stack Multipliers": {
    "Attire": 1,
    "Misc": 1,
    "Items": 1,
    "Ammunition": 1,
    "Construction": 1,
    "Component": 1,
    "Traps": 1,
    "Electrical": 1,
    "Fun": 1,
    "Food": 1,
    "Resources": 1,
    "Tool": 1,
    "Weapon": 1,
    "Medical": 1
  },
  "Stack Categories": {
    "Attire": {
      "hat.wolf": {
        "DisplayName": "Wolf Headdress",
        "Modified": 10
      },
      "horse.shoes.basic": {
        "DisplayName": "Basic Horse Shoes",
        "Modified": 10
      }
    },
    "Misc": {
      "fogmachine": {
        "DisplayName": "Fogger-3000",
        "Modified": 10
      },
      "sickle": {
        "DisplayName": "Sickle",
        "Modified": 10
      }
    },
    "Items": {
      "kayak": {
        "DisplayName": "Kayak",
        "Modified": 10
      },
      "map": {
        "DisplayName": "Paper Map",
        "Modified": 10
      }
    },
    "Ammunition": {
      "ammo.grenadelauncher.buckshot": {
        "DisplayName": "40mm Shotgun Round",
        "Modified": 20
      },
      "ammo.rocket.sam": {
        "DisplayName": "SAM Ammo",
        "Modified": 10
      }
    },
    "Construction": {
      "door.double.hinged.metal": {
        "DisplayName": "Sheet Metal Double Door",
        "Modified": 10
      },
      "building.planner": {
        "DisplayName": "Building Plan",
        "Modified": 10
      }
    },
    "Component": {
      "bleach": {
        "DisplayName": "Bleach",
        "Modified": 2
      },
      "vehicle.module": {
        "DisplayName": "Generic vehicle module",
        "Modified": 10
      }
    },
    "Traps": {
      "trap.bear": {
        "DisplayName": "Snap Trap",
        "Modified": 30
      },
      "samsite": {
        "DisplayName": "SAM Site",
        "Modified": 10
      }
    },
    "Electrical": {
      "ceilinglight": {
        "DisplayName": "Ceiling Light",
        "Modified": 10
      },
      "wiretool": {
        "DisplayName": "Wire Tool",
        "Modified": 100
      }
    },
    "Fun": {
      "firework.boomer.blue": {
        "DisplayName": "Blue Boomer",
        "Modified": 200
      },
      "telephone": {
        "DisplayName": "Telephone",
        "Modified": 10
      }
    },
    "Food": {
      "apple": {
        "DisplayName": "Apple",
        "Modified": 100
      },
      "woodtea.pure": {
        "DisplayName": "Pure Wood Tea",
        "Modified": 100
      }
    },
    "Resources": {
      "skull.human": {
        "DisplayName": "Human Skull",
        "Modified": 10
      },
      "wood": {
        "DisplayName": "Wood",
        "Modified": 10
      }
    },
    "Tool": {
      "tool.instant_camera": {
        "DisplayName": "Instant Camera",
        "Modified": 10
      },
      "bucket.water": {
        "DisplayName": "Water Bucket",
        "Modified": 10
      }
    },
    "Weapon": {
      "gun.water": {
        "DisplayName": "Water Gun",
        "Modified": 10
      },
      "spear.wooden": {
        "DisplayName": "Wooden Spear",
        "Modified": 10
      }
    },
    "Medical": {
      "blood": {
        "DisplayName": "Blood",
        "Modified": 100
      },
      "bandage": {
        "DisplayName": "Bandage",
        "Modified": 30
      }
    }
  }
}

Credits

  • Khan - Original creator/maintainer of this plugin
MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.