Ink Entrypoint bug

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Yubaba
Posts: 38
Joined: Thu Oct 08, 2020 9:37 pm

Ink Entrypoint bug

Post by Yubaba »

Hi Tony,
I'm using a workaround for my own use, so zero pressure on this one, but thought I'd flag this in case I've missed something or you don't know about it.

Using InkEntrypoint.FromString() with the full path being ds_01_1_TheNewLease/Ellex.AndrewGetsHome
It returns
.story - ds_01_1_TheNewLease | perfect
.knot - ds_01 | uh oh
.stitch - 1_TheNewLease/Ellex.AndrewGetsHome | also uh oh

I'm pretty rough at string parsing, but I cannot for the life of me work out why your FromString constructor is doing that, cos it shouldn't be, right?

Like I said, zero pressure on this, just thought I'd post it. I'm on 2.2.34, but I couldn't see any Ink updates in release notes since.

Pete.
User avatar
Tony Li
Posts: 22110
Joined: Thu Jul 18, 2013 1:27 pm

Re: Ink Entrypoint bug

Post by Tony Li »

Hi Pete,

Oops, please change lines 44-45 of InkEntrypoint.cs to:

Code: Select all

knot = knot_stitch.Substring(0, i);
stitch = knot_stitch.Substring(i + 1);
This fix will also be in DS version 2.2.43. Thanks for letting me know about the bug!
Yubaba
Posts: 38
Joined: Thu Oct 08, 2020 9:37 pm

Re: Ink Entrypoint bug

Post by Yubaba »

You're amazing, thank you!
User avatar
Tony Li
Posts: 22110
Joined: Thu Jul 18, 2013 1:27 pm

Re: Ink Entrypoint bug

Post by Tony Li »

Glad to help!
Post Reply