原地址
Stack Modifier
This plugin will seamlessly handle all of the ugly side effects and glitches. Thanks to Stack-modifier's feature additions, it makes it feel just like Rusts default behavior, but better! Features Has a GUI Editor Patches Industrial Conveyor stack issues! Blocks Player movements while using GUI Ed...
codefling.com
关于 Stack Modifier
这个插件将无缝处理所有丑陋的副作用和故障。
多亏了 Stack-modifier 的功能添加,它让它感觉就像 Rusts 的默认行为,但更好!
特征
Has a GUI Editor
Patches Industrial Conveyor stack issues!
Blocks Player movements while using GUI Editor Including Keybinds!
This plugin has 2 commands and no Lang file
Supports stacking of liquids
Supports Stacking of Fuel Containers (hats, tools, etc.)
Supports Stacking of Guns
Supports Weapon Attachments
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
Supports Stacking Candy Cane Club without losing the stack while lick
Support for modified presents for unwrapping
The largest possible value in C# is 2,147,483,647 Which means anything over this stack-size will break the plugin
Limits wearable clothing items to stack sizes of 1! ( on the player wear container only )
Limits weapon attachments to stack sizes of 1! ( On the weapon its self! so you can have bigger stacks! )
已知冲突
RoadBradley & HeliSignals
Are doing item creations wrong and setting the item.name field as vanilla item display names thus breaking stack support.
( don't set a vanilla display name only set them if its custom names as the fix )
Davids Shop UI ( recently changed how his default data files are createdfor items )
( you need to generate a new Items.json file and re-do custom items / pricing inside it to fix stack bugs with old data files )
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 with skinned items preventing old skinned items from stacking with new skinned items
IndustrialCustomSkinsFix
not needed stack-modifier has the same patch in it.
IQAlcoholFarm by BadMandarin/Mercury
is not supported & will cause stack bugs / problems ( could be supported with an author update, but current version is not supported )
ItemPerks by imthenewguy
Causes stack bugs/problems just by having this plugin on your server due to harmony patching done inside it + repair logic is bugged.
Item creation is also not handled properly resulting in duplication issues with Conveyor movements nothing can be done about that.
( plugin requires a full rewrite for proper support & repairs. )
无法正确处理物品创建的插件:( 哪些会破坏堆栈 )
Custom Item Drops by Machine ( Always sets the vanilla display name when its supposed to be null for vanilla items )
XP System by fastburst ( Always sets the vanilla display name when its supposed to be null for vanilla items )
Copy Paste ( Items created by copy paste its self will not stack since item creation is not handled properly )
This list will be constantly updated as devs fix their code accordingly & new ones are discovered to be flawed.
入门 - 单击任一链接播放视频
视频一
视频二
权限
stackmodifier.admin - Allows players access to the UI Editor.
聊天命令
/stackmodifier -- Opens Editor UI, Must enable config option "Enable UI Editor": true
/stackmodifier.reset ( is also console cmd ) -- Requires stackmodifier.admin perm ( resets stack-sizes )
/resetvenders -- Requires being an admin, only resets facepunches messed-up vendors, not all
/stackmodifiercolor <inputpanel|inputtext|text|transparent> <color> <alpha|ex, 0.98>
Example /stackmodifiercolor inputpanel #207086 0.25
UI 编辑器命令
set 8 -- Inside a categories Search Bar, type set and a value and it will apply it to the whole category,
reset -- Inside a categories Search Bar type reset hit the enter key or click out of the field and it resets it.
multiply -- Inside a categorie use the Search Bar & type multiply and a value and it will apply it to the whole category.
if you reset or set, re-click the Category Tab to refresh it before making more changes!
Otherwise you will have to do your first edit twice for it to start working again
没有图像的 UI 编辑器?
* 在配置顶部,您将看到以下设置设置为 true:保存并重新加载。
"Disable Images for UI Editor": false, < Disables images and allows full use
遇到问题?
* 警告 此插件与 custom-skins-stacks-fix 插件不兼容,因为它已经处理了所有内容。
* 如果您已经有一个修改 Rust 堆栈大小的插件,您首先需要删除该插件。
* 然后,您只需将 Stack Modifier 加载到您的服务器上,打开配置并开始将 Modified 值编辑为新的堆栈大小数量!
* 完成后,只需保存并重新加载插件即可!( 氧化物 重新加载 StackModifier )
* 或者,您可以使用内置的 UI 编辑器,而无需触摸配置!
* 管理员 - 身份验证级别 2 将始终被忽略。
* 此插件与 BetterVanish 不兼容,我仅支持 umod 的 Vanish。
如何恢复到原版?
* 在 stackmodifier.admin 权限或 Unload Stack Modifier 的情况下运行 reset 命令,删除配置,然后重新启动服务器。
* 它会将配置重置回原版设置,允许您重新开始。
API 钩子
Interface.CallHook("OnStackSizeUpdated"); //called after the plugin updates the stack sizes on server reboots & when reloading the plugin.
//It's also still called right after the UI editor is closed from modifying.
//Inside the oxide hook I use called OnItemAddedToContainer theirs a hook of mine, if called mine will not touch it or fix the stacks.
if (Interface.CallHook("OnIgnoreStackSize", player, item) != null) return;
## 配置
{
"Disable Weapon Attachment stack fix (Unsubscribes from both OnWeaponModChange & CanMoveItem)": false,
"Disable Wearable Clothes fix (Unsubscribes from OnItemAddedToContainer)": false,
"Disable Ammo/Fuel duplication fix (Recommended false)": false,
"Disable Candy Cane Club Lick fix & unwrap fix (Unsubscribes from OnItemAction)": false,
"Disable OnCardSwipe fix (Unsubscribes from OnCardSwipe)": false,
"Enable VendingMachine Ammo Fix (Recommended)": true,
"Enable UI Editor": true,
"Disable Images / Toggles off Images for UI Editor": false,
"Sets editor command": "stackmodifier",
"Sets reset command for both console & chat": "stackmodifier.reset",
"Sets editor color command": "stackmodifiercolor",
"Sets Default Category to open": "All",
"Stack Modifier UI Title": "Stack Modifier Editor ◝(⁰▿⁰)◜",
"UI - Stack Size Label": "Default Stacks",
"UI - Set Stack Label": "Set Stacks",
"UI - Search Bar Label": "Search",
"UI - Back Button Text": "◀",
"UI - Forward Button Text": "▶",
"UI - Close Label": "✖",
"Colors": {
"InputPanel": {
"Hex": "#0E0E10",
"Rgb": "0.0549019607843137 0.0549019607843137 0.0627450980392157 0.98"
},
"InputText": {
"Hex": "#FFE24B",
"Rgb": "1 0.886274509803922 0.294117647058824 0.15"
},
"TextColor": {
"Hex": "#FFFFFF",
"Rgb": "1 1 1 1"
},
"Transparency": {
"Hex": "#",
"Rgb": "0 0 0 0.95"
}
},
"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
}
}
}
}