Cities: Skylines

Cities: Skylines

Hide TMPE crosswalks V3.2 [stable]
VNDK8R 29 Aug, 2020 @ 6:46pm
Error Report
A fair number of people reporting this error. Couldn't put the below into the Comments due to character limit.

Reported issue with this mod and Harmony. I'm using the Extended Error Reporting mod to get the additional information below.

(ModException: The Mod C:\Program Files (x86)\Steam\steamapps\workshop\content\255710\1934023593 [CitiesHarmony.API.dll, HideCrosswalks.dll] has caused an error ---> System.TypeLoadException: Could not load type 'HarmonyLib.Harmony' from assembly 'HideCrosswalks'.
at HideCrosswalks.LoadingExtension.OnCreated (ILoading loading) [0x00000] in <filename unknown>:0
at LoadingWrapper.OnLoadingExtensionsCreated () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---).

output_log.txt File[ufile.io]
RMCrosswalks.debug.log.txt File[ufile.io]
Screenshot

The error occurs on a load of a saved game. Crosswalks disabled in TMPE which were previously removed, now no longer hidden.

City was loaded directly from the 'Resume' option on the game launcher. Also presents after choosing the longer taking 'Play' from the Launcher and opening a save game method.

Mod does show in Content Manager in-game as enabled, but the options indicate as only being available in-game, meaning a new config file cannot be regenerated prior to launching the save.

I have checked Mod Compatibility checker's AutoRepair.log to confirm incompatible mods removed.

Attempted to unsub, remove folders and resub of both this and Harmony. Issue persisted.

Expect issue is related to the missing config file (which was not replaced with the resub, incidentally) mentioned in the RMCrosswalks debug file. Could obtaining a fresh config file resolve the issue? Is there a way one can be generated out of the game?
Last edited by VNDK8R; 29 Aug, 2020 @ 6:55pm
< >
Showing 1-5 of 5 comments
Chamëleon TBN  [developer] 15 Sep, 2020 @ 2:51am 
Where you able to solve this issue?
VNDK8R 15 Sep, 2020 @ 5:17pm 
Yes.

I used Duplicate Assembly Scanner (DAS) to determine that there were other mods using different versions of Harmony than that used by RM Crossings 3.0.


In my case, it was the Random Train Trailers 2.2.1 that was triggering the issue. Once I unsubbed this, the crosswalks and Tracks appeared as intended.

I still have a few different mods using older versions of Harmony (I have Harmony 2.0.1.0):
1.2.0.1 in most cases (32 mods)
1.0.3.0 for Network Skins 2
1.0.4.0 for RM Crossings 3.0 (this has changed from when my issue first appeared)
1.0.5.0 for RICO Revisited 2.3.3
1.5.0.1 for Picker 1.5

But the above seems to be playing well together so far (touch wood).

I also moved from the 'Stable' to the 'Labs' version of TMPE, as that was the correct dependency for RM Unconnected Tracks.



Last edited by VNDK8R; 15 Sep, 2020 @ 5:17pm
Chamëleon TBN  [developer] 16 Sep, 2020 @ 12:51am 
Good to know you solved it. On general if the error-message says: "Could not load type 'HarmonyLib.Harmony'":

unsub Harmony Mod
restart Steam
Go into game main menu
close game
resub Harmony mod
restart Steam
Go into game main menu
close game
restart game and play

I would say in 90% of the cases this solves the issue.
VNDK8R 16 Sep, 2020 @ 2:15am 
Thanks. Will try that in future.
Francis • LUL 22 May, 2021 @ 2:02am 
Originally posted by VNDK8R:
A fair number of people reporting this error. Couldn't put the below into the Comments due to character limit.

Reported issue with this mod and Harmony. I'm using the Extended Error Reporting mod to get the additional information below.

(ModException: The Mod C:\Program Files (x86)\Steam\steamapps\workshop\content\255710\1934023593 [CitiesHarmony.API.dll, HideCrosswalks.dll] has caused an error ---> System.TypeLoadException: Could not load type 'HarmonyLib.Harmony' from assembly 'HideCrosswalks'.
at HideCrosswalks.LoadingExtension.OnCreated (ILoading loading) [0x00000] in <filename unknown>:0
at LoadingWrapper.OnLoadingExtensionsCreated () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---).

output_log.txt File[ufile.io]
RMCrosswalks.debug.log.txt File[ufile.io]
Screenshot

The error occurs on a load of a saved game. Crosswalks disabled in TMPE which were previously removed, now no longer hidden.

City was loaded directly from the 'Resume' option on the game launcher. Also presents after choosing the longer taking 'Play' from the Launcher and opening a save game method.

Mod does show in Content Manager in-game as enabled, but the options indicate as only being available in-game, meaning a new config file cannot be regenerated prior to launching the save.

I have checked Mod Compatibility checker's AutoRepair.log to confirm incompatible mods removed.

Attempted to unsub, remove folders and resub of both this and Harmony. Issue persisted.

Expect issue is related to the missing config file (which was not replaced with the resub, incidentally) mentioned in the RMCrosswalks debug file. Could obtaining a fresh config file resolve the issue? Is there a way one can be generated out of the game?
System.Exception: A Mod caused an error ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
at PrefabCollection`1[NetInfo].GetPrefab (UInt32 index) [0x00000] in <filename unknown>:0
at NetSegment.get_Info () [0x00000] in <filename unknown>:0
at HideCrosswalks.Utils.PrefabUtils.CachePrefabs () [0x00000] in <filename unknown>:0
at HideCrosswalks.Patches.LoadingWrapperPatch.Postfix () [0x00000] in <filename unknown>:0
at HideCrosswalks.HideCrosswalksMod.OnEnabled () [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception+)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
at ColossalFramework.Plugins.PluginManager+PluginInfo.set_isEnabled (Boolean value) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
< >
Showing 1-5 of 5 comments
Per page: 1530 50