Seems that Stacking is broken for all custom items. For example, a player ties to split a stack of $100 (paper with a skin), the stack then turns to $50. The other half ($50) disappears into thin air.
https://www.dropbox.com/s/tojl4q5koc1nda3/RUST%202022.07.12%20-%2001.21.38.36.mp4?dl=0
Plugin conflict with DrugBusiness OnItemSplitSolved
For anyone else running that plugin add the following code below into the cs file will resolve the conflict issue and allow Stack Modifier to handle everything properly.
You may also contact me on discord if you require assistance adding the code below through discord @Khan#8615
[PluginReference] private Plugin StackModifier;
private void Init()
{
Unsubscribe(nameof(OnItemSplit));
}
private void OnServerInitialized(bool initial)
{
if (StackModifier == null)
Subscribe(nameof(OnItemSplit));
}
private void OnPluginLoaded(Plugin name)
{
if (StackModifier != null && name.Name == StackModifier.Name)
Unsubscribe(nameof(OnItemSplit));
}
private void OnPluginUnloaded(Plugin name)
{
if (StackModifier != null && name.Name == StackModifier.Name)
Subscribe(nameof(OnItemSplit));
}
@khan
Hi. Your tag isn't being accepted when I try to send the request.
I've recently been having issues with loss on splitting items as well lately.
This wasn't a thing in the past.
But I was thinking that maybe you could add something like a skin list to help counter this issue vs having to compensate for every conflicting plugin.
thepiercedweirdo
@khan
Hi. Your tag isn't being accepted when I try to send the request.
I've recently been having issues with loss on splitting items as well lately.
This wasn't a thing in the past.
But I was thinking that maybe you could add something like a skin list to help counter this issue vs having to compensate for every conflicting plugin.
You would only have a skin split issue due to plugin conflicts using the same hooks.
This thread is specific to a plugin conflict & how to resolve it.
I suggest checking your console for errors
Also, in regards to friending me on discord, I assume you are trying to do with an @ when its just > Khan#8615
Booblej's issue was resolved in discord and the solution to his problem was posted here already as well for others to see.
Understood. Yes. It's a hook conflict with all stack issues.
And big facepalm on the discord. Corrected and sent.