OrionFive/Hospitality

Hospitality: Guest beds despawned. Unable to assign any beds as guest beds

zWix13 opened this issue · 6 comments

zWix13 commented

Describe the bug
Guest beds despawned randomly after launch, unable to change any beds to guest beds afterwards

To Reproduce
Steps to reproduce the behavior:

  1. Click on a bed in game
  2. Click on "For Guests" on bed
  3. Bed fails to mark itself as guest

Console log
Press Ctrl-F12 after the issue has occurred. You will get a link. Put it here.

Startup error:

  at Hospitality.Hospitality_SpecialInjector.CreateGuestBedDefs (Verse.ThingDef[] bedDefs, RimWorld.CompProperties_Facility[] facilities) [0x0026a] in <93480f50dd2b4e948dcfc5ce761b6d6a>:0 
  at Hospitality.Hospitality_SpecialInjector.Inject () [0x000be] in <93480f50dd2b4e948dcfc5ce761b6d6a>:0 
  at Hospitality.HospitalityModBase.Initialize () [0x00000] in <93480f50dd2b4e948dcfc5ce761b6d6a>:0 
  at HugsLib.HugsLibController.LoadReloadInitialize () [0x0007c] in <4a46802aeab646ab99159f7eecb6b57e>:0 
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch3 (string)
HugsLib.Utils.ModLogger:ReportException (System.Exception,string,bool,string)
HugsLib.HugsLibController:LoadReloadInitialize ()
Verse.LongEventHandler:RunEventFromAnotherThread (System.Action)
Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__27_0 ()
System.Threading.ThreadHelper:ThreadStart_Context (object)
System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object)
System.Threading.ThreadHelper:ThreadStart ()```

**In Game Error**

```[HugsLib][ERR] Hospitality caused an exception during LoadReloadInitialize: System.NullReferenceException: Object reference not set to an instance of an object
  at Hospitality.Hospitality_SpecialInjector.CreateGuestBedDefs (Verse.ThingDef[] bedDefs, RimWorld.CompProperties_Facility[] facilities) [0x0026a] in <93480f50dd2b4e948dcfc5ce761b6d6a>:0 
  at Hospitality.Hospitality_SpecialInjector.Inject () [0x000be] in <93480f50dd2b4e948dcfc5ce761b6d6a>:0 
  at Hospitality.HospitalityModBase.Initialize () [0x00000] in <93480f50dd2b4e948dcfc5ce761b6d6a>:0 
  at HugsLib.HugsLibController.LoadReloadInitialize () [0x0007c] in <4a46802aeab646ab99159f7eecb6b57e>:0 
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch3 (string)
HugsLib.Utils.ModLogger:ReportException (System.Exception,string,bool,string)
HugsLib.HugsLibController:LoadReloadInitialize ()
Verse.LongEventHandler:RunEventFromAnotherThread (System.Action)
Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__27_0 ()
System.Threading.ThreadHelper:ThreadStart_Context (object)
System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object)
System.Threading.ThreadHelper:ThreadStart ()

Screenshots
Can provide if additional context is required

Additional Notes

Attempted to try and search for hospitality settings in path \AppData\LocalLow\Ludeon Studios\RimWorld by Ludeon Studios\Config - There is no hospitality setting for me to delete and "factory reset" it

zWix13 commented

Mod list for reference https://rentry.co/h33rr

Can you please upload a full log?

Okay, so there is a possible culprit:
TraitIcons (causes exceptions during load, could possibly prevent other mods from working correctly)

Otherwise, it could be any mod that adds broken defs for a bed or bed facility or royal title. Broken as in it doesn't load correctly, or is missing properties that these things normally have.

Good luck!

zWix13 commented

Thank you! To redirect other players, it seems that the missing bed issue is not caused by Orion's mod. Rather, it is the VE Royalty patch which broke the defs for beds on royal titles - hence impacting Hospitality

Is it the Vanilla Expanded Empire mod or is it a specific patch/add-on to that? I'm struggling to figure out what I need to fix or remove to get it to work