Forum rules - please read before posting.

Mouse interactions arent working after importing Walking Dead package

Hi

I was very happy to find out there was a template to get a Walking dead like ring interaction
I got the package imported. Unlike to your 3D tutorial there was a template named Template_WalkingDead. Inspector then had an Apply button. Clicking that and it was importing forever.
I also get that in console

ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.Collections.Generic.List1[T].RemoveAt (System.Int32 index) (at <2ce8bd53d6c34e8aa27451ac5b09a981>:0) AC.CursorManager.SyncCursorInteractions () (at Assets/AdventureCreator/Scripts/Managers/CursorManager.cs:477) AC.Downloads.WalkingDead.WalkingDeadTemplate.MakeChanges (System.String installPath, System.Boolean canDeleteOldAssets, System.Action onComplete, System.Action1[T] onFail) (at Assets/AdventureCreator/Downloads/Walking Dead template/Assets/Scripts/Editor/WalkingDeadTemplate.cs:106)
AC.Template.Apply (System.String installPath, System.Boolean recordUndo, System.Boolean reportCompletion, System.Boolean canDeleteOldAssets) (at Assets/AdventureCreator/Scripts/Managers/Editor/Template.cs:44)
AC.TemplateEditor.OnInspectorGUI () (at Assets/AdventureCreator/Scripts/Managers/Editor/Template.cs:626)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass79_0.b__0 () (at :0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

It seemed completely stuck so I cancelled that by shutting down.

I then tried to manually get the managers in place by going to the Assets folder.
Then followed your 3d tutorial and did those necessary tweaks regarding highlighting objects, reloading the Player feedback etc.

Problem is when I hit play there is no game cursor anymore. I can't do anything. Nor navigate neither select a hotspot. Cursor is the classic windows cursor and its seems like I am hovering over an image!
When I stop running the game if I go to the Game Tab and then to the Interactions Menu it's all good. If I flip the interaction menu to use Adventure Creator I can see the ring so looks like its picking up the new Manager.

Any thoughts?
Perhaps its not enough to just drag the managers in place and I am missing stuff from not correctly installing the template?
Any input stuff that might need rewiring?

Going back to my manager and everything is working as it was .

Thank you!

Comments

  • Let's get the tempate installing correctly before anything else.

    If you open up AC's CursorManager script, look for line 477:

    unhandledCursorInteractions.RemoveAt (unhandledCursorInteractions.Count + 1);
    

    Replace with:

    unhandledCursorInteractions.RemoveAt (unhandledCursorInteractions.Count);
    

    That should resolve the error when installing. Try it again and see if it then works.

  • I tried that but it still doesnt look I can install it.
    https://ibb.co/whsqdyg2

    Looks like I am getting the same error in the console

    ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index
    System.Collections.Generic.List1[T].RemoveAt (System.Int32 index) (at <2ce8bd53d6c34e8aa27451ac5b09a981>:0) AC.CursorManager.SyncCursorInteractions () (at Assets/AdventureCreator/Scripts/Managers/CursorManager.cs:477) AC.Downloads.WalkingDead.WalkingDeadTemplate.MakeChanges (System.String installPath, System.Boolean canDeleteOldAssets, System.Action onComplete, System.Action1[T] onFail) (at Assets/AdventureCreator/Downloads/Walking Dead template/Assets/Scripts/Editor/WalkingDeadTemplate.cs:106)
    AC.Template.Apply (System.String installPath, System.Boolean recordUndo, System.Boolean reportCompletion, System.Boolean canDeleteOldAssets) (at Assets/AdventureCreator/Scripts/Managers/Editor/Template.cs:44)
    AC.TemplateEditor.OnInspectorGUI () (at Assets/AdventureCreator/Scripts/Managers/Editor/Template.cs:626)
    UnityEditor.UIElements.InspectorElement+<>c__DisplayClass79_0.b__0 () (at :0)
    UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

  • Can you share screenshots of your Cursor Manager?

  • wow I think something is seriously broken on my cursor manager.
    This wasn't looking like that at least until yesterday.
    Not sure what happened but it also affects the game in the way that when I hover over a hotstop the available interactions occupy the whole screen..
    The console is putting that error on a constant stream as well.
    Quickly switching to the demo manager and its back to normal.
    Not sure when that broke. I am guessing it has to do with trying to install the new managers as I havent really fiddled with that area before.
    Is there a way to reset the cursor manager?

    https://ibb.co/5x4w7Ncm
    https://ibb.co/99Q821MN

  • Yes, I expect it's something to do with the failed import.

    Click the asset file field at the top to ping the Cursor Manager and then hit backspace to clear it. You'll then get a prompt to create a new one.

  • Alright I did that and created a new cursor.

    Now Applying the WalkingDead went through in an instant.

    So now if I run the game all hotspots react as they should, showing the nice ring. Though I still dont get the ability to navigate my player around.
    One other thing is although the hotspot ring shows the cursor is not changing. I am seeing my windows cursor.
    Perhaps a setting that I am missing?
    I 've also noticed how unlikely to the 3D demo the manager names stayed the same and werent swapped out. I am guessing they are being overwritten with the new settings?
    Here are my settings and cursor managers
    https://ibb.co/8Dnrqy0s
    https://ibb.co/VpNW2b92

    My previous package manager, if I double click that it will still reload the old broken cursor. Can I link it to pick up the new cursor manager I made? Is it a case of deleting the old cursor manager and renaming the new to match the overall manager name?

  • So now if I run the game all hotspots react as they should, showing the nice ring. Though I still dont get the ability to navigate my player around.

    In what way are you looking to move? The Walking Dead template switches to Direct movement. If you want to use Point and Click, you can set that in the Settings Manager's Movement method field.

    One other thing is although the hotspot ring shows the cursor is not changing. I am seeing my windows cursor.

    The default cursor icon is listed in the Cursor Manager's Main cursor**** panel. You can assign a texture in the **Hotspot cursor panel if you wish to have it change when over Hotspots.

    The system cursor should only be shown while testing in the Editor. You can hide this, though, by unchecking Always show system cursor in Editor? at the top.

    My previous package manager, if I double click that it will still reload the old broken cursor. Can I link it to pick up the new cursor manager I made? Is it a case of deleting the old cursor manager and renaming the new to match the overall manager name?

    The Managers that get loaded when double-clicking the ManagerPackage file are listed in its Inspector. You don't need to delete your old CursorManager asset, but you will need to assign the new asset in the ManagerPackage's Cursor Manager field to have it load automatically when double-clicked.

  • Hi Chris,

    Thank you so much. I think I was tired yesterday. Looking to all these now and there are pretty obvious stuff I should have checked.
    Everything is working great!

    Thank you for your patience :)

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.