Dialogue Text from i2Loc not working

Announcements, support questions, and discussion for the Dialogue System.
GarlandChaos
Posts: 18
Joined: Wed Aug 14, 2024 3:06 pm

Dialogue Text from i2Loc not working

Post by GarlandChaos »

Hi!
I'm trying to find the best workflow for my team to get i2 localization sheets and pass it to the dialogue system.
I'm using the DS to l2 window, but for some reason the dialogue nodes are not being filled with the terms content.
i2 asset has two languages: English and Portuguese (Brazil), with en and pt-BR codes respectively.
Also note that I want the primary field (Dialogue Text) to be filled with i2 english language, so I ticked the "Update Primary Fields" checkbox and filled "From Language" with "en".
Here are some screenshots to help:
dstoi2.png
dstoi2.png (56.91 KiB) Viewed 130 times
language_source_asset.png
language_source_asset.png (82.61 KiB) Viewed 130 times
dialogue_entry.png
dialogue_entry.png (22.45 KiB) Viewed 130 times
User avatar
Tony Li
Posts: 22037
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue Text from i2Loc not working

Post by Tony Li »

Hi,

What happens when you click the DS To I2 window's "From I2" button? Does it fill in dialogue entry 1 with the translations you show in the screenshot? If not, are there any errors or warnings in the Console window?
GarlandChaos
Posts: 18
Joined: Wed Aug 14, 2024 3:06 pm

Re: Dialogue Text from i2Loc not working

Post by GarlandChaos »

Nothing happens when I click the "From I2" button unfortunately.
The Verbose setting is set to "Detailed" and shows just this message:
console_message.png
console_message.png (45.54 KiB) Viewed 114 times
User avatar
Tony Li
Posts: 22037
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue Text from i2Loc not working

Post by Tony Li »

Hi,

Is the correct dialogue database still assigned to the DS To I2 window?

Is the DialogueEntries > Dialogue Text checkbox still ticked?

Are the options at the bottom (Fields Use, Custom Field For Entries, etc.) still the same as when you clicked "To I2"?

Make sure the Console window isn't hiding warnings or errors.

You should see something like:

Dialogue System: Conversation/New Conversation 1/Entry/1/NPC en = (English version)
Dialogue System: Conversation/New Conversation 1/Entry/1/NPC PT-br = (Portuguese version)
(repeat above for all entries)
...
Copied terms from I2Languages to Dialogue System.
GarlandChaos
Posts: 18
Joined: Wed Aug 14, 2024 3:06 pm

Re: Dialogue Text from i2Loc not working

Post by GarlandChaos »

The database is correct, I only use one at the moment.
The DialogueEntries>Dialogue Text checkbox is ticked.
The options at the bottom are the same when I clicked "To I2".
I forgot to click to show warnings in my console window indeed, by enabling again it said there were no terms for two dialogue entries. I proceeded to create manually in I2 those two terms and by doing this, only these 2 terms were used to fill the dialogue entries.
Here is the console log after doing this:
console_message_2.png
console_message_2.png (39.54 KiB) Viewed 109 times
There are no errors or warnings aside from this.
User avatar
Tony Li
Posts: 22037
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue Text from i2Loc not working

Post by Tony Li »

After clicking "To I2", did you change any of the values in the section below?

dsToi2.png
dsToi2.png (66.37 KiB) Viewed 103 times

If so, then the integration will look for different terms than what is in your i2 assets file.

As a test:
  • Back up your database and i2 assets files (e.g., in version control).
  • Click "Clear I2" to remove all Dialogue System terms from your i2 asset.
  • Click "To I2" to create new terms in your i2 asset.
  • Translate a few of these terms in i2.
  • Click "From I2" to copy those back from i2 to the dialogue database. Confirm that this works.
GarlandChaos
Posts: 18
Joined: Wed Aug 14, 2024 3:06 pm

Re: Dialogue Text from i2Loc not working

Post by GarlandChaos »

Yes, I did change after clicking "To I2" the settings "Assets Use" to "Name" and "Extra Entry Info" to "Actor" as a test, however I reverted to "ID" and "None" later when trying to get data from I2 asset, which currently has terms in the form "Dialogue System/Conversation/1/Entry/1".
I did the test you requested, it only creates terms in I2 if the Dialogue Text is not empty on a dialogue entry, is there a way to create the term regardless if it's empty? If I fill the dialogue entry's Dialogue Text, it creates the term, then if I fill in I2, it correctly fill the dialogue entry when clicking "From I2".
User avatar
Tony Li
Posts: 22037
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue Text from i2Loc not working

Post by Tony Li »

"To I2" is designed to only copy dialogue entries that have Dialogue Text. Try this patch:

DS_i2Patch_2024-10-16.unitypackage

It has a new checkbox that will copy empty entries to i2 also.
GarlandChaos
Posts: 18
Joined: Wed Aug 14, 2024 3:06 pm

Re: Dialogue Text from i2Loc not working

Post by GarlandChaos »

That's a very useful patch, thank you very much!
Now when I tick this new checkbox, the terms are created in I2 regardless if the Dialogue Text field is empty or not, that's good :D

However, I still have problems to pass data from I1 to the dialogue system.
Here's what I did with the new checkbox ticked:
1) I changed the "Assets Use" setting to "Name"
2) I changed the "Extra Entry Info" to "Actor"
3) I clicked the "Clear I2" button;
4) I clicked the "To I2" button;
5) With the terms created in I2, I exported the spreadsheet and edited the terms with localized text for english and pt-BR
6) I imported the spreadsheet again. The localization is updated correctly in the I2 Unity editor window.
7) I clicked the "From I2" button. The dialogue entries are not updated.
User avatar
Tony Li
Posts: 22037
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue Text from i2Loc not working

Post by Tony Li »

GarlandChaos wrote: Wed Oct 16, 2024 1:09 pm7) I clicked the "From I2" button. The dialogue entries are not updated.
What logs are in the Console window?
Post Reply