RimWorld

RimWorld

Dynamic Trade Interface
Error when trying to trade.
When trying to trade the window pops up but nothing from the caravan I'm trying to buy from shows up. And the error logger pops up with this. https://gist.github.com/HugsLibRecordKeeper/78aacb4ae6417a5978ddd9df6892d759
< >
Showing 1-9 of 9 comments
TeH_Dav Jan 24, 2024 @ 5:38am 
I'm having the same issue now...
Zeracronius  [developer] Jan 28, 2024 @ 3:04am 
Looks like there is an item with missing icon.
As far as i can tell, the vanilla method to draw icon is failing.
I'll add some error handling to let it skip icons if they are missing
Zeracronius  [developer] Jan 28, 2024 @ 3:05am 
Sorry for late response, i was not notified about a created thread
Ralathar44 Mar 14, 2024 @ 5:23pm 
Recent update broke trade UI for me and I'm getting no trader inventory and the following error messages:

JobDriver threw exception in toil MakeNewToils's initAction for pawn Brandon driver=JobDriver_TradeWithPawn (toilIndex=1) driver.job=(TradeWithPawn (Job_2591507) A=Thing_Human99139)
System.TypeLoadException: Could not resolve type with token 0100008d (from typeref, class/assembly Verse.IWindowDrawing, Assembly-CSharp, Version=1.5.8839.705, Culture=neutral, PublicKeyToken=null)
at DynamicTradeInterface.Patches.Dialog_TradePatches.Prefix (RimWorld.Dialog_Trade __instance, System.Boolean ___giftsOnly) [0x0000c] in <1fe643ef8ccc4c90b493f70cc883d2cd>:0
at (wrapper dynamic-method) RimWorld.Dialog_Trade.RimWorld.Dialog_Trade.PostOpen_Patch2(RimWorld.Dialog_Trade)
at Verse.WindowStack.Add (Verse.Window window) [0x0003a] in <cd7169108ea74757aa50c5b33d275c15>:0
at RimWorld.JobDriver_TradeWithPawn+<>c__DisplayClass3_0.<MakeNewToils>b__1 () [0x00035] in <cd7169108ea74757aa50c5b33d275c15>:0
at Verse.AI.JobDriver.TryActuallyStartNextToil () [0x001b0] in <cd7169108ea74757aa50c5b33d275c15>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch3 (string)
(wrapper dynamic-method) Verse.AI.JobUtility:Verse.AI.JobUtility.TryStartErrorRecoverJob_Patch2 (Verse.Pawn,string,System.Exception,Verse.AI.JobDriver)
Verse.AI.JobDriver:TryActuallyStartNextToil ()
Verse.AI.JobDriver:ReadyForNextToil ()
Verse.AI.JobDriver:Notify_PatherArrived ()
Verse.AI.Pawn_PathFollower:PatherArrived ()
(wrapper dynamic-method) Verse.AI.Pawn_PathFollower:Verse.AI.Pawn_PathFollower.TryEnterNextPathCell_Patch1 (Verse.AI.Pawn_PathFollower)
(wrapper dynamic-method) Verse.AI.Pawn_PathFollower:Verse.AI.Pawn_PathFollower.PatherTick_Patch3 (Verse.AI.Pawn_PathFollower)
(wrapper dynamic-method) Verse.Pawn:Verse.Pawn.Tick_Patch2 (Verse.Pawn)
Verse.TickList:Tick ()
(wrapper dynamic-method) Verse.TickManager:Verse.TickManager.DoSingleTick_Patch4 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch1 (Verse.Game)
(wrapper dynamic-method) Verse.Root_Play:Verse.Root_Play.Update_Patch1 (Verse.Root_Play)



AND

Exception filling window for RimWorld.Dialog_Trade: System.NullReferenceException: Object reference not set to an instance of an object
at RimWorld.Dialog_Trade.FillMainRect (UnityEngine.Rect mainRect) [0x00006] in <cd7169108ea74757aa50c5b33d275c15>:0
at (wrapper dynamic-method) RimWorld.Dialog_Trade.RimWorld.Dialog_Trade.DoWindowContents_Patch1(RimWorld.Dialog_Trade,UnityEngine.Rect)
at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x001d3] in <cd7169108ea74757aa50c5b33d275c15>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch3 (string)
Verse.Window:InnerWindowOnGUI (int)
UnityEngine.GUI:CallWindowDelegate (UnityEngine.GUI/WindowFunction,int,int,UnityEngine.GUISkin,int,single,single,UnityEngine.GUIStyle)


Disabling the mod returns normal vanilla trade functionality with the trader's inventory intact.
Isajii Nov 7 @ 6:22am 
Hello.

@Zeracronius

Please help? :)

In Bazzite Linux with native RimWorld 1.6 (from GoG.com ), it looks like the Auto Seller column just does not appear. As a sanity check, Auto Seller was tested and works normally with the vanilla trade window.

There is something in the Hugslib log about "ASBindFail", not sure if it's related.

This happens with the following mods (& load order):
Harmony, RimWorld, RimWorld - Royalty, RimWorld - Ideology, RimWorld - Biotech, RimWorld - Anomaly, Hugslib, Auto Seller, Dynamic Trade Interface, Random's Gene Assistant.

Hugslib log:
RimWorld 1.6.4633 rev1257 UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Message (string) RimWorld.VersionControl:LogVersionNumber () Verse.Root:CheckGlobalInit () Verse.Root:Start () Verse.Root_Entry:Start () [HugsLib] version 12.0.0 UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Message (string) HugsLib.Utils.ModLogger:Message (string,object[]) HugsLib.HugsLibController:InitializeController () HugsLib.HugsLibController:EarlyInitialize (Verse.ModContentPack) HugsLib.Core.HugsLibMod:.ctor (Verse.ModContentPack) System.Reflection.RuntimeConstructorInfo:InternalInvoke (object,object[],bool) System.Reflection.RuntimeConstructorInfo:DoInvoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) System.Reflection.RuntimeConstructorInfo:Invoke (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) System.RuntimeType:CreateInstanceImpl (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[],System.Threading.StackCrawlMark&) System.Activator:CreateInstance (System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[]) System.Activator:CreateInstance (System.Type,object[]) Verse.LoadedModManager:CreateModClasses () Verse.LoadedModManager:LoadAllActiveMods (bool) Verse.PlayDataLoader:DoPlayLoad () Verse.PlayDataLoader:LoadAllPlayData (bool) Verse.Root/<>c:<Start>b__10_1 () Verse.LongEventHandler:RunEventFromAnotherThread (System.Action) Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__28_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 () Loading game from file New Arrivals1 - No AutoSeller DTI Column with mods: - brrainz.harmony - Ludeon.RimWorld - Ludeon.RimWorld.Royalty - Ludeon.RimWorld.Ideology - Ludeon.RimWorld.Biotech - Ludeon.RimWorld.Anomaly - UnlimitedHugs.HugsLib - Supes.AutoSeller.Core - zeracronius.dynamictradeinterface - rimworld.randomcoughdrop.geneassistant UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Message (string) Verse.SavedGameLoaderNow:LoadGameFromSaveFileNow (string) Verse.Root_Play/<>c:<Start>b__1_1 () Verse.LongEventHandler:RunEventFromAnotherThread (System.Action) Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__28_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 () A hidden ritual precept was missing, adding: Funeral (no corpse) UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Warning (string) RimWorld.Ideo:ExposeData () Verse.PostLoadIniter:DoAllPostLoadInits () Verse.ScribeLoader:FinalizeLoading () Verse.Game:LoadGame () Verse.SavedGameLoaderNow:LoadGameFromSaveFileNow (string) Verse.Root_Play/<>c:<Start>b__1_1 () Verse.LongEventHandler:RunEventFromAnotherThread (System.Action) Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__28_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 () ASBindFail UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Message (string) RWASFilterLib.ASLibMod:Threadex () 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 () [HugsLib][ERR] Exception during PrepareLogData: System.IO.FileNotFoundException: Log file not found:/tmp/rimworld_log [Ref 4EF72902] Duplicate stacktrace, see ref for original UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Error (string) HugsLib.Utils.ModLogger:ReportException (System.Exception,string,bool,string) HugsLib.Logs.LogPublisher:PrepareLogData () HugsLib.Logs.LogPublisher:CopyToClipboard () HugsLib.Logs.Dialog_PublishLogsOptions:DoWindowContents (UnityEngine.Rect) Verse.Window:InnerWindowOnGUI (int) UnityEngine.GUI:CallWindowDelegate (UnityEngine.GUI/WindowFunction,int,int,UnityEngine.GUISkin,int,single,single,UnityEngine.GUIStyle)
Last edited by Isajii; Nov 7 @ 6:34am
Zeracronius  [developer] Nov 7 @ 7:19am 
There is nothing in that log that indicates a problem with this mod. Does the mod itself work?
Did you check for the column in the configuration menu?
That's where you can add and remove columns.
Isajii Nov 7 @ 1:31pm 
Originally posted by Zeracronius:
There is nothing in that log that indicates a problem with this mod. Does the mod itself work?
Did you check for the column in the configuration menu?
That's where you can add and remove columns.

Hi Zeracronius.

Yes, the 'colASTrade' column did not appear as one of the options in the configuration menu. (That column showed up on a Windows box, but not the Linux machine, strangely.)

Dynamic Trade Interface itself works very nicely, actually. Thank you!

It's just for whatever reason the two mods don't seem to want to integrate, and there aren't any error messages. >_<;

EDIT: Here's a screenshot of the available columns
[img]https://anterras.net/pics/screenshot_20251107_163920.png[/img]
Last edited by Isajii; Nov 7 @ 1:49pm
Zeracronius  [developer] Nov 7 @ 2:07pm 
There isn't much i can do at that point unfortunately. The columns are defined by ColumnDefs, and the AutoTrade mod adds it's own one.
So if there is no errors then it sounds like column is not being provided to the mod for some reason.
Basically, the integration is not on my side.
Isajii Nov 7 @ 4:40pm 
@Zeracronius

Thank was it, thank you!!

The file 'DTI_ASColumnDefs.xml' was entirely missing from the '/1.6/Defs' folder in AutoSeller. Copying it from '/1.5/Defs' to there made the colASTrade column show up in Configuration, and adding the column got the usual auto-selling behavor to kick off, yay! \^o^/

I'm surprised no one else has complained... (rhetorical question) Maybe Rimworld under Windows loads things differently?
Last edited by Isajii; Nov 7 @ 4:45pm
< >
Showing 1-9 of 9 comments
Per page: 1530 50