Forum rules - please read before posting.

[Bug] Text that's marked untranslatable throws debug log for no translation found

edited February 2020 in Engine development

Code location public function GetName of Hotspot.cs around line 932

Edit:
It seems not just hotspot name is affected, but every line that is required for PlayerInteraction.UpdateInteractionLabel

Comments

  • Can you share the exact Debug Log statement?

    Is a non-original language currently set, and what text is marked untranslatable?

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

    This is for the hotspot prefix:
    -> 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.RuntimeInventory:GetHotspotPrefixLabel(InvItem, String, Int32, Boolean) (at Assets/AdventureCreator/Scripts/Inventory/RuntimeInventory.cs:718)
    AC.PlayerInteraction:GetLabelPrefix(Hotspot, InvItem, Int32, Int32) (at Assets/AdventureCreator/Scripts/Controls/PlayerInteraction.cs:1526)
    AC.Hotspot:GetFullLabel(Int32, Int32) (at Assets/AdventureCreator/Scripts/Logic/Hotspot.cs:398)
    AC.PlayerInteraction:GetInteractionLabel(Int32) (at Assets/AdventureCreator/Scripts/Controls/PlayerInteraction.cs:2363)
    AC.PlayerInteraction:UpdateInteractionLabel() (at Assets/AdventureCreator/Scripts/Controls/PlayerInteraction.cs:145)
    AC.StateHandler:Update() (at Assets/AdventureCreator/Scripts/Game engine/StateHandler.cs:142)

    This is for inventory item names:
    -> 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.InvItem:GetLabel(Int32) (at Assets/AdventureCreator/Scripts/Inventory/InvItem.cs:284)
    AC.PlayerInteraction:GetLabelPrefix(Hotspot, InvItem, Int32, Int32) (at Assets/AdventureCreator/Scripts/Controls/PlayerInteraction.cs:1526)
    AC.Hotspot:GetFullLabel(Int32, Int32) (at Assets/AdventureCreator/Scripts/Logic/Hotspot.cs:398)
    AC.PlayerInteraction:GetInteractionLabel(Int32) (at Assets/AdventureCreator/Scripts/Controls/PlayerInteraction.cs:2363)
    AC.PlayerInteraction:UpdateInteractionLabel() (at Assets/AdventureCreator/Scripts/Controls/PlayerInteraction.cs:145)
    AC.StateHandler:Update() (at Assets/AdventureCreator/Scripts/Game engine/StateHandler.cs:142)

    This is for hotspot names:
    -> 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.Hotspot:GetName(Int32) (at Assets/AdventureCreator/Scripts/Logic/Hotspot.cs:934)
    AC.Hotspot:GetFullLabel(Int32, Int32) (at Assets/AdventureCreator/Scripts/Logic/Hotspot.cs:398)
    AC.PlayerInteraction:GetInteractionLabel(Int32) (at Assets/AdventureCreator/Scripts/Controls/PlayerInteraction.cs:2363)
    AC.PlayerInteraction:UpdateInteractionLabel() (at Assets/AdventureCreator/Scripts/Controls/PlayerInteraction.cs:145)
    AC.StateHandler:Update() (at Assets/AdventureCreator/Scripts/Game engine/StateHandler.cs:142)

    Link to my non-translatables setup: https://imgur.com/a/efmH1bn

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.