Support for new Unity Input System

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Thistis
Posts: 27
Joined: Sat Oct 05, 2019 5:05 pm

Support for new Unity Input System

Post by Thistis »

Hello,
I wanted to ask if it is known when the Dialogue Manager will support the new Unity Input system.
We would like to use the new Input System only (starting with Unity version preview package 2019.3.0f3).
Currently the game freezes when the new Input System is active and we get several error message like the ones below:

Image

Image

All the best,
Evelyn
User avatar
Tony Li
Posts: 22161
Joined: Thu Jul 18, 2013 1:27 pm

Re: Support for new Unity Input System

Post by Tony Li »

Hi Evelyn,

I'm trying to get it into the next update (version 2.2.4) due early next week, although it might not get in until 2.2.5 which will be mid-January.
Thistis
Posts: 27
Joined: Sat Oct 05, 2019 5:05 pm

Re: Support for new Unity Input System

Post by Thistis »

Hello,
wow that is already very soon, thanks for the information! :)
All the best,
Evelyn
Thistis
Posts: 27
Joined: Sat Oct 05, 2019 5:05 pm

Re: Support for new Unity Input System

Post by Thistis »

Hello,
we just upgraded to the new version 2.2.6, but we still gets the same error message.

All the best,
Evelyn
User avatar
Tony Li
Posts: 22161
Joined: Thu Jul 18, 2013 1:27 pm

Re: Support for new Unity Input System

Post by Tony Li »

Hi Evelyn,

Please see the Input Device Manager's separate manual in Assets / Plugins / Pixel Crushers / Common / Documentation. Briefly:

1. Select menu item Tools > Pixel Crushers > Dialogue System > Welcome Window.

2. Tick the New Input checkbox. This will add the scripting define symbol "USE_NEW_INPUT" to your project, which tells the Dialogue System to use the new Input System.

3. Set up an input script as described on page 5 of the manual.

If you have any questions about any of those steps, please let me know.
Thistis
Posts: 27
Joined: Sat Oct 05, 2019 5:05 pm

Re: Support for new Unity Input System

Post by Thistis »

Hello,

I read the documentation and set it up by checking the option "New input system" in the welcome home wizard.
We have already implemented the new input system in the meantime and trigger a conversation manually
by pressing up on the joystick. After pressing up, we start a conversation via code (dialogueSystemTrigger.OnUse();), this worked fine before.
When I try to do this now, the previous error message (You are trying to read input...) is gone, but a new one appears:

Image

How can we resolve this?

All the best,
Evelyn
User avatar
Tony Li
Posts: 22161
Joined: Thu Jul 18, 2013 1:27 pm

Re: Support for new Unity Input System

Post by Tony Li »

Hi Evelyn,

Inspect the Dialogue Manager's Input Device Manager component. The "Back Key Codes" list contains the key code for "Joystick Button 1". Remove this by setting the list's size to zero. While you're there, double check the other "key codes to check" sections to make sure they don't reference any joystick key codes.

If the Input Device Manager specifies any key codes, the New Input System integration attempts to read a corresponding input from from the New Input System. This generally works fine for keyboard keys such as WASD, Space bar, Enter, etc. But it doesn't know how to correlate "Joystick Button #" key codes into the New Input System. The next DS update will simply ignore "Joystick Button #" key codes.
Post Reply