Forum rules - please read before posting.

Issue with scroll speech text + translation

I have this error message for every character of every line.

The translation is correctly handled, but I would like to get rid of these warning spam.

Cannot find translation for 'B' because the text has not been added to the Speech Manager.

 -> AC debug logger
UnityEngine.Debug:Log(Object, Object)
AC.ACDebug:Log(Object, Object) (at Assets/AdventureCreator/Scripts/Static/ACDebug.cs:16)
AC.RuntimeLanguages:GetTranslation(String, Int32, Int32) (at Assets/AdventureCreator/Scripts/Speech/RuntimeLanguages.cs:260)
AC.RuntimeLanguages:GetTranslation(String, Int32, Int32, AC_TextType) (at Assets/AdventureCreator/Scripts/Speech/RuntimeLanguages.cs:308)
AC.MenuElement:TranslateLabel(String, Int32) (at Assets/AdventureCreator/Scripts/Menu/Menu classes/MenuElement.cs:331)
AC.MenuLabel:AutoSize() (at Assets/AdventureCreator/Scripts/Menu/Menu classes/MenuLabel.cs:690)
AC.MenuElement:RecalculateSize(MenuSource) (at Assets/AdventureCreator/Scripts/Menu/Menu classes/MenuElement.cs:993)
AC.Menu:ResetVisibleElements() (at Assets/AdventureCreator/Scripts/Menu/Menu classes/Menu.cs:1463)
AC.Menu:Recalculate() (at Assets/AdventureCreator/Scripts/Menu/Menu classes/Menu.cs:1509)
AC.MenuLabel:UpdateLabelText(Int32) (at Assets/AdventureCreator/Scripts/Menu/Menu classes/MenuLabel.cs:556)
AC.MenuLabel:PreDisplay(Int32, Int32, Boolean) (at Assets/AdventureCreator/Scripts/Menu/Menu classes/MenuLabel.cs:368)
AC.PlayerMenus:UpdateElements(Menu, Int32, Boolean) (at Assets/AdventureCreator/Scripts/Controls/PlayerMenus.cs:1488)
AC.PlayerMenus:UpdateMenu(Menu, Int32, Boolean, Boolean) (at Assets/AdventureCreator/Scripts/Controls/PlayerMenus.cs:1448)
AC.PlayerMenus:UpdateAllMenus() (at Assets/AdventureCreator/Scripts/Controls/PlayerMenus.cs:2043)
AC.StateHandler:Update() (at Assets/AdventureCreator/Scripts/Game engine/StateHandler.cs:217)

Comments

  • Here is my speech settings

  • Welcome to the community, @Ze_PilOt.

    This is a bug related to the menu system, rather than any setting in your Speech Manager.

    A fix will be included in the next release, but in the meantime you can resolve it by opening MenuLabel.cs, and replacing line 690:

    GUIContent content = new GUIContent (TranslateLabel (_newLabel, languageNumber));
    

    with:

    GUIContent content = new GUIContent (_newLabel);
    
  • edited April 2020

    Thanks a lot !
    Tested, fix is working !

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.