drok / Harmony-CitiesSkylines

Harmony 2.x assembly provider mod for Cities: Skylines
Other
13 stars 3 forks source link

Report shows all workshop items as numbers #2

Closed drok closed 3 years ago

drok commented 3 years ago

When subscribed from the workshop, all items on the Harmony Report are shown as item numbers, not name and description.

This appears to happen because the report is generated when the mod receives the OnDisabled() event. When freshly subscribed, the Harmony event is the very last on the list of plugins. It is OnEnabled() last, and OnDisabled() last also. At the time it's disabled, all other mods have been unloaded, and their name and description is no longer available.

The name and description should be captured and cached when all mods have loaded.

This problem does not happen in local mode (as the mod is installed and removed before any workshop mod is unloaded)

drok commented 3 years ago

Fixed in 5267bd4 Verified by OR