Page 1 of 2

Stuck in node and no mouse control

Posted: Sat Sep 30, 2023 5:58 am
by hrohibil
Hello Tony

Please see screenshot.

I have followed the invector integrtation. I have the dialouge brigde component added to my player.
I tried to disable the selector and selector use component.

I have two issues.

1: I have system trigger that fires on enable (start of scene), The start conversation goes so fast that # 1 in the screenshot never gets read or passed by to quiclky. , so it goes directly to second grey node.

2: I am stuck at node 2, i cant use the mouse to continue nor which key to press? Basiclyy i want the node to continue its path on mouse click


Re: Stuck in node and no mouse control

Posted: Sat Sep 30, 2023 7:57 am
by Tony Li
hrohibil wrote: Sat Sep 30, 2023 5:58 am1: I have system trigger that fires on enable (start of scene), The start conversation goes so fast that # 1 in the screenshot never gets read or passed by to quiclky. , so it goes directly to second grey node.
Change the Dialogue System Trigger's Trigger dropdown to OnSaveDataApplied.

Then check the Sequence on "Welcome to CROM City". You can try adding "{{default}};" to the beginning of the Sequence field.
hrohibil wrote: Sat Sep 30, 2023 5:58 am2: I am stuck at node 2, i cant use the mouse to continue nor which key to press? Basiclyy i want the node to continue its path on mouse click
See steps #4 and #6 of the Setup Instructions.

Re: Stuck in node and no mouse control

Posted: Sat Sep 30, 2023 1:37 pm
by hrohibil
Thank you Tony.

After i click the ACTOR node response, the mouse cusor dont disappear, it remains?

Re: Stuck in node and no mouse control

Posted: Sat Sep 30, 2023 3:56 pm
by hrohibil
I cant seem to figure out how to hide the mouse cusor after convesation??
sorry Tony

Re: Stuck in node and no mouse control

Posted: Sat Sep 30, 2023 7:47 pm
by Tony Li
How did you make the mouse cursor appear? If you used the Dialogue System Trigger's Show Cursor During Conversation checkbox, it should hide the cursor again when the conversation ends.

Re: Stuck in node and no mouse control

Posted: Sat Sep 30, 2023 8:17 pm
by hrohibil
I have that checkbox already
If i start game without that initial conversation then there is no mouse cursor, but if i start with the conversation which i want, then it hides the mouse again..


Re: Stuck in node and no mouse control

Posted: Sat Sep 30, 2023 10:12 pm
by Tony Li
Try this: On the Dialogue Manager's Input Device Manager component, set Input Device to Mouse, tick Always Auto Focus, and clear the Joystick Key Codes To Check, Joystick Buttons To Check, Joystick Axes To Check, Key Buttons To Check, and Key Codes To Check.

Re: Stuck in node and no mouse control

Posted: Tue Oct 03, 2023 4:28 pm
by hrohibil
How about using keys?
How can i test with ENTER key to act as pressing on the text?
And arrow keys in case of multiple options?

Re: Stuck in node and no mouse control

Posted: Tue Oct 03, 2023 5:00 pm
by Tony Li
Yes, keys and joystick use Unity UI's standard EventSystem. Make sure the Dialogue Manager's Input Device Manager component's Always Auto Focus is ticked. Then as long as your EventSystem is working properly, arrow keys/Enter and joystick should work fine.

Re: Stuck in node and no mouse control

Posted: Tue Oct 03, 2023 5:10 pm
by hrohibil
Ok i used a simple code:

Code: Select all

 public void hide()
    {
        Cursor.visible = false;
        Cursor.lockState = CursorLockMode.Locked;
        Debug.Log("LOCK MOUSE");


    }
Not pretty but it works. I used it on the players System events on end conversation.

So now node and mouse works, the only thing left which is not working is the invector inventory stuff. I cant seem to add an item or even get the health?
I have added "USE_INVECTOR_INVENTORY" in the scripting defines .
What else can ne missing