Bug in Ink Integration?
Posted: Wed Jun 15, 2022 9:28 pm
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.
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