Localization errors after b42 update.

Number of mods are having errors due to localization. Mods haven't changed so I'm assuming there is something broken.

2022-04-27T23:20:55 0.680 ERR [MODS] Failed loading localization from mod: Example Mod Name
2022-04-27T23:20:55 0.688 EXC Value cannot be null.
Parameter name: key
Parameter name: key
at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x00008] in <695d1cc93cca45069c528c15c9fdd749>:0
at System.Collections.Generic.Dictionary`2[TKey,TValue].set_Item (TKey key, TValue value) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
at Localization.UpdateLanguages () [0x0003d] in <d4ada918396a4fec85e8744f879cad41>:0
at Localization.LoadPatchDictionaries (System.String _modName, System.String _folder, System.Boolean _loadingInGame) [0x00043] in <d4ada918396a4fec85e8744f879cad41>:0
at ModManager+<LoadLocalizations>d__16.MoveNext () [0x0005c] in <d4ada918396a4fec85e8744f879cad41>:0
UnityEngine.StackTraceUtility:ExtractStringFromException(Object)
Log:Exception(Exception)
<LoadLocalizations>d__16:MoveNext()
ThreadManager:RunCoroutineSync(IEnumerator)
ThreadManager:RunCoroutineSync(IEnumerator)
GameManager:Awake()




Many of these mods don't even use localization, so I don't believe it is an issue with the mods. Happening on different computers and a dedicated server; can no longer join dedicated server.

 
Have you added to the dedicated server:

<property name="Region"  value="NorthAmericaEast" /><property name="Language" value="English" />

 
This issue is resolved.

For anyone else encountering this issue, the problem was not with all the mods, but a single offending mod where the Localization.txt file did not have the header which then caused every other mod to encounter errors.

 
Last edited by a moderator:
Back
Top