Jump to content

Custom Item Stacking Issue

Closed 1.0.22 1.0.23

Hi admin, I had investigated and found the cause to console error spam.

Issue:
Stacking of custom items cause the item stack to glitch.
10 X item when split with middle mouse to the right, the original pile of 10 will be reduced to 1 instead of 5 and the new stack on the right will be 5.
This also causing an error in console.

Please refer to attached pics.

Error:

Calling hook OnItemSplit resulted in a conflict between the following plugins: Loottable - Item.sticksx2.8351727 (Item), ChickenEgg (Item.sticksx2.8351728 (Item))
 

image.png

image.png

image.png

Share this comment


Link to comment

Regarding your second issue, please insert the following line after line 1247

CPrint($"prefab name: {prefabName} {itemid}");

Then the code should look like this:

image.png.30e20e0c19b1fb6ea5cb693ff77af1fd.png

The next time you encounter an error in OnDispenserGather the line before the error contains the prefab name and the item id that caused the error. Please post it here so I can fix the issue

  • Like 1

Share this comment


Link to comment

Thank you for the error message. For some reason when gahtering from a chicken, you receive a painted egg. This is not included in the gahter multipliers thus causing the error. The error in the second screenshot is not related to this.

I will fix this issue with next weeks update

  • Like 1

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

80.6k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.