Localization Speaker Name problem

Announcements, support questions, and discussion for the Dialogue System.
User avatar
gaelgamesdev
Posts: 16
Joined: Wed Jan 19, 2022 11:17 am

Localization Speaker Name problem

Post by gaelgamesdev »

Hello!

I have set up Unity's Localization package with DS and it seems to be working fine for the most part.

But I'm running into a problem where the Speaker Name uses the column from the previous language. EX:

I have

En
Name

Es
Nombre

Ja
名前


When the language is set to En, it will show nothing (because there's no previous column)
When the language is set to Es, it will show "Name"
When the language is set to Ja, it will show "Nombre".

Any ideas on what might be causing this issue?

The speaker name and subtitle text are set up in the exact same way and the subtitle text works correctly.

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

Re: Localization Speaker Name problem

Post by Tony Li »

Hi,

The Dialogue System Extras page has an updated integration package for Unity's Localization Package. If you download and import the updated package, it should fix the issue.
User avatar
gaelgamesdev
Posts: 16
Joined: Wed Jan 19, 2022 11:17 am

Re: Localization Speaker Name problem

Post by gaelgamesdev »

Hello,

Thank you for your reply.

I am already using the latest version (DS_LocalizationPackageSupport_2022-10-09), but the issue persists.

Is there anything I can change to fix it?

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

Re: Localization Speaker Name problem

Post by Tony Li »

Would you please send a reproduction project to tony (at) pixelcrushers.com?
User avatar
gaelgamesdev
Posts: 16
Joined: Wed Jan 19, 2022 11:17 am

Re: Localization Speaker Name problem

Post by gaelgamesdev »

I am so sorry, but I cannot share this project.
User avatar
Tony Li
Posts: 21962
Joined: Thu Jul 18, 2013 1:27 pm

Re: Localization Speaker Name problem

Post by Tony Li »

I fixed an issue. The updated Localization Package integration is on the Dialogue System Extras page. It should fix the name problem.
User avatar
gaelgamesdev
Posts: 16
Joined: Wed Jan 19, 2022 11:17 am

Re: Localization Speaker Name problem

Post by gaelgamesdev »

The latest version seems to have fixed the issue! thank you very much! :D
User avatar
Tony Li
Posts: 21962
Joined: Thu Jul 18, 2013 1:27 pm

Re: Localization Speaker Name problem

Post by Tony Li »

Glad to help!
User avatar
gaelgamesdev
Posts: 16
Joined: Wed Jan 19, 2022 11:17 am

Re: Localization Speaker Name problem

Post by gaelgamesdev »

Hello!

Just a head up! Even though things seem to be working, I'm getting this null error when I update the localization table from Unity's Localization package.

Code: Select all

NullReferenceException: Object reference not set to an instance of an object
PixelCrushers.DialogueSystem.DialogueSystemController.get_masterDatabase () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Manager/DialogueSystemController.cs:199)
PixelCrushers.DialogueSystem.DialogueManager.get_masterDatabase () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Manager/DialogueManager.cs:63)
PixelCrushers.DialogueSystem.LocalizationPackageSupport.DialogueSystemLocalizationPackageBridge.UpdateActorDisplayNames () (at Assets/Pixel Crushers/Dialogue System/Third Party Support/Localization Package Support/Scripts/DialogueSystemLocalizationPackageBridge.cs:57)
PixelCrushers.DialogueSystem.LocalizationPackageSupport.DialogueSystemLocalizationPackageBridge.OnSelectedLocaleChanged (UnityEngine.Localization.Locale obj) (at Assets/Pixel Crushers/Dialogue System/Third Party Support/Localization Package Support/Scripts/DialogueSystemLocalizationPackageBridge.cs:49)
UnityEngine.Localization.Settings.LocalizationSettings.InvokeSelectedLocaleChanged (UnityEngine.Localization.Locale locale) (at Library/PackageCache/com.unity.localization@1.4.2/Runtime/Settings/LocalizationSettings.cs:456)
UnityEditor.EditorApplication:Internal_CallDelayFunctions()
I'll leave it here in case you need to have a look at it.

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

Re: Localization Speaker Name problem

Post by Tony Li »

Hi,

Please try this patch:

DS_LocalizationPackageSupport_2022-11-11.unitypackage

You may need to restart the Unity editor once after importing the patch.
Post Reply