Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug localization asset keeps breaking after update to 1.3.2

Discussion in 'Localization Tools' started by RZGames_Jethro, Jun 6, 2023.

  1. RZGames_Jethro

    RZGames_Jethro

    Joined:
    Jul 6, 2017
    Posts:
    87
    after updating from 0.8 to 1.3.2 our localization String Table Collection broke
    upload_2023-6-6_9-52-11.png

    All tables got this, the only error in the console is:
    Code (CSharp):
    1. ArgumentNullException: Value cannot be null.
    2. Parameter name: table
    3. UnityEditor.Localization.LocalizationTableCollection.RemoveTable (UnityEngine.Localization.Tables.LocalizationTable table, System.Boolean createUndo, System.Boolean postEvent) (at ./Library/PackageCache/com.unity.localization@1.3.2/Editor/Settings/LocalizationTableCollection.cs:323)
    4. UnityEditor.Localization.UI.LocalizationTableCollectionEditor.OnInspectorGUI () (at ./Library/PackageCache/com.unity.localization@1.3.2/Editor/UI/Tables/LocalizationTableCollectionEditor.cs:134)
    5. UnityEditor.UIElements.InspectorElement+<>c__DisplayClass72_0.<CreateInspectorElementUsingIMGUI>b__0 () (at <46e1bf9196684231bfdf718689da7102>:0)
    6. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
    upload_2023-6-6_9-53-41.png

    Recreating everything works for one session, but after restarting Unity we go back to the broken state.
    And if that isn't bad enough, all Localize string event lost their data by recreating all tables
    upload_2023-6-6_9-56-43.png
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,820
    A lot has changed since 0.8 although I would still expect it to work with a little upgrading.

    You may want to enable legacy support (unless you are happy for the default addressable groups to change) https://docs.unity3d.com/Packages/com.unity.localization@1.4/manual/Addressables.html#legacy-support

    Try running the analyzer tools, they will upgrade the assets for you https://docs.unity3d.com/Packages/c...anual/Addressables.html#addressable-analyzers

    Whilst upgrading it would also be worth going to 1.4.3 which is our latest version. If its not visible in the package manager then you can upgrade by editing the manifest.json file in the Packages folder.
     
  3. RZGames_Jethro

    RZGames_Jethro

    Joined:
    Jul 6, 2017
    Posts:
    87
    Hey Karl, Thanks for the reply.
    running the analyzer runs no issues, while there obviously are. Will try upgrading to 1.4.3.
     
  4. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,820
    Are you able to share the project? I suspect that 1.4.3 won't fix these issues. Did you lose any files, such as the string table meta files or addressables files?
     
  5. RZGames_Jethro

    RZGames_Jethro

    Joined:
    Jul 6, 2017
    Posts:
    87
    yes i deleted all localization related assets and recreated everything from scratch to try and fix the collection table breaking. I guess that was the cause of all the key being reset. Luckily we could revert to a working svn revision before the update, so i reverted all localization assets back to before the update and kept the update, now it seems to work again.
     
    karl_jones likes this.
  6. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,820
    You may need to run the analyzers just to make sure theres no further issues.
     
    RZGames_Jethro likes this.