AssertionException at CanMoveItemNot An Issue
hello I keep getting those errors in my console and people keep getting kicked for it.

Failed to call hook 'CanMoveItem' on plugin 'ChestStacks v1.2.1' (AssertionException: Assertion failure. Value was False
Expected: True
split_Amount <= 0)
  at UnityEngine.Assertions.Assert.Fail (System.String message, System.String userMessage) [0x00043] in <0618f269b594493b97c56ba78f03373a>:0 
  at UnityEngine.Assertions.Assert.IsTrue (System.Boolean condition, System.String message) [0x0000f] in <0618f269b594493b97c56ba78f03373a>:0 
  at Item.SplitItem (System.Int32 split_Amount) [0x00000] in <e4454aa3ad9a499397cbde453043cc8b>:0 
  at Oxide.Plugins.ChestStacks.CanMoveItem (Item movedItem, PlayerInventory playerInventory, System.UInt32 targetContainerID, System.Int32 targetSlot, System.Int32 amount) [0x00108] in <30be8572a619481493a7891f7bba9cf5>:0 
  at Oxide.Plugins.ChestStacks.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0019a] in <30be8572a619481493a7891f7bba9cf5>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cf88a28c7fb44d36890d85a78331cc9d>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cf88a28c7fb44d36890d85a78331cc9d>:0
Im using this with no issues and will be adding any "missing" containers that I can figure out how.... I am NOT a coder but adding containers seems really simple once looking in the addon... but if you want a copy from me add me on discord @ Razor14150#7265
Hello,
When i move water to waterjug, server kick me for rpc error in moveitem

(17:39:21) | Failed to call hook 'CanMoveItem' on plugin 'ChestStacks v1.3.0' (AssertionException: Assertion failure. Value was False
Expected: True
split_Amount <= 0)
  at UnityEngine.Assertions.Assert.Fail (System.String message, System.String userMessage) [0x00043] in <0b31faaf1c50461d95c83ac166a20393>:0 
  at UnityEngine.Assertions.Assert.IsTrue (System.Boolean condition, System.String message) [0x0000f] in <0b31faaf1c50461d95c83ac166a20393>:0 
  at Item.SplitItem (System.Int32 split_Amount) [0x00000] in <a73bb778da244514a9e29b5bd9564fa3>:0 
  at Oxide.Plugins.ChestStacks.CanMoveItem (Item movedItem, PlayerInventory playerInventory, System.UInt32 targetContainerID, System.Int32 targetSlot, System.Int32 amount) [0x00108] in <6845aace5f9d48888564b1f1396d1acf>:0 
  at Oxide.Plugins.ChestStacks.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00157] in <6845aace5f9d48888564b1f1396d1acf>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cf88a28c7fb44d36890d85a78331cc9d>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cf88a28c7fb44d36890d85a78331cc9d>:0
(17:39:21) | AssertionException: Assertion failure. Value was False
Expected: True
split_Amount <= 0​


Merged post

Hello,
I am contacting you because it has been several days since I put a post on your plugins page but no one wants to help me solve the problem or fix the error.
And I would like you to know when can you fix this bug?
Please, what is the point of sending messages like this?
  1. Read the license-tab of this plugin.
  2. Read Disclaimer of Warranties of umod.
  3. Just wait silently and be thankful that someone is sharing something here for free.
Thanks.

Merged post

What exactly are you doing to have this error? Never had one, can't reproduce.
Took a water jug, filled with water, moved all water to another water jug. Throw all water off, filled again - no errors, no kick.
I need more details to be able to reproduce the error. Post your config and details of what exactly are you doing to have this error.
Hello,
Server is hosted on Linux Ubuntu Server 18.04 "Bionic Beaver" LTS
Server is hosted by opengamepanel (https://www.opengamepanel.org/news.php)
It is up to date and has the oxide version 2.0.4794

Merged post

My config :
{
  "Global settings": {
    "Default Multiplier for new containers": 1
  },
  "Stack settings": {
    "Containers list (shortPrefabName: multiplier)": {
      "autoturret_deployed": 1,
      "bbq.deployed": 1,
      "bigwheelbettingterminal": 1,
      "box.wooden.large": 10,
      "campfire": 5,
      "coffinstorage": 10,
      "composter": 5,
      "crudeoutput": 5,
      "cupboard.tool.deployed": 10,
      "cursedcauldron.deployed": 5,
      "engine": 5,
      "excavator_output_pile": 5,
      "fireplace.deployed": 5,
      "fridge.deployed": 5,
      "fuel_storage": 5,
      "fuelstorage": 5,
      "furnace": 5,
      "furnace.large": 10,
      "fusebox": 1,
      "guntrap.deployed": 1,
      "hitchtrough.deployed": 1,
      "hopperoutput": 10,
      "item_drop": 1,
      "item_drop_backpack": 1,
      "lantern.deployed": 5,
      "locker.deployed": 5,
      "mixingtable.deployed": 5,
      "modular_car_fuel_storage": 5,
      "modular_car_i4_engine_storage": 1,
      "npcvendingmachine_attire": 5,
      "npcvendingmachine_building": 1,
      "npcvendingmachine_components": 5,
      "npcvendingmachine_extra": 5,
      "npcvendingmachine_farming": 5,
      "npcvendingmachine_resources": 5,
      "npcvendingmachine_tools": 1,
      "planter.large.deployed": 5,
      "recycler_static": 1,
      "refinery_small_deployed": 10,
      "repairbench_deployed": 1,
      "repairbench_static": 1,
      "researchtable_deployed": 1,
      "researchtable_static": 1,
      "rowboat_storage": 1,
      "shopkeeper_vm_invis": 1,
      "skull_fire_pit": 1,
      "small_fuel_generator.deployed": 1,
      "small_refinery_static": 10,
      "supply_drop": 1,
      "survivalfishtrap.deployed": 1,
      "testridablehorse": 1,
      "tunalight.deployed": 1,
      "vendingmachine.deployed": 25,
      "water.pump.deployed": 5,
      "waterbarrel": 5,
      "woodbox_deployed": 5,
      "workbench1.deployed": 1,
      "workbench1.static": 1,
      "workbench2.deployed": 1,
      "workbench3.deployed": 1
    }
  }
}​


Merged post

when i move the water from one waterjug to another, the server kick me for rpc error
Tested with your config file on my test server and I got no errors and no kicks.
Try using default config. Also try to unload all plugins (temporary move them to another folder) and test if the problem is solved.
 
hello @MONaH, no problem now, i tested without StackMultiplier and no rpc error, i delete StackMultiplier and i reinstall StackSizeController
Failed to call hook 'CanMoveItem' on plugin 'ChestStacks v1.3.3' (AssertionException: Assertion failure. Value was False
Expected: True
split_Amount <= 0)
  at UnityEngine.Assertions.Assert.Fail (System.String message, System.String userMessage) [0x00043] in <745c4d442eef4e08b35b5975d62d89d1>:0
  at UnityEngine.Assertions.Assert.IsTrue (System.Boolean condition, System.String message) [0x0000f] in <745c4d442eef4e08b35b5975d62d89d1>:0
  at Item.SplitItem (System.Int32 split_Amount) [0x00000] in <29c7e31a9db8498285e1197fb5c6554b>:0
  at Oxide.Plugins.ChestStacks.CanMoveItem (Item movedItem, PlayerInventory playerInventory, System.UInt32 targetContainerID, System.Int32 targetSlot, System.Int32 amount) [0x0012d] in <9b51ea632f504be8a522f56ab5b8eee2>:0
  at Oxide.Plugins.ChestStacks.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000cd] in <9b51ea632f504be8a522f56ab5b8eee2>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>: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
@eassimak, read posts above.
I dont have the stack multiplyer plugin
5f23e353340b1.png MONaH
Try to unload all plugins (temporary move them to another folder) and test if the problem is solved.
 

That's what I meant

Did that, still got the error

I can't reproduce this issue. Works like it should for me.

Locked automatically