Forum rules - please read before posting.

I need help creating Title-screen menu

Hey,
I went through the tutorial and successfully created a game title screen. Afterwards, I created a new scene and linked the action list to the OnStart cutscene. However, the title screen doesn't appear to be functioning properly. These are the noticeable issues:
1) My character will appear in the scene
2) I can't navigate through the title screen options
3) I'm getting this error "Couldn't find menu with the name 'Inventory " even tho I have an inventory menu
4) I still can access the inventory

https://prnt.sc/25yCX3e0xyg4

Thank you

Comments

  • My character will appear in the scene

    The Player prefab you assign in the Settings Manager will always be spawned unless there is a local Player in the scene. To hide them you can either:

    1. Position the scene's Default PlayerStart out of view
    2. Create a new empty GameObject and attach AC's Player component to create an override Player for that scene

    I can't navigate through the title screen options

    The ability to directly-navigate gameplay Menus is a runtime setting, that you can set using the Engine: Manage systems Action. Run this Action in your scene's OnStart cutscene, setting the Direct-nav in-game Menus field to Enabled.

    Before you exit the scene, run another such Action to disable this setting.

    I'm getting this error "Couldn't find menu with the name 'Inventory " even tho I have an inventory menu
    I still can access the inventory

    Check that the Menu's name matches that in the Action exactly, without spaces.

  • BikBik
    edited August 2023

    Thank you for getting back to me, Chris.
    My character will appear in the scene

    I have attempted that previously, but I can still control the player in the scene and hear its footsteps. This means that navigating the main menu will move both the player character and the menus.

    I can't navigate through the title screen options

    This worked, thank you. However, I am still experiencing issues with the Title screen. The "New Game" and "Resume" buttons are not working properly, as I am unable to hover over them and press "E". Additionally, I am having difficulty navigating the Load and Options menus on the title screen, and I cannot return to the main title screen when I access them.

    I'm getting this error "Couldn't find menu with the name 'Inventory " even tho I have an inventory menu
    I still can access the inventory

    I checked all names, and everything seems fine, but I still see the error.

    These are my current settings:
    https://prnt.sc/XgqEHSxpGRKc
    https://prnt.sc/0lMWVpIJXZY7
    https://prnt.sc/MwLICbK6Mx-2
    https://prnt.sc/SulaP9VMORwZ
    https://prnt.sc/wumevkanwXnM
    https://prnt.sc/uk68gznAVHLa

  • I have attempted that previously, but I can still control the player in the scene and hear its footsteps.

    Either the Engine: Manage systems or Player: Constrain Action can be used to prevent the Player from moving.

    The "New Game" and "Resume" buttons are not working properly, as I am unable to hover over them and press "E".

    Is the issue that they can't be selected, or that they are - but pressing "E" has no effect? Are there other Button in the Menu that are working as intended?

    Share images of these two Button's properties, and any ActionLists that they're set to run.

    Additionally, I am having difficulty navigating the Load and Options menus on the title screen, and I cannot return to the main title screen when I access them.

    What is the exact behaviour you get? The tutorial involves updating the "Back" button to run an ActionList that opens either the Pause or Title menu based on the scene name - is that what this screenshot refers to?

    I checked all names, and everything seems fine, but I still see the error.

    There's no space character after Inventory in the Action, i.e. "Inventory "?

  • Hey Chris,

    I have attempted that previously, but I can still control the player in the scene and hear its footsteps.

    Thanks. Player: Constrain fixed the issue.

    The "New Game" and "Resume" buttons are not working properly, as I am unable to hover over them and press "E".

    Yes, they can't be selected. All other buttons are working properly.
    https://prnt.sc/BTTRyd_IpQUk
    https://prnt.sc/1I8-__20_4U7

    Additionally, I am having difficulty navigating the Load and Options menus on the title screen, and I cannot return to the main title screen when I access them.

    Yes, that's the action screenshot. When I access Load or Option from the title screen, all controlls will stop including the D-pad and WASD.

    I checked all names, and everything seems fine, but I still see the error.

    No space character after Inventory.

  • P.S. This issue has been fixed (The "New Game" and "Resume" buttons are not working properly, as I am unable to hover over them and press "E".)

  • Yes, that's the action screenshot. When I access Load or Option from the title screen, all controlls will stop including the D-pad and WASD.

    What are the ActionList's properties, and what does the AC Status box display at the time?

    The Status box can be enabled from the bottom of the Settings Manager, and will display the game's current state, as well as any running ActionLists, in the Game window.

    No space character after Inventory.

    Can you copy/paste the exact message in full (with the stacktrace included after selecting in the Console).

    Clicking the error will also ping the ActionList it's coming from - could you share a screenshot of the Action?

  • Hey Chris,

    No space character after Inventory.

    Here's the console error log:

    Couldn't find menu with the name 'Inventory '

    -> AC debug logger
    UnityEngine.Debug:LogWarning (object,UnityEngine.Object)
    AC.ACDebug:LogWarning (object,UnityEngine.Object) (at Assets/AdventureCreator/Scripts/Static/ACDebug.cs:33)
    AC.PlayerMenus:GetMenuWithName (string) (at Assets/AdventureCreator/Scripts/Controls/PlayerMenus.cs:2801)
    AC.ActionMenuState:Run () (at Assets/AdventureCreator/Scripts/Actions/ActionMenuState.cs:88)
    AC.ActionList/d__46:MoveNext () (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:467)
    UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)
    AC.ActionList:ProcessAction (int) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:408)
    AC.ActionList:ProcessActionEnd (AC.ActionEnd,int,bool) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:606)
    AC.ActionList:EndAction (AC.Action) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:575)
    AC.ActionList/d__46:MoveNext () (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:539)
    UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)
    AC.ActionList:ProcessAction (int) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:408)
    AC.ActionList:ProcessActionEnd (AC.ActionEnd,int,bool) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:606)
    AC.ActionList:EndAction (AC.Action) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:575)
    AC.ActionList/d__46:MoveNext () (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:539)
    UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr) (at /home/bokken/build/output/unity/unity/Runtime/Export/Scripting/Coroutines.cs:17)

  • Check the Menu: Change state Action that triggers this - the only thing I can infer from the message is that there is a space after the name Inventory in the Action's field, i.e. "Inventory ", not "Inventory" (no quotes).

  • Hey Chris,

    No space character after Inventory.

    I don't know how, but this was fixed when I launched Unity this morning.

    Yes, that's the action screenshot. When I access Load or Option from the title screen, all controls will stop including the D-pad and WASD.

    This is what the AC Status box displayed: https://prnt.sc/azc5L8jZ4TD9

  • If this is in your Title-screen scene, then the game should not be paused if you're following the tutorial - as the "Freeze" menu should only be turned on if you're in another scene.

    Check that your calls to turn on the Freeze menu match up with the tutorial. Make sure also that the Options menu's Pause game when enabled? property is unchecked.

    But, to allow for navigation of the Options menu while paused: make sure Directly-navigate Menus when paused? is checked in the Menu Manager. If the Menu relies on Unity UI, be sure to also check Auto-select first visible Element?.

  • BikBik
    edited August 2023

    So the Option and Load menus worked only when I checked the Pause game when enabled.
    Everything works fine except for these issues:

    • when I access the Load or Options menus. There is a black screen when I try to exit them and return to the title menu.
    • When I press New Game and move to the next scene, the Pause menu will appear and get stuck (I can't remove it).
  • So the Option and Load menus worked only when I checked the Pause game when enabled.

    If you're following the tutorial 1:1, that shouldn't be the case. The Freeze menu should only be turned on when not in your title-screen scene.

    when I access the Load or Options menus. There is a black screen when I try to exit them and return to the title menu.

    Black because that's the background of your title-screen scene?

    Make sure that the logic flows such that turning off these Menus results in the Title menu being turned on. See the "Exit sub menu" ActionList at the bottom of the tutorial here.

    When I press New Game and move to the next scene, the Pause menu will appear and get stuck (I can't remove it).

    The default Pause menu won't turn on unless it's instructed to - either with the Menu: Change state Action, or by pressing the input key listed in its properties.

    Check that this Action is only used to lock/unlock the Pause menu in your title scene's logic - rather than turning it on.

    You can find Action references made to a given Menu by clicking the cog icon to the right of it in the Menu Manager, and choosing Find references.

  • Hey Chris,
    All good now. I can confirm that all the problems have been fixed.

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.