Bug in Ink Integration?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
tamaracktoo
Posts: 5
Joined: Tue Jun 14, 2022 10:10 am

Bug in Ink Integration?

Post by tamaracktoo »

So, I ran into some really weird behaviour with the Ink integration that even the debugger couldn't shed light on. This is easy to reproduce, I verified in a blank project with all default settings and the below very basic Ink repro case.

Here's what happens. In the below, after you click the "Some Option" text, it will change the Response Button's text to the text above "Here's what I say first" and you then have to click that same response button again to advance the story.

Here's the weird part: if you change the Actor name to something different than Player so that it thinks an NPC is speaking, this does NOT happen. It behaves as expected. From what I can see, it isn't adding a new GameObject with a new Response to the scene, it's overwriting the existing response with this text.

I did try playing with all of the PC subtitle settings in case one of those was causing this, but none of them seemed to have any effect. I can't reproduce this in the Ink Player or the JS export. It only seems to happen for Player labelled lines.

Thoughts? Let me know if that's not clear because it is strange. But very easy to reproduce.

Code: Select all

-> TEST
=== TEST ===
Player: {Here's what I say first.|This is the second thing I say.}
+ [Some Option] ->Next->TEST

=== Next ===
This would be something else.
+ [Go back] ->->
-> END
User avatar
Tony Li
Posts: 21977
Joined: Thu Jul 18, 2013 1:27 pm

Re: Bug in Ink Integration?

Post by Tony Li »

Hi,

What are the settings on your Dialogue System Ink Integration component?

I tested with these settings, and it seems to work similarly to the Ink Player editor window:

inkSettings.png
inkSettings.png (20.39 KiB) Viewed 372 times

I configured a Dialogue System Ink Trigger to start at the TEST knot.

(I'm finishing work for the night, but I'll check back in the morning.)
tamaracktoo
Posts: 5
Joined: Tue Jun 14, 2022 10:10 am

Re: Bug in Ink Integration?

Post by tamaracktoo »

Hey Tony, after a bunch of hacking around, got everything working. It must have been some kind of corruption in the Library or maybe like a mismatch of versions -- I'm not sure. My test scene kept doing it until I blew absolutely everything away and reinstalled everything, and then it was working. So I went back to my actual project, blew away the Library folder, reimported everything and it worked. I should know better that when really weird things happen to just do that first. Thanks for the help! Feel free to delete this thread since it's a false alarm.
User avatar
Tony Li
Posts: 21977
Joined: Thu Jul 18, 2013 1:27 pm

Re: Bug in Ink Integration?

Post by Tony Li »

No worries; I'm glad it's working now. I'll keep the thread in case the issue pops up again. It might have been some settings on the Dialogue System Ink Integration component. Some of its settings can have a very significant impact on the way the integration handles Ink content.
Post Reply