Forum rules - please read before posting.

Potential Bug - Stackable Inventory Items

Hi there,

I recently upgraded to Unity 2020.1.8f1 and AC v1.72.1 and inventory items no longer seem to stack, but instead take a slot each. The items were set up in a previous version of Unity & AC and stacked correctly in that version, but now they no longer do.

Here is a shot of the settings for a stackable inventory item:
https://photos.google.com/photo/AF1QipMI9Gr7OCjxSv2CEKIupj0YrV13FTEBYMi9M31D

And here is a shot of the Inventory manager:
https://photos.google.com/photo/AF1QipNg5ai3gHLJJYJbSUakfNZKKUTIJwoY89yNvHuY

I also checked the Inventory menu in the Menu settings but I couldn't see anything relevant there aside from displaying the number of items in a stack. It looks as though the number of items in a stack isn't being respected, but I'm suspicious because it's pretty conspicuous and I'm sure someone else would have noticed it and reported it, so I'm wondering if this is just an issue with my project.

I've searched around for similar issues and have spent a good few hours banging my head against this, so any help would be very much appreciated!

Best,

DB

Comments

  • Just to note, I tried creating a brand new inventory item after the upgrade and using that instead of the legacy inventory item, but had the same issue.

  • I'm getting 404 errors on your links - can you share on imgur?

    What version were you upgrading from? As of v1.72.0, the Place in separate slots? inventory item property has been replaced by the Slot capacity property. The equivalent of checking the former box would be to set the latter to 1.

    Can you share a shot of your InventoryBox's properties as well?

  • Hi Chris,

    Thanks for the quick response as always!

    I upgraded to latest on 25th June, though I'm sure I've upgraded since then as well. I definitely hadn't upgraded to v1.72.0 prior though.

    Here are the images on imgur, including the InventoryBox properties:
    https://imgur.com/a/IFcWLHs

    Best,

    DB

  • The item in your screenshot isn't being carried on start - how is it that you're getting the issue to occur? Through Actions, transferring from Container, or user-manipulation of the inventory?

    Please share steps on how to recreate the problem, and I'll need to see your Interaction settings in the Settings Manager as well.

    Is there any difference if you uncheck "Items can be re-ordered in Menus?"?

  • I'm just using standard Inventory Add/Remove Actions in Interactions, nothing more complicated than that.

    Steps to recreate are:
    1) Play in engine
    2) Proceed to hotspot
    3) Use hotspot and receive stackable item
    4) Repeat step 3

    Results - Notice that the stackable item appears in a separate slot, rather than stacking

    Interface settings and a screenshot of the Interaction script in question can be found here:
    https://imgur.com/a/6DbiIIL

    I tried unticking "Items can be re-ordered in Menus?" but the issue still occurs.

  • Some additional information:

    • Stackable items are not being removed from inventory when used. Interaction ActionList: https://imgur.com/a/5KrnJE0
    • Inventory items work as expected when unticking "Can carry multiple?" with no changes to ActionLists
  • Thanks for the steps - I'll look into this.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.