RimWorld

RimWorld

RWLayout
102 Comments
Krypt  [author] 30 Aug @ 9:54am 
RWLayout can trigger a redt he first because I have main menu appear method patched in RWLayout, so, it unfortunatelly appears in the logs for non-related issues quite often.
Krypt  [author] 30 Aug @ 9:52am 
Are you using rimpy or other non-default mod manager? I heard there is an issue in some of them - they do not remove old files, ones what was removed in new version of a mod, which can cause various issues in mods
Mech 30 Aug @ 3:02am 
So I completely wiped rimworld from my computer to fix another bunch of issues, when I reinstalld everything I forgot to disable this and grouped pawn lists, and my issue with this framework got fixed along with my other issues. Windows 10 btw, if that even matters anymore. Try wiping out your Rimworld, people, it's only a gigabyte to redownload
Krypt  [author] 30 Aug @ 2:08am 
Can you make it work without any other mod enabled?
Also, that is the os?
Mech 30 Aug @ 2:02am 
oh nevermind that last part, main menu still disappeared but just a little later
Mech 30 Aug @ 2:01am 
yeah no matter where I put this (aftter harmony and core, after harmony before core)it told me no library was loaded and also made my main menu disappear. I think I'll live without grouped pawn lists
Chaotic Remorse 25 Aug @ 8:27am 
i was playing when you published the update so i didn't notice till i restarted
Krypt  [author] 25 Aug @ 1:28am 
I did nothing? At least nothing after your message?
Chaotic Remorse 24 Aug @ 10:25pm 
what ever you updated fixed it
Krypt  [author] 24 Aug @ 6:32pm 
Can you share the log, please?
Chaotic Remorse 24 Aug @ 6:14pm 
I can only get this to run if i load directly after Harmony and before Core. Otherwise it throws errors. Even tried with just this and Grouped Pawn List alone
Krypt  [author] 23 Aug @ 8:39am 
Is "Cayin" you too?
I would like to have your system information and maybe give some test build for this issue. It looks pretty odd. I have the check the original location was not modified, but than the patch fails to properly apply anyway for some reason
Defo 23 Aug @ 8:36am 
@Krypt
Sry for late reply.
The game loading is still slower when I run the game with both RWLayout and Rimtheme.

But, as you suggested, after unchecking ‘Patch handling of malformed xml patches (requires restart)’ in the RWLayout mod settings, the error logs no longer show up.

That pretty much fixed things to some extent, so thanks for the help :)
Krypt  [author] 23 Aug @ 8:23am 
- what is the game version?
- are there athor mods loaded?

Also, you can go to RWLayout settings and disable "Patch handling of malformed xml patches". This patch is not essencial.
Cayin 23 Aug @ 5:46am 
https://pastebin.com/JFUENc7W

Primary Error: System.ArgumentException: Label #5 is not marked in method 'Verse.ModContentPack.LoadPatches_Patch4'
Location: RWLayoutMod.MiscFixes.TryPatchLoadPatches() at line 62 in MiscFixes.cs
Cause: IL (Intermediate Language) generation error in Harmony transpiler - Label #5 is being referenced but never defined
Method Being Patched: Verse.ModContentPack.LoadPatches_Patch4
Krypt  [author] 22 Aug @ 8:41am 
I was supporting it for a while, but i can't even make run rimthemes on my system anymore, so. I can't even test it, unfortuatelly.
You can disable some patches in RWLayout settings. Also as far as I remember there was ability to disable parts of the mod for RimThemes too. You can try to experiment with those.

Although it will be usefull if you will share those error logs, I can look into those.
Defo 22 Aug @ 6:22am 
The Rimtheme and RWLayout mods conflict with each other.

When I disable all other mods and only load Harmony, Rimtheme, and RWLayout, the game throws error logs and the loading time gets longer. However, all functions still seem to work fine.

I can’t tell which of the two mods is causing the issue, but it looks like something’s going wrong during their Harmony patching process.

Could you help fix this problem?
Ghostmare 12 Jul @ 6:01am 
1.6 update, please?
SuperBoyOk 2 May @ 6:17pm 
Group Pawns Lists is the greatest QoL mod for Rimworld. Thanks.
Krypt  [author] 27 Mar @ 11:36pm 
I'm not aware of anyone but me using this framework. The only other popular mod using this lib is ModDiff, but it has an integrated assembly, so, it doesn't require this separate version.
There are also some modding helpers mods I created, but unless you are a modder, you don't use those.

The reason why this mod got into people's lists is RimPy. It used one of those tools to optimize loading speed, but forgot to remove deps of the tool. Combined with mod collection export feature of RimPy, RWLayout got into mod lists of many people who doesn't actually need it.
JoeOwnage 27 Mar @ 5:08am 
Is grouped pawns lists the only mod that uses this?
Krypt  [author] 25 Mar @ 11:00am 
Question Zero: do you even need it in your list? Unless you are using my Grouped Pawns Lists - you don't.
It is a framework, which does literally nothing by its own, but can be used to build mod GUI
Teramoix 22 Mar @ 9:09pm 
So even a year later this mod is still causing issues for people, Launch the game an hour ago, everything is fine, relaunch it, now it's missing * name.krypt.rimworld.rwlayout.alpha2
I have changed nothing, merely restarted the game, and it broke.
Krypt  [author] 15 Apr, 2024 @ 3:25am 
It basicaly in issue in a tool intended to caught assembly mismatch (this mod consists of 3 assembies which al should have the same version or mistery bugs will happen)

But apparently this tool (or RimWorld?) have its own mistery bug. Basically, it is possible to make game to start without all mod assemblies loaded (with only *some*)
Peryn [Андрій] 15 Apr, 2024 @ 3:20am 
Problem was with Vehicle framework mod for 1.4
Without this mod, everything works fine
Peryn [Андрій] 15 Apr, 2024 @ 1:56am 
I played the weekend on one machine and everything was fine. Today I transferred the mod pack to another one and this error returned. "The unexpected RWlayout error"
How is this possible?
Krypt  [author] 27 Mar, 2024 @ 6:55am 
it has loadAfter for harmory, no load before, though
Winter 26 Mar, 2024 @ 12:50am 
Author just needs to add the following to the About.xml
<loadAfter>
<li>brrainz.harmony</li>
</loadAfter>
<loadBefore>
<li>Ludeon.RimWorld</li>
</loadBefore>

In the meantime users can setup a rule using RimPy or RimSort
EfeTheCaptain 18 Jan, 2024 @ 5:58am 
Mine was "The unexpected RWlayout error" probably not "assembly is not loaded" I'm no longer getting error after resubscribing *it's fixed*

"RWLayout should go somewhere right after Harmony"
I don't know how to code but can't you set an "auto-sort" priority for your mod ? for example after Harmony and before the core game ?
Krypt  [author] 15 Jan, 2024 @ 10:20am 
Is it "assembly is not loaded" or some versions are shown?
Also, RWLayout should go somewhere right after Harmony
EfeTheCaptain 14 Jan, 2024 @ 7:55am 
Yeah but the thing is, removing it eliminates the problem somehow.
Krypt  [author] 12 Jan, 2024 @ 3:08am 
it have tendency to appear if some other mod already broke mod loading sequence
i.e your mod list should b cleared by rw instead of this message. So, the real error somewhere else, but somehow load sequence continues and this message appears
chrisque1 10 Jan, 2024 @ 10:40pm 
The unexpected RWlayout error its getting me crazy. Any help?
EfeTheCaptain 10 Jan, 2024 @ 12:44am 
I had the same error as @oreods2003
First I had a playthrough then I decided to start a new one. It somehow caused this error. I tested my mod list and this mod was the problem. Then I unsubscribed and resubscribed. Somehow it fixed the problem.
Krypt  [author] 20 Apr, 2023 @ 5:27pm 
I seen this error with "Assembly not loaded" only in case of some other mod broke game initialization. You can try to remove RALayout and mods using it (ModDiff, Grouped Pawn Lists, and Unified XML Export) from list of loaded mods.

The game will likely fail to start anyway, but at very least you will have some different kind of error
oreods2003 19 Apr, 2023 @ 9:35am 
I kept getting this error after using vanilla sorting when launching the game:

Unexpected RWLayout version
RWLayout service mod version does not match lib version.
It can be caused by wrong mod order and mod embedding a version of the lib. Ensure RWLayout is placed right after core mods
Mod version:
Lib version:
0.1.17a
Assembly is not loaded.

I couldn't get it all sorted, so i downloaded RimPy started sorting errors, saved, exported, and hit run. Now the game starts to load, gets a short way through, then just black screens with a cursor. Any insight would be much appreciated.
Krypt  [author] 2 Nov, 2022 @ 9:16am 
Thanks for report
I'm aware of the issue, I think it is a change in harmony causing this test to fail.
I will fix it as soon as I will have a time

This transpiller is not essential for the lib's working. What shoud do if active, it should fix vanilla bug, this mod will not be the mod reported on initialization error on startup in case if *some other* mod broke things
AerosAtar 2 Nov, 2022 @ 7:42am 
Getting this: ModContentPack.LoadPatches does not matches the reference. Skipping transpiler.

Seems to be a conflict with XML Extensions? (It's the only other mod using a transpiler on that function)
Krypt  [author] 24 Oct, 2022 @ 1:07am 
I mean, in that window should be two versions shown
If it is 16a/15a - you have ModDiff above RWLayout (RWLayout should go right after harmony)
if it is 16a/undefined - some other mod interrupted game loading by causing an exception in a critical moment during startup
Kaden Ha 23 Oct, 2022 @ 11:50pm 
It's version 0.1.16a
Krypt  [author] 23 Oct, 2022 @ 10:30pm 
What exactly it says about versions?
Kaden Ha 23 Oct, 2022 @ 9:46pm 
Why do I get "Unexpected RWLayout version" pop-up error? And use RimPy to sort so it is very unlikely to have the wrong load order and the only mod dependent is your Grouped Pawn List mod.
Krypt  [author] 22 Oct, 2022 @ 1:07pm 
Resolved, more or less. It is do not affect RWLayout in any meaningfull way. But I will have reports about the other mods issues yet again, until I fix what damn transpiler
Krypt  [author] 22 Oct, 2022 @ 12:41pm 
If it is possible, try to go to RWLayout settings and unckeck all fixes
Quiana 22 Oct, 2022 @ 12:35pm 
There is an odd error here in the current 1.4 version:
ModContentPack.LoadPatches does not matches the reference. Skipping transpiler
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Warning (string)
RWLayoutMod.MiscFixes:LoadPatches_transpiler (System.Collections.Generic.IEnumerable`1<HarmonyLib.CodeInstruction>,System.Reflection.Emit.ILGenerator)
System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
System.Reflection.MethodBase:Invoke (object,object[])
HarmonyLib.CodeTranspiler/<>c__DisplayClass12_0:<GetResult>b__0 (System.Reflection.MethodInfo)

Not sure if it's specifically from RWLayout, or if it's an interaction with updated harmony and RWLayout.
nikos 24 Sep, 2021 @ 10:02am 
There seems to be an incompatibility with "What The Hack"
[code]
Exception filling window for WhatTheHack.TabWindowNew.MainTabWindow_Work_MechanoidsNew: System.NullReferenceException: Object reference not set to an instance of an object
at WorkTab.PawnColumnWorker_WorkType.DoCell (UnityEngine.Rect rect, Verse.Pawn pawn, RimWorld.PawnTable table) [0x0001a] in <cd123ec7d4b943f4b5b6cdfbd2cbe016>:0
at PawnTableGrouped.CPawnListRow.DoContent () [0x0018c] in <9eea2c2c79fb4ea3bc150c937e5dc8a3>:0
at RWLayout.alpha2.CElement.DoElementContent () [0x0003b] in <4d92e097f2854fc99b66a01d7382fa0d>:0
at PawnTableGrouped.CPawnTable.DoContent () [0x002df] in
...
[/code]
i get this error when in try to open the mechanoids tab

Full log:
https://gist.github.com/23a55be24bc957f64d45472b99cda4a9
Xiapher 20 Aug, 2021 @ 2:21pm 
Today I experienced my entire game refusing to start due to a mismatching RWlayout version on my 1.2 savefile. Had to unsub from this and grouped pawn lists to make it work again. Do you think there's anything to fix for 1.2.3005?

I'll miss having neatly grouped pawn lists in 1.2
Krypt  [author] 26 Jul, 2021 @ 1:36pm 
Yeah, I really should do something about it. Currently this mod section is a sink for other mods fatal bugs.
Scorpio 26 Jul, 2021 @ 10:40am 
found it its https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=1678847247

update today broke everyone's mod list
Scorpio 26 Jul, 2021 @ 10:33am 
must be one of the mods updated today