RimWorld

RimWorld

390 ratings
RIMMSAssemble
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5
File Size
Posted
Updated
3.811 MB
24 Jun, 2019 @ 4:37pm
30 Apr, 2024 @ 2:29pm
7 Change Notes ( view )

Subscribe to download
RIMMSAssemble

Description
This mod allows other assembly mods to load referenced assemblies even if their version has changed.

When rimworld releases an update no mod has to be recompiled to work with the new assembly version. This is due to a custom AssemblyResolver, however that resolver does not work for anything other than the main rimworld assembly. This mod corrects the assembly resolving thus increasing stability for mod lists and allows truly independant development between mods.

In order for an assembly to be correctly loaded it must avoid being loaded by the base game. Thus the normal file extension of ".dll" must be changed to ".α︎ss". Now the mod will load the assembly and take over the creation of the mod classes to ensure the load order is kept.

C# solutions can achieve the automatic renaming by adding post build instructions. These (windows) instructions first remove old assemblies and then rename the new assemblies file extension.

  • del *.α︎ss
  • rename "MyAssemblyName.dll" *.α︎ss

For the most part this mod will only be necessary if another mod adds it as dependancy, however it can also be used by manually renaming a mods assembly if the game log reports a ReflectionTypeLoadException error. If that error doesn't happen before any mod is loaded it might be enough to just have this mod present.

Load Order
As early as possible, since only mods below it can be handled correctly.

Disclaimer
Any resources based on or referencing rimworld resources are also subject to rimworlds eula agreement. This includes images, audio but also decompiled sections repeated in this mod. If the origin is unclear it must be assumed that the rimworld eula applies.

Also on github[github.com].
78 Comments
[+DG+] Sir_Castic 4 Oct, 2024 @ 10:56am 
delete ass files
Lanoz 30 Apr, 2024 @ 8:46pm 
Thanks!:luv:
Razuhl  [author] 30 Apr, 2024 @ 2:35pm 
@Lanoz Done
Lanoz 29 Apr, 2024 @ 1:14pm 
For 1.5 perhaps?
Max 26 Dec, 2023 @ 11:28am 
So, is this mod still relevant? I've used it a fair bit, but never went through the effort of checking whether it had an impact.
[+DG+] Sir_Castic 11 Nov, 2022 @ 5:41pm 
*.ass reads as star dot ass and lmao, that's an anus
VelxraTV 21 Oct, 2022 @ 4:52pm 
thank you!
Razuhl  [author] 21 Oct, 2022 @ 4:48pm 
@Velxra done
VelxraTV 21 Oct, 2022 @ 12:19pm 
Please update to 1.4
Razuhl  [author] 10 Sep, 2021 @ 1:36am 
@⁧⁧pinbuck لله أكبر Thx and it's not about the game version(building against that is handled by the default resolver) but about mod versions and the default resolver has not been fixed in 1.3.