[1.3.3102] Cannot initiate caravan trade with settlement

Started by ELynx, September 07, 2021, 04:33:52 PM

Previous topic - Next topic

ELynx

Installed Core, Royalty, Ideology. Windows 10 Pro / 64 bit build

1. Caravan arrived at settlement, trade button is present, clicking it does nothing. Right-click, Trade does not work either. In dev mode, exception is logged (see below in log)
2. When Trade menu item is clicked, no trade window appear
3. Expected: trade window to appear
4. Steps: create caravan, arrive at settlement where trade can be made, right-click settlement, click trade item. Save attached has caravan at the settlement.
5. Save uploaded to google drive https://drive.google.com/file/d/1yF-B1U4-41O-CxSqG2QTnIVEFy3hiiqX/view?usp=sharing
6. Log file:

Loading game from file DEBUG with mods:
  - Ludeon.RimWorld
  - Ludeon.RimWorld.Royalty
  - Ludeon.RimWorld.Ideology
Unloading 0 Unused Serialized files (Serialized files now loaded: 2)

Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 24697.
Total: 329.587300 ms (FindLiveObjects: 1.433800 ms CreateObjectMapping: 1.681000 ms MarkObjects: 326.433000 ms  DeleteObjects: 0.038900 ms)

Exception filling window for Verse.FloatMenuWorld: System.NullReferenceException: Object reference not set to an instance of an object
  at RimWorld.Tradeable.get_ThingDef () [0x00010] in <d243303f714d4dc48680ccaecd2f594e>:0
  at RimWorld.Tradeable.get_TraderWillTrade () [0x0000a] in <d243303f714d4dc48680ccaecd2f594e>:0
  at RimWorld.TransferableUtility.TradeableMatching (Verse.Thing thing, System.Collections.Generic.List`1[T] tradeables) [0x0001c] in <d243303f714d4dc48680ccaecd2f594e>:0
  at RimWorld.TradeDeal.AddToTradeables (Verse.Thing t, RimWorld.Transactor trans) [0x00000] in <d243303f714d4dc48680ccaecd2f594e>:0
  at RimWorld.TradeDeal.AddAllTradeables () [0x0009d] in <d243303f714d4dc48680ccaecd2f594e>:0
  at RimWorld.TradeDeal.Reset () [0x00016] in <d243303f714d4dc48680ccaecd2f594e>:0
  at RimWorld.TradeDeal..ctor () [0x0001c] in <d243303f714d4dc48680ccaecd2f594e>:0
  at RimWorld.TradeSession.SetupWith (RimWorld.ITrader newTrader, Verse.Pawn newPlayerNegotiator, System.Boolean giftMode) [0x00024] in <d243303f714d4dc48680ccaecd2f594e>:0
  at RimWorld.Dialog_Trade..ctor (Verse.Pawn playerNegotiator, RimWorld.ITrader trader, System.Boolean giftsOnly) [0x0004d] in <d243303f714d4dc48680ccaecd2f594e>:0
  at RimWorld.Planet.CaravanArrivalAction_Trade.Arrived (RimWorld.Planet.Caravan caravan) [0x0002d] in <d243303f714d4dc48680ccaecd2f594e>:0
  at RimWorld.Planet.Caravan_PathFollower.PatherArrived () [0x0002e] in <d243303f714d4dc48680ccaecd2f594e>:0
  at RimWorld.Planet.Caravan_PathFollower.StartPath (System.Int32 destTile, RimWorld.Planet.CaravanArrivalAction arrivalAction, System.Boolean repathImmediately, System.Boolean resetPauseStatus) [0x000da] in <d243303f714d4dc48680ccaecd2f594e>:0
  at RimWorld.Planet.CaravanArrivalActionUtility+<>c__DisplayClass0_0`1[T].<GetFloatMenuOptions>b__0 () [0x00031] in <d243303f714d4dc48680ccaecd2f594e>:0
  at Verse.FloatMenuOption.Chosen (System.Boolean colonistOrdering, Verse.FloatMenu floatMenu) [0x00030] in <d243303f714d4dc48680ccaecd2f594e>:0
  at Verse.FloatMenuOption.DoGUI (UnityEngine.Rect rect, System.Boolean colonistOrdering, Verse.FloatMenu floatMenu) [0x003b1] in <d243303f714d4dc48680ccaecd2f594e>:0
  at Verse.FloatMenu.DoWindowContents (UnityEngine.Rect rect) [0x000fb] in <d243303f714d4dc48680ccaecd2f594e>:0
  at Verse.FloatMenuWorld.DoWindowContents (UnityEngine.Rect inRect) [0x0009b] in <d243303f714d4dc48680ccaecd2f594e>:0
  at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x001ce] in <d243303f714d4dc48680ccaecd2f594e>:0 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)


This repeatedly reproduces after loading attached save file.

Pheanox

Thanks for the bug report.  I'll have the devs take a look.  I notice its just that one settlement, you can trade with all other settlements, including others of the same faction.