NullReferenceException at CanMoveItemFixed

Yup. Another wall of red. Not much love being shown for those that get this. Sorry for your loss.

I'm restoring the old version of this plugin on my server.  The latest version has an error unfortunately.

Same issue here too, weapon dupe = false. 

Moving attached weapon un attaches items from weapon. 

Shame because the plugin is very useful and I may need to deactivate it for now :(



Merged post

Tried ("DisableDupeFixAndLeaveWeaponMagsAlone": true,) and didn't work. 

Merged post

So after some testing I think I solved the my issue.

Heres what worked for me

"RevertStackSizesToVanillaOnUnload": true,
"AllowStackingItemsWithDurability": true,
"PreventStackingDifferentSkins": false,
"HidePrefixWithPluginNameInMessages": false,
"DisableDupeFixAndLeaveWeaponMagsAlone": true,

Failed to call hook 'CanMoveItem' on plugin 'StackSizeController v3.4.1' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.StackSizeController.CanMoveItem (Item item, PlayerInventory playerLoot, System.UInt32 targetContainer, System.Int32 targetSlot, System.Int32 amount) [0x0001a] in <b4a2f8b1a60840bdb282dc40937805d7>:0
at Oxide.Plugins.StackSizeController.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00e7e] in <b4a2f8b1a60840bdb282dc40937805d7>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <31122a27a2414cd799150f8677cf39d4>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0

Hello.
An error is thrown into the console: 

What to fix or adjust?

Me too...

Disable dupe fix in config, and search forums for fixes next time. Or maybe I'll just copy paste it into every single thread and quote everyone.

Hello everyone.
I have read a lot of posts and do not understand why you are trying to convince the plugin developer that he is allegedly wrong.
If you have something broken, then the plugin developer is not to blame.
The server admin always has the choice to use this kind of plugin or not.
If you do not have the opportunity to help the developer, then do not interfere
developer.
The quick fix is: you can use another plugin or a later version of that plugin.
In order to get rid of spam in the console, you can use the "console filter" plugin, add your problem to the config of this plugin.
And you will be surprised how this plugin will save you the pain of seeing something in the console, namely the spamming of repeated errors.

I can confirm this is happening on my server after updating this plugin too.

Failed to call hook 'CanMoveItem' on plugin 'StackSizeController v3.4.1' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.StackSizeController.CanMoveItem (Item item, PlayerInventory playerLoot, System.UInt32 targetContainer, System.Int32 targetSlot, System.Int32 amount) [0x0001a] in :0
at Oxide.Plugins.StackSizeController.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00e7e] in :0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in :0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in :0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0

I am also seeing the same bugs across my 3 servers.

 
Failed to call hook 'CanMoveItem' on plugin 'StackSizeController v3.4.1' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.StackSizeController.CanMoveItem (Item item, PlayerInventory playerLoot, System.UInt32 targetContainer, System.Int32 targetSlot, System.Int32 amount) [0x0001a] in <923e4c84630b42c4893427e4aeba462e>:0
at Oxide.Plugins.StackSizeController.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00e7e] in <923e4c84630b42c4893427e4aeba462e>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <31122a27a2414cd799150f8677cf39d4>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
19:58:15
Failed to call hook 'CanMoveItem' on plugin 'StackSizeController v3.4.1' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.StackSizeController.CanMoveItem (Item item, PlayerInventory playerLoot, System.UInt32 targetContainer, System.Int32 targetSlot, System.Int32 amount) [0x0001a] in <923e4c84630b42c4893427e4aeba462e>:0
at Oxide.Plugins.StackSizeController.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00e7e] in <923e4c84630b42c4893427e4aeba462e>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <31122a27a2414cd799150f8677cf39d4>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
19:58:16
Failed to call hook 'CanMoveItem' on plugin 'StackSizeController v3.4.1' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.StackSizeController.CanMoveItem (Item item, PlayerInventory playerLoot, System.UInt32 targetContainer, System.Int32 targetSlot, System.Int32 amount) [0x0001a] in <923e4c84630b42c4893427e4aeba462e>:0
at Oxide.Plugins.StackSizeController.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00e7e] in <923e4c84630b42c4893427e4aeba462e>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <31122a27a2414cd799150f8677cf39d4>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
19:58:17
Failed to call hook 'CanMoveItem' on plugin 'StackSizeController v3.4.1' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.StackSizeController.CanMoveItem (Item item, PlayerInventory playerLoot, System.UInt32 targetContainer, System.Int32 targetSlot, System.Int32 amount) [0x0001a] in <923e4c84630b42c4893427e4aeba462e>:0
at Oxide.Plugins.StackSizeController.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00e7e] in <923e4c84630b42c4893427e4aeba462e>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <31122a27a2414cd799150f8677cf39d4>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0


Merged post

this plugin is so good but i just restart my server and get this error, nothings helps ( deleting config, reload, i try everything. and it gets spamming in console, and stacks dont work 

A temporary solution to the problem is the inclusion of this option, a recommendation not to increase the stack of weapons =)

StackSizeController.json

"DisableDupeFixAndLeaveWeaponMagsAlone": true,

Locked automatically