RimWorld

RimWorld

RWLayout
96 Comments
Chaotic Remorse Aug 25 @ 8:27am 
i was playing when you published the update so i didn't notice till i restarted
Krypt  [author] Aug 25 @ 1:28am 
I did nothing? At least nothing after your message?
Chaotic Remorse Aug 24 @ 10:25pm 
what ever you updated fixed it
Krypt  [author] Aug 24 @ 6:32pm 
Can you share the log, please?
Chaotic Remorse Aug 24 @ 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] Aug 23 @ 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 Aug 23 @ 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] Aug 23 @ 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 Aug 23 @ 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] Aug 22 @ 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 Aug 22 @ 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 Jul 12 @ 6:01am 
1.6 update, please?
SuperBoyOk May 2 @ 6:17pm 
Group Pawns Lists is the greatest QoL mod for Rimworld. Thanks.
Krypt  [author] Mar 27 @ 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 Mar 27 @ 5:08am 
Is grouped pawns lists the only mod that uses this?
Krypt  [author] Mar 25 @ 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 Mar 22 @ 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] Apr 15, 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 [Андрій] Apr 15, 2024 @ 3:20am 
Problem was with Vehicle framework mod for 1.4
Without this mod, everything works fine
Peryn [Андрій] Apr 15, 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] Mar 27, 2024 @ 6:55am 
it has loadAfter for harmory, no load before, though
Winter Mar 26, 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 Jan 18, 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] Jan 15, 2024 @ 10:20am 
Is it "assembly is not loaded" or some versions are shown?
Also, RWLayout should go somewhere right after Harmony
EfeTheCaptain Jan 14, 2024 @ 7:55am 
Yeah but the thing is, removing it eliminates the problem somehow.
Krypt  [author] Jan 12, 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 Jan 10, 2024 @ 10:40pm 
The unexpected RWlayout error its getting me crazy. Any help?
EfeTheCaptain Jan 10, 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] Apr 20, 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 Apr 19, 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] Nov 2, 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 Nov 2, 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] Oct 24, 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 Oct 23, 2022 @ 11:50pm 
It's version 0.1.16a
Krypt  [author] Oct 23, 2022 @ 10:30pm 
What exactly it says about versions?
Kaden Ha Oct 23, 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] Oct 22, 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] Oct 22, 2022 @ 12:41pm 
If it is possible, try to go to RWLayout settings and unckeck all fixes
Quiana Oct 22, 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 Sep 24, 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 Aug 20, 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] Jul 26, 2021 @ 1:36pm 
Yeah, I really should do something about it. Currently this mod section is a sink for other mods fatal bugs.
Scorpio Jul 26, 2021 @ 10:40am 
found it its https://steamcommunity.com/sharedfiles/filedetails/?id=1678847247

update today broke everyone's mod list
Scorpio Jul 26, 2021 @ 10:33am 
must be one of the mods updated today
Scorpio Jul 26, 2021 @ 10:19am 
yeah spoke too soon dam ...
Krypt  [author] Jul 26, 2021 @ 10:11am 
Did just removing the RWLayout allowed game to start?
If yes, canm you share log file, please? I yet to see an example where it hepled
Scorpio Jul 26, 2021 @ 10:08am 
Group pawn lists needs this has dependency . having to remove it because this is causing issues sucks
Krypt  [author] Jul 26, 2021 @ 9:59am 
Well.
It is not RWLayout or RimPy issue *in particular*. Game fails to reset mods list properly.
i.e, some *other* mod fails, and removing RWLayout will not resolve the issue. It will fail in some other way.

RimPy only gives more attention to RWLayout instead of real issue,
Kirron Jul 26, 2021 @ 9:32am 
Nice to hear that the source of the problems been found, any idea about a fix? Because simply disabling RimPy isnt working for me at least.
Krypt  [author] Jul 25, 2021 @ 11:21am 
Yeah, I found out the source of all those issues with people having it in their lists, but not actually using it:
RimPy mod merge feature.

It uses Unified Xml Export mod, which depends on RWLayout (because I'm lazy). Apparently, it is not removing it after the fact. Worse, it getting into collections. Curently there are 45 of them.