3rd Party Arcweave - Dialogue entry localization

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
VironGameDev
Posts: 7
Joined: Wed Mar 15, 2023 5:42 am

3rd Party Arcweave - Dialogue entry localization

Post by VironGameDev »

Hi. I use the Dialogue System for some time already and I want to move the conversations to Arcweave to work with multiple people on the dialogues. I have a question regarding the localization.

I have a "de" field in the dialogue entry in Unity for the german translation. Until now I set it in Unity which works as expected.
Unity.png
Unity.png (23.86 KiB) Viewed 1325 times
Now I was hoping to set a property in Arcweave with the same identifier and it will be imported for the entry. Sadly this does not work.
Arcweave.png
Arcweave.png (250.53 KiB) Viewed 1325 times
Any idea how to I can transfer a property I set in Arcweave to Unity to do the localization with the Dialogue System? Or any workaround how to get fields I set in Arcweave into the Dialogue Entry?
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: 3rd Party Arcweave - Dialogue entry localization

Post by Tony Li »

Hi,

I'll add support for custom fields in dialogue entry elements in the next update.

Alternatively, you can use the Dialogue System's localization. This might be more manageable since you can separate the languages into CSV files that you can send to translators. Use the Guid field to associate lines in the CSV file with elements in your Arcweave project:

localizeArcweave.png
localizeArcweave.png (47.12 KiB) Viewed 1311 times
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: 3rd Party Arcweave - Dialogue entry localization

Post by Tony Li »

This patch (which will be in DS version 2.2.43) adds an "Import Dialogue Attributes" checkbox to the Arcweave Import window. You can also specify a database template XML file, which allows you to specify that the "de" field's type is Localization. Create the "de" field in the Dialogue Editor's Templates section > Dialogue Entry Template, set its type to Localization, and save the template as an XML file.

DS_ArcweavePatch_2024-01-25.unitypackage

However, you may still want to consider the other workflow I suggested in my reply above.
VironGameDev
Posts: 7
Joined: Wed Mar 15, 2023 5:42 am

Re: 3rd Party Arcweave - Dialogue entry localization

Post by VironGameDev »

Update: Works like a charm, thanks again!

Hi Tony. Thanks a lot! I will check out your suggested workflow and the patch.
Last edited by VironGameDev on Fri Jan 26, 2024 2:39 am, edited 1 time in total.
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: 3rd Party Arcweave - Dialogue entry localization

Post by Tony Li »

Glad to help!
VironGameDev
Posts: 7
Joined: Wed Mar 15, 2023 5:42 am

Re: 3rd Party Arcweave - Dialogue entry localization

Post by VironGameDev »

Not sure if it belongs here, but I try to also import the "Conditions" field the same way (declaring it as a string attribute in Arcweave, see picture) to import it into the Dialogue Database.
Arcweave_Condition.png
Arcweave_Condition.png (54.5 KiB) Viewed 1066 times
Sadly it will not show up in Unity. Did I forget something or did I do something wrong? Or is there another way to bring these conditions from Arcweave to Unity? (I assume a workaround could be build by using a lot of variables in Arcweave and check them in Unity, but it feels not right with the great quest system of the Dialogue System).
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: 3rd Party Arcweave - Dialogue entry localization

Post by Tony Li »

Hi,

The Dialogue System's importer strives to work as natively with Arcweave as possible. To set up conditions in Arcweave, use Branches.

You can also conditionally include text using conditional Arcscript statements.

If you use pure Arcscript in conditions and branches, Arcweave won't complain. You can also use Dialogue System-specific functions such as CurrentQuestState(). In these cases, Arcweave will warn you that it's not valid Arcscript, but it will import fine into the Dialogue System.

Arcweave doesn't have a concept of quests, but you can set up quests in Arcweave as described here.
VironGameDev
Posts: 7
Joined: Wed Mar 15, 2023 5:42 am

Re: 3rd Party Arcweave - Dialogue entry localization

Post by VironGameDev »

Thank you again, I managed to implement it! I'm quite impressed how this ties together nicely, it helps me a lot! Thank you for taking the time to read and respond.

I have one more thing I try to implement, maybe you have an idea.

I want to have an actor multiple portraits to show different reaction. I know how to do this just working in Unity, but in Arcweave I can just set one cover image. My assumption is that I need multiple actors in Arcweave with the individual covers and set them depending on what image I want to show in the dialogue entry. Am I correct? If, any idea how to do this with the "Player" actor which should be unique?
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: 3rd Party Arcweave - Dialogue entry localization

Post by Tony Li »

I'll ask the Arcweave team if they can add an option for multiple cover images.

In the meantime, what would you think of adding custom fields to the actor component with the names "Portrait 1", "Portrait 2", etc., containing the filenames of the alternate portrait images, like this:

crusader.png
crusader.png (210.29 KiB) Viewed 987 times

The importer can then look for the corresponding files in the Unity project and add them to the actor.
VironGameDev
Posts: 7
Joined: Wed Mar 15, 2023 5:42 am

Re: 3rd Party Arcweave - Dialogue entry localization

Post by VironGameDev »

This is an excellent idea, I really like it.

Thank you for putting in the effort and your support!
Post Reply