Page 1 of 1

Ink Entrypoint bug

Posted: Tue Feb 13, 2024 5:10 pm
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.

Re: Ink Entrypoint bug

Posted: Tue Feb 13, 2024 8:36 pm
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!

Re: Ink Entrypoint bug

Posted: Wed Feb 14, 2024 5:22 pm
by Yubaba
You're amazing, thank you!

Re: Ink Entrypoint bug

Posted: Wed Feb 14, 2024 9:01 pm
by Tony Li
Glad to help!