Page 1 of 2
I can't have a conversation.
Posted: Fri Sep 01, 2023 12:43 am
by fuakda
First one.
I want to talk to an object NPC with "dialogue system trigger" and "usable", but I can't.
"Instantiate Prefab" will only be displayed when the character approaches and the area shown is the circle in the image, and the character must have their back to the NPC.
If "selectAt" of "selecter" is "mouse position", "Instantiate Prefab" will be displayed above the mouse cursor.
When my character approaches an NPC and the "Instantiate Prefab" button appears, how can I press the button to start a conversation?
Also, the button does not start the conversation.
Conversation doesn't start with key, "e" output by "on-screen button", or "Talk" output by "inputsystem".
help me.
Japanese is automatically translated.
Re: I can't have a conversation.
Posted: Fri Sep 01, 2023 8:27 am
by Tony Li
Hello,
I replied to your
other thread. I recommend using a Proximity Selector on your player.
Re: I can't have a conversation.
Posted: Fri Sep 01, 2023 9:30 am
by fuakda
Does attaching a "Proximity Selector" to the player solve the problem? ?
What about input problems? ?
Re: I can't have a conversation.
Posted: Fri Sep 01, 2023 9:53 am
by Tony Li
Attaching a Proximity Selector instead of a Selector will solve the first problem. This should select the NPC and make the Use Message appear at the top of the screen.
Regarding the input problem, if the Proximity Selector can select the NPC, then pressing the 'E' key should start the conversation. Make sure the NPC has a Usable component and a Dialogue System Trigger component. Make sure the Dialogue System Trigger's Trigger dropdown is set to On Use.
Please see the tutorial video for an explanation.
Re: I can't have a conversation.
Posted: Fri Sep 01, 2023 10:23 am
by fuakda
The issue of talking to NPCs directly in front of them has been resolved. thank you.
Since I can't use "selecter", I feel like I'm postponing the problem.
The following error occurred.
I've tried many things, but I can't figure it out.
How should I respond?
InvalidOperationException: Cannot query value of control '/Keyboard1/e' before 'Keyboard1' has been added to system!
Re: I can't have a conversation.
Posted: Fri Sep 01, 2023 10:49 am
by Tony Li
You're not using the built-in input manager. You've switched to the Input System package.
Please make sure you've set up the Dialogue System to use the Input System package:
Input System Integration Tutorial
Re: I can't have a conversation.
Posted: Fri Sep 01, 2023 7:50 pm
by fuakda
I don't understand that explanation.
"DialogueSystemAssembly" doesn't exist to begin with. It already exists in the tutorial, but there are no instructions on how to register it.
I searched, registered "DialogueSystemAssembly", and referenced "inputsystem", but the errors just keep increasing.
Have you overlooked anything? Is it the right way?
Re: I can't have a conversation.
Posted: Fri Sep 01, 2023 9:07 pm
by Tony Li
Hello,
You do
not need to import the Dialogue System's assembly definition files package. It's optional. If you do import the assembly definition files package:
- newInput1.png (40.1 KiB) Viewed 627 times
then you must add the Input System and TextMesh Pro assembly definition references to three assembly definition files:
- newInput3.png (31.53 KiB) Viewed 627 times
- newInput4.png (15.96 KiB) Viewed 627 times
- newInput5.png (34.39 KiB) Viewed 627 times
and you must add the TMP_PRESENT and USE_NEW_INPUT Scripting Define Symbols.
If your project does not compile, you can add them manually:
- newInput2.png (55.27 KiB) Viewed 627 times
Re: I can't have a conversation.
Posted: Fri Sep 01, 2023 9:08 pm
by Tony Li
If your project does compile, you can use the Welcome Window to add them by ticking the checkboxes:
- newInput6.png (51.65 KiB) Viewed 626 times
NOTE: It is not required to use the Dialogue System assembly definition files. The instructions above only apply if you have imported DialogueSystemAssemblyDefinitions.unitypackage to add the Dialogue System assembly definition files.
Re: I can't have a conversation.
Posted: Wed Sep 06, 2023 7:25 pm
by fuakda
Thank you for your detailed explanation.
No more errors and you can proceed with the tutorial.
I was also able to set up "cinemachine" by myself.
thank you very much.