Duplicate Assembly Scanner (DAS)

If you liked this item, please rate it up on Steam Workshop page.

Author: aubergine18

Last revision: 7 Mar, 2020 at 20:19 UTC

File size: 20.48 KB

On Steam Workshop

Description:

Only use this if you are getting weird game bugs. The tool is primarily designed for modders and support team, but you might find it useful too. A duplicate assembly is not always a problem so don’t jump to conclusions.

Scans for duplicate assemblies, which can cause bugs.

Mods are packaged in to things called assemblies. If two mods have assemblies with the same name, strange things happen because the game struggles to differentiate them.

Some common side-effects of duplicate assemblies include:

  • TM:PE failing to load its settings
  • Fine Road Tool/Anarchy mods not working
  • Game "stuck" after loading (can’t unpase, etc)

The only way to remove duplicate assemblies is to unsubscribe mods that contain them and then exit to desktop to flush the assemblies from RAM.

How to use

Subscribe the mod and enable it from Main Menu > Content Manager > Mods (look for "DAS" mod).

When the mod is activted, or when the game loads, it will scan for duplicates. You can view a brief summary of duplicates in the mod’s options screen (Options > Mod Settings > DAS).

It also logs detailed information to a `DuplicateAssemblyScanner.log` text file, listing which of your subscribed mods the assemblies are from.

Location of log file: C:Program Files (x86)SteamsteamappscommonCities_SkylinesCities_Data

0Harmony duplicates

There will usually be duplicates of something called "0Harmony" – it’s a library that lots of mods use to work their magic. Normally this isn’t a problem, but sometimes it can be – especially if there are both 1.x and 2.x versions, as they are not compatible. You can read this r/RimWorld post for more information (similar situation exists with C:SL mods).

There is currently some discussion in the modding community how to resolve these issues but until we work that out you’ll likely encounter some bugs if you find 1.x and 2.x running at the same time. If you want to participate, post details of your harmony duplicates in this github issue[github.com].

Credits

Props to dymanoid, kryzychu1245, boformer and everyone else who helped me get this mod working.

source code[github.com]

[ko-fi.com]