Yarn 1.2.7

Announcements, support questions, and discussion for the Dialogue System.
User avatar
Tony Li
Posts: 21050
Joined: Thu Jul 18, 2013 1:27 pm

Re: Yarn 1.2.7

Post by Tony Li »

Hi,

Please use this patch:

DS_YarnPatch_2022-10-14.unitypackage

It should fix all issues, at least by the unit tests we've set up.

You should be able do this:

Code: Select all

<<seq LookAt(Car, Zane) >>
and this:

Code: Select all

<<alert "Hit 'Q' to open and close your MP3 player">>
and run lines should all have Continue() in the Sequence field.

For this Yarn line:

Code: Select all

Thought: I'm SO close, just ${$carFundLeft} to go - a few gigs should do it.
change it to:

Code: Select all

Thought: I'm SO close, just {$carFundLeft} to go - a few gigs should do it.
(Only one $)

The corresponding dialogue entry in the dialogue database should look like:

Code: Select all

Thought: I'm SO close, just {0} to go - a few gigs should do it.
As long as your Yarn custom commands script is on the Dialogue Manager GameObject, the {0} should be replaced by the correct runtime value at runtime.
gblekkenhorst
Posts: 78
Joined: Wed Jun 24, 2020 5:06 pm

Re: Yarn 1.2.7

Post by gblekkenhorst »

This all worked beautifully! Thank you!

I am starting a second project in DS with Yarn, and I've discovered that the Yarn Importer doesn't save the info from Project 2, it brings in the info from Project 1 if that was the last project with the window open.
User avatar
Tony Li
Posts: 21050
Joined: Thu Jul 18, 2013 1:27 pm

Re: Yarn 1.2.7

Post by Tony Li »

Good point. Currently the Yarn importer saves its settings in Unity's EditorPrefs, which is shared across projects. In the next update, I'll change it so you can save prefs to a JSON file like the Arcweave and Aurora importers.
gblekkenhorst
Posts: 78
Joined: Wed Jun 24, 2020 5:06 pm

Re: Yarn 1.2.7

Post by gblekkenhorst »

Hi there, has there been any update on this? I'm getting deeper into the second project and reassigning all of the yarn import variables is a drag switching between projects a few times a week.

Thanks!
User avatar
Tony Li
Posts: 21050
Joined: Thu Jul 18, 2013 1:27 pm

Re: Yarn 1.2.7

Post by Tony Li »

Hi,

This is in version 2.2.38, which should be available early next week depending on how the submission queue goes.

Are you using Yarn 1.x or 2.x? It's currently implemented for the Yarn 2.x window, but not the 1.x window. I can backport it to the 1.x window if you're still using Yarn 1.x.
gblekkenhorst
Posts: 78
Joined: Wed Jun 24, 2020 5:06 pm

Re: Yarn 1.2.7

Post by gblekkenhorst »

One project is Yarn 1, not a good idea to update at this point. The other project is currently Yarn 1 but could be updated - i tried to update to 2 earlier but it caused a big cascade of errors and I reverted. So long as the Yarn 1 and Yarn 2 imports don't overwrite each other and I can update to Yarn 2 on the newer project, that should be fine.
User avatar
Tony Li
Posts: 21050
Joined: Thu Jul 18, 2013 1:27 pm

Re: Yarn 1.2.7

Post by Tony Li »

I can backport it to 1.x pretty quickly. Both should be in 2.2.38.
gblekkenhorst
Posts: 78
Joined: Wed Jun 24, 2020 5:06 pm

Re: Yarn 1.2.7

Post by gblekkenhorst »

Awesome, thanks!
User avatar
Tony Li
Posts: 21050
Joined: Thu Jul 18, 2013 1:27 pm

Re: Yarn 1.2.7

Post by Tony Li »

This patch has the backport for Yarn 1 and the file for Yarn 2:

DS_YarnImportWindowPatch_2023-06-02.unitypackage
Post Reply