Cities: Skylines

Cities: Skylines

Specialized Industry Fix Redux
 此主题已被置顶,因此可能具有重要性
Vectorial1024  [开发者] 2018 年 11 月 15 日 上午 5:11
Unexpected Incompability with Klyte Commons
Whenever the game unloads a level, if Klyte Commons is activated along with this Mod, an InvalidCastException is thrown.

The log would look something like this:
The Mod * [SpecializedIndustryFixRedux.dll] has caused an error [ModException] Details: System.InvalidCastException: Cannot cast from source type to destination type. at Harmony.PatchInfoSerialization.Deserialize (System.Byte[] bytes) [0x00000] in <filename unknown>:0 at Harmony.HarmonySharedState.GetPatchInfo (System.Reflection.MethodBase method) [0x00000] in <filename unknown>:0 at Harmony.PatchProcessor.GetPatchInfo (System.Reflection.MethodBase method) [0x00000] in <filename unknown>:0 at Harmony.HarmonyInstance.GetPatchInfo (System.Reflection.MethodBase method) [0x00000] in <filename unknown>:0 at Harmony.HarmonyInstance.UnpatchAll (System.String harmonyID) [0x00000] in <filename unknown>:0 at SpecializedIndustryFixRedux.PatchController.Deactivate () [0x00000] in <filename unknown>:0 at SpecializedIndustryFixRedux.SpecializedIndustryFixRedux.OnLevelUnloading () [0x00000] in <filename unknown>:0 at LoadingWrapper.OnLevelUnloading () [0x00000] in <filename unknown>:0

The cause of this error is unknown. To be honest I am not even expecting any incompatibility report since this mod is very lightweight.

Thanks to @UguuDoki and @André for reporting this.

EDIT:

I left a comment in Klyte Common's Steam page about this issue, and it seems that Klyte Commons has still not updated. For now, you have two options:
  • Unsubscribe from this mod; or
  • Unsubscribe from Klyte Commons, and their associated mods
This is caused by our mods having different versions of a crucial library. Klyte Commons is using an older version; no way I'm gonna downgrade my version of the library being used.
最后由 Vectorial1024 编辑于; 2018 年 12 月 22 日 下午 8:41