Forum rules - please read before posting.

Inventory Error

Hi

in the settings no matter if i have reorder inventory or not, i can move the items and drop them into a new area. Even to a place where there is no actual item (right side). Upon moving, error spams console.

Hope you understand what i mean.

Error is:
NullReferenceException: Object reference not set to an instance of an object
AC.MenuInventoryBox.GetItemSlot (Int32 itemID) (at Assets/AdventureCreator/Scripts/Menu/Menu classes/MenuInventoryBox.cs:1010)
AC.PlayerMenus.UpdateMenuPosition (AC.Menu menu, Vector2 invertedMouse) (at Assets/AdventureCreator/Scripts/Controls/PlayerMenus.cs:655)
AC.PlayerMenus.UpdateMenu (AC.Menu menu) (at Assets/AdventureCreator/Scripts/Controls/PlayerMenus.cs:707)
AC.PlayerMenus.UpdateAllMenus () (at Assets/AdventureCreator/Scripts/Controls/PlayerMenus.cs:1449)

Comments

  • Are you using the default provided AC menu or a modified one?  You will need to post shots of it's Inspector / MenuManager if it's different.

    Replace line 1010 of MenuInventoryBox.cs with:

    if (invItem != null && invItem.id == itemID)
  • ok, i will come back to this.

    to save time i went back to old project version of AC.

    cheers
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.