RimWorld

RimWorld

RWLayout
104 kommentarer
Krypt  [ophavsmand] 20. sep. kl. 15:20 
If XML Extensions patches it, it likely the reason why the warning appears. I basically do nothing and throw this warning if method is changed. Probably shouldn't throw it as a yellow warning, though.
Daemonjax 20. sep. kl. 13:39 
In 1.4, I get the same transpiler warning as AerosAtar reported ~3 years ago. If I go into your mod's settings and uncheck the option: Patch handling of malformed xml patches, then the warning goes away. pretty sure XML Extensions already does something like this, so I think I should be OK.

https://pastebin.com/s0rV8LiP
Krypt  [ophavsmand] 30. aug. kl. 9:54 
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  [ophavsmand] 30. aug. kl. 9:52 
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. kl. 3:02 
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  [ophavsmand] 30. aug. kl. 2:08 
Can you make it work without any other mod enabled?
Also, that is the os?
Mech 30. aug. kl. 2:02 
oh nevermind that last part, main menu still disappeared but just a little later
Mech 30. aug. kl. 2:01 
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. kl. 8:27 
i was playing when you published the update so i didn't notice till i restarted
Krypt  [ophavsmand] 25. aug. kl. 1:28 
I did nothing? At least nothing after your message?
Chaotic Remorse 24. aug. kl. 22:25 
what ever you updated fixed it
Krypt  [ophavsmand] 24. aug. kl. 18:32 
Can you share the log, please?
Chaotic Remorse 24. aug. kl. 18:14 
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  [ophavsmand] 23. aug. kl. 8:39 
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. kl. 8:36 
@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  [ophavsmand] 23. aug. kl. 8:23 
- 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. kl. 5:46 
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  [ophavsmand] 22. aug. kl. 8:41 
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. kl. 6:22 
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. juli kl. 6:01 
1.6 update, please?
SuperBoyOk 2. maj kl. 18:17 
Group Pawns Lists is the greatest QoL mod for Rimworld. Thanks.
Krypt  [ophavsmand] 27. mar. kl. 23:36 
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. kl. 5:08 
Is grouped pawns lists the only mod that uses this?
Krypt  [ophavsmand] 25. mar. kl. 11:00 
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. kl. 21:09 
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  [ophavsmand] 15. apr. 2024 kl. 3:25 
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 kl. 3:20 
Problem was with Vehicle framework mod for 1.4
Without this mod, everything works fine
Peryn [Андрій] 15. apr. 2024 kl. 1:56 
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  [ophavsmand] 27. mar. 2024 kl. 6:55 
it has loadAfter for harmory, no load before, though
Winter 26. mar. 2024 kl. 0:50 
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 kl. 5:58 
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  [ophavsmand] 15. jan. 2024 kl. 10:20 
Is it "assembly is not loaded" or some versions are shown?
Also, RWLayout should go somewhere right after Harmony
EfeTheCaptain 14. jan. 2024 kl. 7:55 
Yeah but the thing is, removing it eliminates the problem somehow.
Krypt  [ophavsmand] 12. jan. 2024 kl. 3:08 
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 kl. 22:40 
The unexpected RWlayout error its getting me crazy. Any help?
EfeTheCaptain 10. jan. 2024 kl. 0:44 
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  [ophavsmand] 20. apr. 2023 kl. 17:27 
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 kl. 9:35 
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  [ophavsmand] 2. nov. 2022 kl. 9:16 
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 kl. 7:42 
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  [ophavsmand] 24. okt. 2022 kl. 1:07 
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. okt. 2022 kl. 23:50 
It's version 0.1.16a
Krypt  [ophavsmand] 23. okt. 2022 kl. 22:30 
What exactly it says about versions?
Kaden Ha 23. okt. 2022 kl. 21:46 
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  [ophavsmand] 22. okt. 2022 kl. 13:07 
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  [ophavsmand] 22. okt. 2022 kl. 12:41 
If it is possible, try to go to RWLayout settings and unckeck all fixes
Quiana 22. okt. 2022 kl. 12:35 
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 kl. 10:02 
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 kl. 14:21 
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  [ophavsmand] 26. juli 2021 kl. 13:36 
Yeah, I really should do something about it. Currently this mod section is a sink for other mods fatal bugs.