Forum rules - please read before posting.

What object calls an Asset Store Window?

Good Evening all!

I've updated Dialogue System for Unity to 2.2.12 and Adventure Creator to 1.72.2
My Project now gets a Null Reference Exception, and double-clicking the notice opens an "Asset Store Window" in the inspector. I've never knowingly used this in my project.

https://www.mediafire.com/view/u5ezsur28h2uyz1/AssetStoreWindowProblem.png/file

What should I do?
Thank you all!

-CodePrincess

Comments

  • Can you copy/paste the full message from the Console window? Only part of it is visible in the screenshot.

    Doesn't look related to AC, though.

  • Oh! Okay, here you go:

    NullReferenceException: Object reference not set to an instance of an object
    UnityEditor.HostView.DeregisterSelectedPane (System.Boolean clearActualView, System.Boolean sendEvents) (at :0)
    UnityEditor.HostView.SetActualViewInternal (UnityEditor.EditorWindow value, System.Boolean sendEvents) (at :0)
    UnityEditor.HostView.set_actualView (UnityEditor.EditorWindow value) (at :0)
    UnityEditor.DockArea.OnEnable () (at :0)
    UnityEditorInternal.InternalEditorUtility:LoadSerializedFileAndForget(String)
    UnityEditor.WindowLayout:LoadDefaultWindowPreferences()

    Thank you!

  • Yes, it's a Unity message - likely a bug with Unity.

  • So, I updated to the most recent version of Unity, and while that fixed the Unity problem, it's apparently exposed some other strangeness.

    For instance, I got quite a few warnings that go like this:

    Couldn't find menu element 'InventoryBox' in a menu named 'Items'

    -> AC debug logger
    UnityEngine.Debug:LogWarning(Object, Object)
    AC.ACDebug:LogWarning(Object, Object) (at
    Assets/AdventureCreator/Scripts/Static/ACDebug.cs:33)
    AC.PlayerMenus:GetElementWithName(String, String) (at
    Assets/AdventureCreator/Scripts/Controls/PlayerMenus.cs:2729)
    ItemCategoryManager:UpdateDisplay(InvItem, Int32) (at
    Assets/Scripts/MonoBehaviors/ItemCategoryManager.cs:127)
    ItemCategoryManager:OnEnable() (at
    Assets/Scripts/MonoBehaviors/ItemCategoryManager.cs:29)
    UnityEngine.Object:Instantiate(Canvas)
    AC.Menu:LocateLocalCanvas() (at Assets/AdventureCreator/Scripts/Menu/Menu
    classes/Menu.cs:3036)
    AC.Menu:LoadUnityUI() (at Assets/AdventureCreator/Scripts/Menu/Menu
    classes/Menu.cs:372)
    AC.PlayerMenus:RebuildMenus(MenuManager) (at
    Assets/AdventureCreator/Scripts/Controls/PlayerMenus.cs:149)
    AC.PlayerMenus:OnInitPersistentEngine() (at
    Assets/AdventureCreator/Scripts/Controls/PlayerMenus.cs:87)
    AC.StateHandler:Initialise(Boolean) (at Assets/AdventureCreator/Scripts/Game
    engine/StateHandler.cs:113)
    AC.KickStarter:SetPersistentEngine() (at Assets/AdventureCreator/Scripts/Game
    engine/KickStarter.cs:157)
    AC.KickStarter:Initialise() (at Assets/AdventureCreator/Scripts/Game
    engine/KickStarter.cs:1095)
    AC.MultiSceneChecker:Awake() (at Assets/AdventureCreator/Scripts/Game
    engine/MultiSceneChecker.cs:43)

    and two Errors (I'll just show the one here as the other is the same, but for another object):

    NullReferenceException: Object reference not set to an instance of an object
    ConvoProfileManager.UpdateDisplay (AC.InvItem item, System.Int32
    categoryNum) >(at Assets/Scripts/MonoBehaviors/ConvoProfileManager.cs:214)
    ConvoProfileManager.OnEnable () (at
    Assets/Scripts/MonoBehaviors/ConvoProfileManager.cs:29)
    UnityEngine.Object:Instantiate(Canvas)
    AC.Menu:LocateLocalCanvas() (at Assets/AdventureCreator/Scripts/Menu/Menu > classes/Menu.cs:3036)
    AC.Menu:LoadUnityUI() (at Assets/AdventureCreator/Scripts/Menu/Menu
    classes/Menu.cs:372)
    AC.PlayerMenus:RebuildMenus(MenuManager) (at
    Assets/AdventureCreator/Scripts/Controls/PlayerMenus.cs:149)
    AC.PlayerMenus:OnInitPersistentEngine() (at
    Assets/AdventureCreator/Scripts/Controls/PlayerMenus.cs:87)
    AC.StateHandler:Initialise(Boolean) (at Assets/AdventureCreator/Scripts/Game
    engine/StateHandler.cs:113)
    AC.KickStarter:SetPersistentEngine() (at Assets/AdventureCreator/Scripts/Game > engine/KickStarter.cs:157)
    AC.KickStarter:Initialise() (at Assets/AdventureCreator/Scripts/Game
    engine/KickStarter.cs:1095)
    AC.MultiSceneChecker:Awake() (at Assets/AdventureCreator/Scripts/Game
    engine/MultiSceneChecker.cs:43)

    I checked all the involved menus and prefabs, and everything seems to be present, and correctly initialized.

    What's going on?

    Thank you very much for your help. It's always deeply appreciated.

  • Both errors make mention of custom scripts, ConvProfileManager and ItemCategoryManager, and it seems these both revolve around the inventory system.

    AC's inventory system was overhauled in v1.72.0, but this does mean some changes may need to be made to custom scripts that use it. I've covered the core changes in this tutorial, but if you'd like to share the code itself I can try to suggest what needs changing.

  • No error messages showed up in the scripts themselves, so I officially have no idea what to do. I'll happily take you up on your offer. I sent you links to the scripts in a personal message.

    Thank you so much for your help!

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.