RimWorld

RimWorld

Dormitories Not Barracks
74 Comments
UntouchedWagons 24 May, 2023 @ 3:43pm 
I'm getting an error similar to ntiem8r:

Error in static constructor of DormitoriesNotBarracks.DormitoriesNotBarracks: System.TypeInitializationException: The type initializer for 'DormitoriesNotBarracks.DormitoriesNotBarracks' threw an exception. ---> HarmonyLib.HarmonyException: Patching exception in method static System.Void RimWorld.Toils_LayDown::ApplyBedThoughts(Verse.Pawn actor, RimWorld.Building_Bed bed) ---> System.FormatException: Method static System.Void RimWorld.Toils_LayDown::ApplyBedThoughts(Verse.Pawn actor, RimWorld.Building_Bed bed) cannot be patched. Reason: Invalid IL code in (wrapper dynamic-method) RimWorld.Toils_LayDown:RimWorld.Toils_LayDown.ApplyBedThoughts_Patch2 (Verse.Pawn,RimWorld.Building_Bed): IL_007f: call 0x0000001f
Three 21 May, 2023 @ 5:18am 
As an solution for errors posted bellow I found this mod - Dormitories (Not Barracks) works very smoothly :sothappy:
ntiem8r 21 May, 2023 @ 4:41am 
Hi I'm getting this at the startup screen. Error performing harmony patches for DormitoriesNotBarracks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - HarmonyLib.HarmonyException: IL Compile Error ---> System.FormatException: Method static System.Void RimWorld.Toils_LayDown::ApplyBedThoughts(Verse.Pawn actor, RimWorld.Building_Bed bed) cannot be patched. Reason: Invalid IL code in (wrapper dynamic-method) RimWorld.Toils_LayDown:RimWorld.Toils_LayDown.ApplyBedThoughts_Patch3 (Verse.Pawn,RimWorld.Building_Bed): IL_0092: call 0x00000021- logs are at https://gist.github.com/HugsLibRecordKeeper/ff9cfa656dfcc10d44819a9e83768ee8
four12 26 Apr, 2023 @ 6:52pm 
Thirding @Guccio error report. Had it for quite some time, never bothered to deal with it.
Onion 23 Apr, 2023 @ 2:48am 
Seconding Guccio's error after game-start, someone @ me if it's answered please :p
χø£¡Ŧ|ź <(´= w =`)> 16 Apr, 2023 @ 12:06pm 
This mod should be applied to 2-4 beds in order to include a dorm with two bunk beds.
Three 11 Mar, 2023 @ 2:45am 
Getting this error after starting the game:
Error in static constructor of DormitoriesNotBarracks.DormitoriesNotBarracks: System.TypeInitializationException: The type initializer for 'DormitoriesNotBarracks.DormitoriesNotBarracks' threw an exception

here are my logs:

https://gist.github.com/8192cba9d96a7a093408088747bda3d1
KyuKage 25 Feb, 2023 @ 7:08pm 
@MagnusCerebrum and @Guccio - the full quote should be "it does register 2-3 medical beds as a dorm, going 4 or more however changes it back to a hospital room."

So you'll need to make a hospital room with 4+ beds.
Three 25 Feb, 2023 @ 6:09pm 
@MagnusCerebrum , @Sexual Mongolian Yurt Description says:
"Dormitories are defined as rooms with 2-3 single beds"
Three 25 Feb, 2023 @ 6:07pm 
@Aquila I have similar error :boldly:
MagnusCerebrum 22 Jan, 2023 @ 6:06am 
This mod turns my hospitals into dormitories somehow, causing problems with Ideologies such as my current colonies one that requires hospitals, gonna have to disable this mod unfortunately
Clocktower_Echos 27 Dec, 2022 @ 4:59pm 
Okay so I did some quick testing. It would seem that the error below doesn't seem to affect anything. Adding cribs doesn't change a dorm into a barrack but it does register 2-3 medical beds as a dorm, going 4 or more however changes it back to a hospital room.
Aquila15 16 Dec, 2022 @ 3:41am 
Getting this error after starting the game:
Error in static constructor of DormitoriesNotBarracks.DormitoriesNotBarracks: System.TypeInitializationException: The type initializer for 'DormitoriesNotBarracks.DormitoriesNotBarracks' threw an exception

here are my logs:
https://gist.github.com/2014b096d2475b72394a6c78f3033de2
four12 9 Dec, 2022 @ 9:42pm 
@8Z Same error as shown below
ReneeEclipse 8 Dec, 2022 @ 6:54pm 
Here is a log containing said error:

https://gist.github.com/6dfc3bc0d75d9d85892d18f8f3195e5c
robinzilla 3 Dec, 2022 @ 1:28pm 
Same error here as Darkstar and Raupen. If logs are needed, I'm happy to share.
Raupenfusselflommel 1 Dec, 2022 @ 2:53am 
same as darkstar
Darkstar 30 Nov, 2022 @ 12:44pm 
I think yesterday's base game update might have messed this mod up. Getting this error on load now:

Error in static constructor of DormitoriesNotBarracks.DormitoriesNotBarracks: System.TypeInitializationException: The type initializer for 'DormitoriesNotBarracks.DormitoriesNotBarracks' threw an exception. ---> HarmonyLib.HarmonyException: IL Compile Error ---> System.FormatException: Method static System.Void RimWorld.Toils_LayDown::ApplyBedThoughts(Verse.Pawn actor, RimWorld.Building_Bed bed) cannot be patched. Reason: Invalid IL code in (wrapper dynamic-method) RimWorld.Toils_LayDown:RimWorld.Toils_LayDown.ApplyBedThoughts_Patch6 (Verse.Pawn,RimWorld.Building_Bed): IL_0092: call 0x00000021
[DTM] Patient Zero 12 Nov, 2022 @ 8:04pm 
Looks like it also changes hospitals into dorms. Not sure if that was an issue before. Obviously when exceeding the dorm bed limit, the room classification reverts to a hospital.
8Z  [author] 8 Nov, 2022 @ 1:40pm 
@Eng_Chasers Thank you for the heads-up. I pushed an update which should have fixed it. I try to maintain backwards compatibility for existing addons as to not break old saves.
Eng-Chasers 2 Nov, 2022 @ 9:37am 
the new update seems to break 1.3 version as it throws some staticonstructor startup and pawns don't fill their need of food after eating and give
JobDriver threw exception in initAction for pawn Red driver=JobDriver_Ingest (toilIndex=9) driver.job=(Ingest (Job_2652324) A=Thing_MealFine427614 B=(56, 0, 128))
System.MissingFieldException: Field 'RimWorld.BuildingProperties.bed_countsForBedroomOrBarracks' not found.

I understand if you won't fix this. Just a heads up.
8Z  [author] 1 Nov, 2022 @ 2:58pm 
Should be working now.
Vattende 1 Nov, 2022 @ 12:43pm 
@8Z - thanks for looking at the dormitory issue. Then it's not game-breaking i mean, i had lot babies, living in dormitories, and they do very well to, it's just a denomination, and i didn't see any problems because of that.
8Z  [author] 1 Nov, 2022 @ 11:17am 
Thanks for reporting the issues, folks. I lost the C# source files for this mod and will have to rewrite it for 1.4.
Vattende 25 Oct, 2022 @ 3:46am 
Also saw this issue, also you can't make nursery so called. They're als dormitories now.
ShortBear 21 Oct, 2022 @ 12:45pm 
Small issue with biotech, Cribs aren't supposed to change the status of a bedroom but they are making them into dormitories
JACK 11 Oct, 2021 @ 11:47pm 
awesome compromise. I can definitely say my decent college dormitory probably gave me about a +1 mood, lol
KyuKage 15 Sep, 2021 @ 4:59am 
So the Vanilla values are unmodded and this inserts the Dormitory values between them if I'm reading correctly?
༺midas22༻ 1 Sep, 2021 @ 6:05pm 
i know it doesn't currently, but would it be possible to make it work for 1 double + 1 single bed?
Nachonacho 6 Aug, 2021 @ 7:59am 
Is it possible to make an any-bed-count version of this?
I mean it would still require having no workbenches and yu'll get the disturbed sleep x3 debuff, so I think it's a fair choice
McDuff 28 Jul, 2021 @ 7:35am 
Getting this error a lot which mentions this mod.

https://pastebin.com/Z87L9t4z
LordQarlyn 28 Jul, 2021 @ 4:56am 
This is a perfect compromise mod. Realistically in new settlement situations, most settlers would be sleeping in dormitory like rooms anyway.
smikeproject 28 Jul, 2021 @ 4:52am 
@Lucifer
Hope to see your upgrade/updates gets in this one. "Hospitality" is very useful mod, so it is a must to be compatible with it.
Genaeve 27 Jul, 2021 @ 9:40pm 
Bless you, @Lucifer! You are a wonderful Being! :MysteriaGodOfDeathHappy:
Lucifer 27 Jul, 2021 @ 8:18pm 
Hi, I just updated this yesterday to 1.3 here , didn't expect you to post and update lol. I added support for the new love clusters and added compatibility with Hospitality, just let me know what you want me to do with my version.
Genaeve 26 Jul, 2021 @ 5:30pm 
@FlorestNerd to change the tag
1) Open the folder containing this mod
For me, it's located
C:\Program Files (x86)\Steam\steamapps\workshop\content\294100\2253550390
2) Open the folder labeled "About" (without the quotes)
3) Using Notepad or Notepad++ open "About.xml" (without the quotes)
4) Double check the name of the mod on line 2 looks like this:
<name>Dormitories Not Barracks</name>
5) Line 5-7 should look something like this:
<supportedVersions>
<li>1.2</li>
</supportedVersions>
6) Change <li>1.2</li> to "<li>1.3</li>"
7) Save the file.
8) Close the folders and start up your game.
Personally, I copy the mod folder and rename it to something like
"Fix_Dormitories-Not-Barracks" (without the quotes)
and place it in this location:
C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods
This way I can easily find it and the original mod will be updated once the author does so.
I hope this helps you out.
FlorestNerd 26 Jul, 2021 @ 4:29pm 
@BloodTear , i would gladly if i knew how
Ayane 25 Jul, 2021 @ 6:18pm 
You guys can update the tag yourselves it's not hard. The mod works so no need to keep asking for an update.
Lyca 22 Jul, 2021 @ 6:47am 
I agree, +1 for update for 1.3 :D
The Bard of Hearts 20 Jul, 2021 @ 7:06pm 
+1 for a 1.3 update! :steamhappy:

Glad to know it works anyway. =)
@Criarino, thanks for the test
Criarino 20 Jul, 2021 @ 12:45pm 
just tested, it works on 1.3
KitsuneKas 20 Jul, 2021 @ 11:40am 
Has anyone tested this to see if it works fine in 1.3 without an update?
MahBR 20 Jul, 2021 @ 6:27am 
1.3 come on men :c please
A Furry Git 12 Jul, 2021 @ 9:39am 
Is this gonna be updated for 1.3?
Fen Hin 15 May, 2021 @ 6:13am 
@Estredar
Only single beds

Description
" Dormitories are defined as rooms with 2-3 single beds "
Estredar 27 Apr, 2021 @ 12:51pm 
I dont know what changed but as of yesterday this mod stopped working. Does it work with three double-beds?
Sebastian Cigar 14 Jan, 2021 @ 5:15am 
@Viper it does seem to go well with Realistic Rooms, all my colonists except the one with a royal title live in 2-bed dorm rooms and I don't remember seeing them being too sad over this
I have this mod placed after RR in my mod load order btw
Sebastian Cigar 14 Jan, 2021 @ 5:10am 
thank you for this
Viper 1 Jan, 2021 @ 8:30pm 
Will Realistic Rooms work correctly with this?
Dr@g0n 6 Dec, 2020 @ 3:42pm 
this is going to make more sense than a barracks when I have pawns that don't harm otehrs