jptrrs / SoftWarmBeds

A bed expansion for RimWorld.
https://steamcommunity.com/sharedfiles/filedetails/?id=1713295858
MIT License
0 stars 8 forks source link

Incompatibility with Pawnmorpher #21

Open VorChar opened 3 years ago

VorChar commented 3 years ago

I ran into this issue which is an incompatibility issue with another mod Pawnmorpher

Basically whenever trading with cities that have beds you get error in the log and the trade window stops adding more items to the trade screen when you scroll up to beds
I think the issue is on Pawnmorpher side and I have reported it to them but I'm reporting the issue also here just in case

The mod list this issue happens with:

  • brrainz.harmony
  • ludeon.rimworld
  • unlimitedhugs.hugslib
  • erdelf.humanoidalienraces
  • fluffy.modmanager
  • tachyonite.pawnmorpherpublic
  • jpt.softwarmbeds
  • \ Steps to reproduce:

    1. Have the following mod list
    2. Start pawnmorph scenario
    3. Send out caravan
    4. God mode or wait the caravan to walk to a city to trade
    5. If city has beds the error happens if not proceed to move caravan to next city

    Here's an error message from Rimworld log:

    RimWorld SoftWarmBeds Trade error while trading
    Exception filling window for RimWorld.Dialog_Trade: System.NullReferenceException: Object reference not set to an instance of an object
      at Verse.GenGrid.InBounds (Verse.IntVec3 c, Verse.Map map) [0x00000] in <7927e938de4c4089b4add4215e58d5b1>:0 
      at Verse.RegionAndRoomQuery.RegionAt (Verse.IntVec3 c, Verse.Map map, Verse.RegionType allowedRegionTypes) [0x00000] in <7927e938de4c4089b4add4215e58d5b1>:0 
      at Verse.RegionAndRoomQuery.RoomAt (Verse.IntVec3 c, Verse.Map map, Verse.RegionType allowedRegionTypes) [0x00000] in <7927e938de4c4089b4add4215e58d5b1>:0 
      at Verse.RegionAndRoomQuery.RoomAtOrAdjacent (Verse.IntVec3 c, Verse.Map map, Verse.RegionType allowedRegionTypes) [0x00000] in <7927e938de4c4089b4add4215e58d5b1>:0 
      at Verse.GridsUtility.GetRoomOrAdjacent (Verse.IntVec3 loc, Verse.Map map, Verse.RegionType allowedRegionTypes) [0x00000] in <7927e938de4c4089b4add4215e58d5b1>:0 
      at Verse.GridsUtility.IsInPrisonCell (Verse.IntVec3 c, Verse.Map map) [0x00000] in <7927e938de4c4089b4add4215e58d5b1>:0 
      at Pawnmorph.HPatches.BedBuildingPatches.FixForPrisoner (System.Boolean& __result, RimWorld.Building_Bed __instance) [0x00034] in <11ac1184ae1446bf925a609cc365e9d7>:0 
      at (wrapper dynamic-method) RimWorld.Building_Bed.RimWorld.Building_Bed.get_ForPrisoners_Patch1(RimWorld.Building_Bed)
      at SoftWarmBeds.DrawColorTwo_Patch.Postfix (System.Object __instance, UnityEngine.Color& __result) [0x00021] in <70760473ba7846a59d799dcb19695d5b>:0 
      at (wrapper dynamic-method) RimWorld.Building_Bed.RimWorld.Building_Bed.get_DrawColorTwo_Patch1(RimWorld.Building_Bed)
      at Verse.GraphicData.GraphicColoredFor (Verse.Thing t) [0x0004e] in <7927e938de4c4089b4add4215e58d5b1>:0 
      at (wrapper dynamic-method) Verse.Thing.Verse.Thing.get_DefaultGraphic_Patch1(Verse.Thing)
      at Verse.Thing.get_Graphic () [0x00000] in <7927e938de4c4089b4add4215e58d5b1>:0 
      at Verse.Widgets.ThingIcon (UnityEngine.Rect rect, Verse.Thing thing, System.Single alpha) [0x00182] in <7927e938de4c4089b4add4215e58d5b1>:0 
      at RimWorld.TransferableUIUtility.DrawTransferableInfo (RimWorld.Transferable trad, UnityEngine.Rect idRect, UnityEngine.Color labelColor) [0x00049] in <7927e938de4c4089b4add4215e58d5b1>:0 
      at RimWorld.TradeUI.DrawTradeableRow (UnityEngine.Rect rect, RimWorld.Tradeable trad, System.Int32 index) [0x00251] in <7927e938de4c4089b4add4215e58d5b1>:0 
      at RimWorld.Dialog_Trade.FillMainRect (UnityEngine.Rect mainRect) [0x000c2] in <7927e938de4c4089b4add4215e58d5b1>:0 
      at RimWorld.Dialog_Trade.DoWindowContents (UnityEngine.Rect inRect) [0x003d3] in <7927e938de4c4089b4add4215e58d5b1>:0 
      at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x00165] in <7927e938de4c4089b4add4215e58d5b1>:0 
    Verse.Log:Error(String, Boolean)
    Verse.Window:InnerWindowOnGUI(Int32)
    UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)
    jptrrs commented 2 years ago

    Hi! Does this still happen? Sorry for the delay.

    VorChar commented 2 years ago

    Hello, Unfortunately I haven't been playing Rimworld for quite some time and I usually tend to lag behind with updates to mods and game due to playing very long games so I honestly do not know if it is still happening with latest mods and game.

    The bug is still open in Pawnmorpher's github page so I would be inclined to say 'yes' but honestly cannot say https://github.com/Tachyonite/Pawnmorpher/issues/298

    jptrrs commented 2 years ago

    Ok, I'll see if I can test it myself. Thx!