[SOLVED] Ink integration with VN Framework?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Eldritch
Posts: 5
Joined: Sun Dec 09, 2018 12:36 am

[SOLVED] Ink integration with VN Framework?

Post by Eldritch »

Hello,

Sorry, new to Dialogue System and kind of stumbling my way through the documentation.

I can get ink integration with dialogue system to work with no problem, but as soon as I introduce the VN framework, I get "Conversation "myinkstory" not found in database". I have carefully gone over the steps with getting ink to work(manually writing in the name for the ink conversation, etc...) and at one point I did get the ink story to play, but as soon as I started editing the Gameplay scene I started getting this error.

What are the steps to get ink to work with dialogue system's VN Framework (from the Extras)?

Thank you.
Last edited by Eldritch on Tue Dec 11, 2018 4:25 pm, edited 1 time in total.
User avatar
Tony Li
Posts: 22057
Joined: Thu Jul 18, 2013 1:27 pm

Re: Ink integration with VN Framework?

Post by Tony Li »

Hi,

Inspect the start scene's Visual Novel Menu Canvas GameObject. On the Save Helper component, click the circle next to Conversation so you can type the name of your ink story manually. Then type it into the text field. In the screenshot below, I typed "story":
inkVN1.png
inkVN1.png (22.61 KiB) Viewed 799 times
This should get your Ink conversation to start when you start a new game.

But there's currently an issue with saved games because of the way the Dialogue System runs Ink conversations. I'll try to have a fix by tomorrow so saved games work with the VN framework and Ink together.
Eldritch
Posts: 5
Joined: Sun Dec 09, 2018 12:36 am

Re: Ink integration with VN Framework?

Post by Eldritch »

Thank you!!
User avatar
Tony Li
Posts: 22057
Joined: Thu Jul 18, 2013 1:27 pm

Re: Ink integration with VN Framework?

Post by Tony Li »

Okay, you'll need to download these updates from the Dialogue System Extras page and import them into your project:
  • Visual Novel Framework 2.0.4
  • Ink Support
When importing the Visual Novel Framework update, you only need to import the updated scripts. Then select Edit > Project Settings > Player, and add this to Scripting Define Symbols:

Code: Select all

USE_INK
Remember to add a Dialogue System Ink Integration component to your Dialogue Manager, assign your story to it, and enter that story in the Visual Novel Menu Canvas's Conversation field.
Eldritch
Posts: 5
Joined: Sun Dec 09, 2018 12:36 am

Re: Ink integration with VN Framework?

Post by Eldritch »

Yay! It works great. Thank you so much!
Eldritch
Posts: 5
Joined: Sun Dec 09, 2018 12:36 am

Re: Ink integration with VN Framework?

Post by Eldritch »

Okay, after further messing around with it, seems there might be a problem:

If I save during a choice menu, then load the scene, the choice menu will disappear and seems to automatically choose the first choice. THEN, proceeding in the game, the next time a choice menu comes up, it is the choice menu that I just saved at but that didn't appear when I reloaded the game. This happens at every subsequent point in the story in which a choice menu is supposed to appear.

Now, if I save normally (before or after a menu), it will continue until the next choice menu, then the subtitles UI will disappear and I will get the error "Exception: choice out of range".

I downloaded the latest versions of both Ink Support and the VN Framework, followed the steps to add to database and Conversation/SaveHelper, and edited Player settings.
User avatar
Tony Li
Posts: 22057
Joined: Thu Jul 18, 2013 1:27 pm

Re: Ink integration with VN Framework?

Post by Tony Li »

Thanks for detailing the issue. I'll try to get it fixed by the end of the week. Since the Ink integration works completely differently from all other file format integrations, there are some gotchas like this that I need to work around.
User avatar
Tony Li
Posts: 22057
Joined: Thu Jul 18, 2013 1:27 pm

Re: Ink integration with VN Framework?

Post by Tony Li »

Okay, I believe everything is fixed. The fix is in the Ink integration package, which you can download from the Dialogue System Extras page or right here: <download>
Eldritch
Posts: 5
Joined: Sun Dec 09, 2018 12:36 am

Re: [SOLVED] Ink integration with VN Framework?

Post by Eldritch »

Thank you! It works great. :) So happy with this tool, thank you again.
User avatar
Tony Li
Posts: 22057
Joined: Thu Jul 18, 2013 1:27 pm

Re: [SOLVED] Ink integration with VN Framework?

Post by Tony Li »

Glad to help! Happy game-making! :-)
Post Reply