Cities: Skylines

Cities: Skylines

110 ratings
Duplicate Assembly Scanner (DAS)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
20.461 KB
3 Mar, 2020 @ 7:42pm
7 Mar, 2020 @ 1:19pm
3 Change Notes ( view )

Subscribe to download
Duplicate Assembly Scanner (DAS)

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)\Steam\steamapps\common\Cities_Skylines\Cities_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]
14 Comments
the zingler 12 Sep, 2023 @ 11:03am 
installed it and activated but it still didnt fix the problem stated
UnirevoraED 10 Mar, 2020 @ 5:27pm 
我也不知道有什么用啊
leftbehind  [author] 8 Mar, 2020 @ 10:39am 
AVO 1.9.0 is the next version, still in development (fixing some bugs).
MJB 8 Mar, 2020 @ 9:31am 
@aubergine18 Where did you find AVO V1.9.0 on the workshop? The latest version I have is V1.8.5
leftbehind  [author] 7 Mar, 2020 @ 1:26pm 
Version 1.2.0 released - major update with much better reporting in both the log file and also the mod settings screen. Now also scans for unloaded `0Harmony` assemblies to provide comprehensive overview of what versions mods are using.
QCAlex 5 Mar, 2020 @ 6:50am 
Thanks aubergine! Fortunatly for me, I just started a new map and I don't have the stuck on pause bug at startup. I removed garbage bin because it was the oldest I have and I don't really use it. I'll keep in mind what you've said about network skin 2 if I have any problem in the future. Lets hope that mod maker will update their mod but I won't count on this.
Chamëleon TBN 5 Mar, 2020 @ 6:02am 
@aubergine18 don't know if this works for others also: I tested it now round about 30 times with different configurations. I can start without any problems if it tick the option 'Try to recover from Simulation Errors' in Loding Screen Mod [Test] before I load a savegame.
leftbehind  [author] 4 Mar, 2020 @ 8:39am 
@QCAlex: The 1.x harmony versions are generally compatible with each other, but the 2.x version is not compatible with 1.x. If you are getting weird errors in-game try disabling Network Skins to see if that resolves them.
QCAlex 4 Mar, 2020 @ 5:47am 
1 Problem Found;
[Info] @ 21599189 | Scanning app domain assemblies for duplicates...
[Info] @ 21609533 | # Duplicate '0Harmony' assembly exists in mods:
[Info] @ 21614344 | - v1.2.0.2 /1562650024 'Rebalanced Industries'
[Info] @ 21616730 | - v1.1.0.0 /870291141 'Random Train Trailers 2.1.2'
[Info] @ 21619206 | - v2.0.0.0 /1758376843 'Network Skins 2 Beta'
[Info] @ 21621883 | - v1.0.9.1 /1386697922 'Garbage Bin Controller'
[Info] @ 21625032 | - v1.2.0.1 /1567569285 'Achieve It!'
[Info] @ 21630958 | 1 problem(s) found.
[Info] @ 231943361 | Disabled

The first 3 mods in that list are a must have... do I have to remove them to fix the problem?
Sometime after loading a map, I can't press play for like 30sec. Ive found out that pressing x2 or x3 gamespeed icon make the simulation starts faster.
leftbehind  [author] 4 Mar, 2020 @ 5:01am 
@malepilot: The radio buttons don't do anything at the moment, in next versions I will make them read-only (so they can't be toggled).

The game runs in Unity, which in turn runs in Mono Framework. There's an issue with Mono Framework that it's not possible to remove assemblies without exiting to desktop, so no mod or even the game or even Unity can fix that.

The mod is just designed to scan and report on issues, but to fix them lots of mods are going to need updating and modders (who generally have very little time available) are currently pondering how to do that.

@Chamëleon: Good idea, I'll add that in later today.

@Deeheks: You can, but it's mainly useful if your game is acting weird (like the examples listed in description above). It can help quickly identify the duplicate assemblies without having to manually wade through the main game log file.