Forum rules - please read before posting.

Massive error when give or use inventory item

edited April 2022 in Technical Q&A

Hello, AC freezes as soon as I use or give an inventory item to another hotspot:

NullReferenceException: Object reference not set to an instance of an object AC.ScummInterface.OnHotspotInteract (AC.Hotspot hotspot, AC.Button button) (at Assets/AdventureCreator/Downloads/Nine verbs template/Scripts/ScummInterface.cs:131) AC.EventManager.Call_OnInteractHotspot (AC.Hotspot hotspot, AC.Button button) (at Assets/AdventureCreator/Scripts/Managers/EventManager.cs:406) AC.PlayerInteraction.ClickButton (AC.InteractionType _interactionType, System.Int32 selectedCursorID, AC.InvInstance selectedInvInstance, AC.Hotspot clickedHotspot) (at Assets/AdventureCreator/Scripts/Controls/PlayerInteraction.cs:1053) AC.PlayerInteraction.HandleInteraction () (at Assets/AdventureCreator/Scripts/Controls/PlayerInteraction.cs:816) AC.PlayerInteraction.ContextSensitiveClick () (at Assets/AdventureCreator/Scripts/Controls/PlayerInteraction.cs:618) AC.PlayerInteraction.HandleInteractionMenu () (at Assets/AdventureCreator/Scripts/Controls/PlayerInteraction.cs:206) AC.PlayerInteraction.UpdateInteraction () (at Assets/AdventureCreator/Scripts/Controls/PlayerInteraction.cs:133) AC.StateHandler.Update () (at Assets/AdventureCreator/Scripts/Game engine/StateHandler.cs:213)

This huge error occurs, and everything freezes. :(
It seems to be a problem with the 9 verbs asset.
Greetings, Mike

Comments

  • Yes, it's an issue with the template - not AC itself.

    I've updated the package - download and import it again, and it should be fixed. Thanks for the report.

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.