边缘世界 RimWorld

边缘世界 RimWorld

HugsLib
Symbolic  [开发者] 2020 年 2 月 28 日 下午 12:56
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.
最后由 Symbolic 编辑于; 2020 年 3 月 1 日 上午 9:30
< >
正在显示第 1 - 15 条,共 38 条留言
nubcake -MeoW- 2020 年 2 月 28 日 下午 2:42 
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 -MeoW- 编辑于; 2020 年 2 月 28 日 下午 2:42
TemplarX 2020 年 2 月 28 日 下午 2:54 
引用自 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
最后由 TemplarX 编辑于; 2020 年 2 月 28 日 下午 3:01
nubcake -MeoW- 2020 年 2 月 28 日 下午 3:06 
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.
最后由 nubcake -MeoW- 编辑于; 2020 年 2 月 28 日 下午 3:07
TemplarX 2020 年 2 月 28 日 下午 3:19 
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
最后由 TemplarX 编辑于; 2020 年 2 月 28 日 下午 3:22
nubcake -MeoW- 2020 年 2 月 28 日 下午 4:07 
Thank you TemplarX, sorry to be daft, have never had a need to venture outside steam workshop before. All working now. <3
TemplarX 2020 年 2 月 28 日 下午 4:52 
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 2020 年 2 月 28 日 下午 7:10 
引用自 TemplarX
引用自 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
最后由 Dewa 编辑于; 2020 年 2 月 28 日 下午 7:14
nubcake -MeoW- 2020 年 2 月 28 日 下午 7:15 
@Dragon: https://github.com/UnlimitedHugs/RimworldHugsLib/releases

@TemplarX: I actually did this before your suggestion, thanks again for helping. :o)
最后由 nubcake -MeoW- 编辑于; 2020 年 2 月 28 日 下午 7:16
lilwhitemouse 2020 年 2 月 28 日 下午 9:02 
So........I built my mod against HugsLib version 7.0.0. Do I need to rebuild against 7.0.1?
Tizferatu 2020 年 2 月 29 日 上午 1:27 
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  [开发者] 2020 年 2 月 29 日 上午 2:26 
@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 2020 年 2 月 29 日 上午 2:44 
引用自 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.
最后由 Tizferatu 编辑于; 2020 年 2 月 29 日 上午 2:48
Symbolic  [开发者] 2020 年 2 月 29 日 上午 3:01 
@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 2020 年 2 月 29 日 上午 3:13 
引用自 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 2020 年 2 月 29 日 上午 5:40 
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.
最后由 Vectorial1024 编辑于; 2020 年 2 月 29 日 上午 5:54
< >
正在显示第 1 - 15 条,共 38 条留言
每页显示数: 1530 50