RimWorld

RimWorld

HugsLib
Symbolic  [developer] 28 Feb, 2020 @ 12:56pm
HugsLib 7.0 update and incompatibility issues
The recent release of HugsLib 7.0.1 was accompanied with a lot of mod conflicts cropping up.

It appers the HugsLib update was only a catalyst, the real issues were caused by multiple versions of Harmony, incompatible with each other.
This version of HugsLib will be staying, and Harmony 2.0.0.7 will be the baseline for Rimworld 1.1- updating your mods to Harmony versions beyond that is not recommended (see below).

To the dear players: Sorry for this mess- multiple mods are involved, and we are working on fixing things as I write this. I know you have your games in progress, but you may have to put them on hold until we sort out the differences of all affected mods.
If you can, disable some mods until you no longer have errors, better yet- check back in a bit to see if things have cleared up.
Thank you for your patience.

EDIT:
Due to critical issues it is no longer possible to distribute Harmony with HugsLib.
It is now necessary to subscribe to the separate Harmony mod for HugsLib to work. You can find the link to its workshop page in the side bar.
The good news is that the mod conflict situation is stabilizing and within a few days your mod list should be relatively stable to play again.

To modders: If you have a dependency on HugsLib, adding a separate dependency on the Harmony mod is possible, but not necessary, as HugsLib already declares that dependency.
When publishing your mod, do not include the Harmony dll file, as it would not be used anyway.
Last edited by Symbolic; 1 Mar, 2020 @ 9:30am
< >
Showing 1-15 of 38 comments
nubcake -MeoW- 28 Feb, 2020 @ 2:42pm 
Is there any way for users to manually to roll-back to the previous version. Everything was working yesterday and I'd like to continue my game. Starting up today I'm getting multiple red-errors in the log.
Last edited by nubcake -MeoW-; 28 Feb, 2020 @ 2:42pm
TemplarX 28 Feb, 2020 @ 2:54pm 
Originally posted by nubcake -MeoW-:
Is there any way for users to manually to roll-back to the previous version. Everything was working yesterday and I'd like to continue my game. Starting up today I'm getting multiple red-errors in the log.

@nubcake you can go to github and get one of the previous releases.
I'm using 7.0.0 and for my mods it works, 7.0.1 is when stuff breaks
Just a possible workaround until they get this stuff sorted proper

Edit: release 7.0.0 seems fine so far
Last edited by TemplarX; 28 Feb, 2020 @ 3:01pm
nubcake -MeoW- 28 Feb, 2020 @ 3:06pm 
Thanks TermplarX - how are you doing this exactly?

I tried the following -

Copied 6.2.1 to the hugslib folder
steamapps/workshop/content/294100/818773962

However when I relaunch the game it auto updates to the new version.

I tried disconnecting from the internet and relaunching but my entire modlist had then vanished from the game.
Last edited by nubcake -MeoW-; 28 Feb, 2020 @ 3:07pm
TemplarX 28 Feb, 2020 @ 3:19pm 
You can go on the game's folder, there you'll find the "Mods" folder, place hugslib 7.0.0 folder there.
In the game's mod manager select the HugsLib with version 7.0.0 and unselect the 7.0.1 one.
(They will have different icons and different versions)

Disclaimer: if you have other mods updating to the newer Harmony version the problem will probably persist and you'll have to rollback/disable those mods too
Last edited by TemplarX; 28 Feb, 2020 @ 3:22pm
nubcake -MeoW- 28 Feb, 2020 @ 4:07pm 
Thank you TemplarX, sorry to be daft, have never had a need to venture outside steam workshop before. All working now. <3
TemplarX 28 Feb, 2020 @ 4:52pm 
Glad it's working!
No worries, I also had to dabble some folders back and forth to figure it out.

Btw, if you want to "save" that working installation so it isn't broken by updates, you can make a copy of the game's folder and then copy all the workshop mods to the Mods folder.
This way you'll get a backup installation that will work with mods (even offline) and won't be broken by updates.
Dewa 28 Feb, 2020 @ 7:10pm 
Originally posted by TemplarX:
Originally posted by nubcake -MeoW-:
Is there any way for users to manually to roll-back to the previous version. Everything was working yesterday and I'd like to continue my game. Starting up today I'm getting multiple red-errors in the log.

@nubcake you can go to github and get one of the previous releases.
I'm using 7.0.0 and for my mods it works, 7.0.1 is when stuff breaks
Just a possible workaround until they get this stuff sorted proper

Edit: release 7.0.0 seems fine so far
Dumb question, but do you have a link to get the 7.0 version? I'm not familiar with github that much, as well how to replace the current version with the 7.0 one
Last edited by Dewa; 28 Feb, 2020 @ 7:14pm
nubcake -MeoW- 28 Feb, 2020 @ 7:15pm 
@Dragon: https://github.com/UnlimitedHugs/RimworldHugsLib/releases

@TemplarX: I actually did this before your suggestion, thanks again for helping. :o)
Last edited by nubcake -MeoW-; 28 Feb, 2020 @ 7:16pm
lilwhitemouse 28 Feb, 2020 @ 9:02pm 
So........I built my mod against HugsLib version 7.0.0. Do I need to rebuild against 7.0.1?
Tizferatu 29 Feb, 2020 @ 1:27am 
Is there anything I as a mod author can do regarding the incompatibility (using harmony 2.0.0.7, not hugslib in the mods I've been updating, and have tried both including the dll and not including it but requiring the workshop version)?
Symbolic  [developer] 29 Feb, 2020 @ 2:26am 
@lilwhitemouse
I do recommend that, yes- 7.0.1 is the update that includes the Harmony 2.0.0.7 version, which we will be using going forward. Still, your mod may work as-is, depending on the extent of patching you do.

@tizuby
Just make sure you have updated to 2.0.0.7, and you should be good for the duration of RW1.1. Ship the dll with your mod as usual, unless you have a HugsLib dependency, then there is no need. I can't recommend depending on the Harmony workshop item as of RW1.1, since we don't know if it will be updated to newer versions- if it does, we have a mess of incompatibility again.
Tizferatu 29 Feb, 2020 @ 2:44am 
Originally posted by UnlimitedHugs:
@lilwhitemouse
I do recommend that, yes- 7.0.1 is the update that includes the Harmony 2.0.0.7 version, which we will be using going forward. Still, your mod may work as-is, depending on the extent of patching you do.

@tizuby
Just make sure you have updated to 2.0.0.7, and you should be good for the duration of RW1.1. Ship the dll with your mod as usual, unless you have a HugsLib dependency, then there is no need. I can't recommend depending on the Harmony workshop item as of RW1.1, since we don't know if it will be updated to newer versions- if it does, we have a mess of incompatibility again.

I had 2.0.0.7 packaged with it originally and was still getting the crashes (same UI null ref as others). Been trying various tweaks all night to no effect.

Wonder if something else is going on on-top of the inconsistency issue.

Can take a peak at https://github.com/tizubythefizo/RoadsOfTheRim/releases as that's the version with harmony 2.0.0.7 packaged that's having issues.
Last edited by Tizferatu; 29 Feb, 2020 @ 2:48am
Symbolic  [developer] 29 Feb, 2020 @ 3:01am 
@tizuby
Part of the issue was HugsLib reverting to 6.2.1 (with Harmony 2.0.0.6) as I was identifying the cause of the conflicts. With 2.0.0.6 being the first Harmony dll in the load order, it was preventing mods built against 2.0.0.7 from working properly.
Tizferatu 29 Feb, 2020 @ 3:13am 
Originally posted by UnlimitedHugs:
@tizuby
Part of the issue was HugsLib reverting to 6.2.1 (with Harmony 2.0.0.6) as I was identifying the cause of the conflicts. With 2.0.0.6 being the first Harmony dll in the load order, it was preventing mods built against 2.0.0.7 from working properly.

I just tested again and am still getting the UIRoot null ref when trying to build. I reverted back to before I changed it to depend on the WS version of Harmony and verified that it's using 2.0.0.7 (I edited my earlier post to include the github link, in case you want to see if it repros on your end).
Vectorial1024 29 Feb, 2020 @ 5:40am 
I have found something problematic

As I rebuild my mods to the latest version of HugsLib, I noticed that there is this message in my Visual Studio:

Quote:

The primary reference "0Harmony" could not be resolved because it was built against the ".NETFramework,Version=v4.7.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".

End of quote.

I am referencing the latest HugsLib library (as of writing) and v2.0.0.7 Harmony library. My project is using NET Framework v4.0.

It may be that the wrong version of Harmony library got included...?

Edit: My dumbass did not load HugsLib before my mod... issue is fixed by placing HugsLib in the loading list after Core.
Last edited by Vectorial1024; 29 Feb, 2020 @ 5:54am
< >
Showing 1-15 of 38 comments
Per page: 1530 50