RimWorld

RimWorld

Dynamic Trade Interface
233 Comments
Zeracronius  [author] 10 hours ago 
Most of tradehelpers features are integrated.
SkeL 18 hours ago 
Is this compatible with TradeHelper?
Zeracronius  [author] 3 Jul @ 5:04pm 
Everything is resizable; column headers can be dragged to resize them, the window can be dragged to resize.
The window size and location is also remembered, and as is the column widths.
DubiousPhysics 3 Jul @ 3:31pm 
For what it's worth, I've found that making the window much wider with the resize handle in the bottom right helps a lot with item names.
Travioli 1 Jul @ 8:50pm 
I am aware of the ability to display durability, but at that point only the first word or two of a name is visible
Travioli 1 Jul @ 8:49pm 
Is there a way to reduce font/text size? Some items don't show their hp % because their names are too long
Zeracronius  [author] 26 Jun @ 1:47pm 
@chainlinc3
"colASTrade2RuleIconDef" is a column added by AutoSeller.
You probably have some stored configuration that includes a reference to this column in your mod options.
Opening and saving the mod's column settings should clear any leftover references to it.
chainlinc3 26 Jun @ 8:46am 
I'm getting an error on startup with a minimal 1.6 list of just Harmony and this.

Could not load reference to DynamicTradeInterface.Defs.TradeColumnDef named colASTrade2RuleIconDef

I'd include a hugs log, but it's not updated, so I don't think there's anything I can do about that.
DubiousPhysics 24 Jun @ 6:08pm 
@Zeracronius
That's awesome! I really appreciate how well documented this is.

I completely missed that tooltip, thank you for pointing it out!
Zeracronius  [author] 23 Jun @ 4:05pm 
I have updated the modding documentation to explain all of the supported forms of integrations.

For Favourites, i imagine the easiest option would be for them to simply supply a MoreIconsDef, to add an additional icon in the icons column.

Can be found here: https://github.com/Zeracronius/DynamicTradeInterface/wiki

As for faction reputation in gifting mode, this is actually already shown as a tooltip on the accept button.
DubiousPhysics 21 Jun @ 10:07am 
Thanks for all your hard work on this mod! Hopefully this is a decent spot to leave some feature requests.

- The faction reputation display currently disappears when you enter the gift interface. It would be useful to be able to see this on the gift screen as well.
- A "gift affordable" style button that gifts as much of an item as possible without hitting 100 reputation would be really useful.
- This one is probably a long shot, and might be more on the other mod to use Dynamic Trade Interface's extendability, but I'd love to be able to see Favourites! icons in the trade interface (I linked to the updated version I use; alas, the original seems to be unmaintained, although it does have a source code link [github.com]).
Bogatir 18 Jun @ 2:36pm 
Thats fixed the issue, thank you
Zeracronius  [author] 18 Jun @ 1:36pm 
I have pushed an update that should fix it.
It now doesn't show faction goodwill if target faction is Player.
Bogatir 18 Jun @ 11:10am 
log*
Bogatir 18 Jun @ 11:10am 
Window just does not pop up when you try to trade with your own sity, vanila works perfectly fine tho. Sity has the same faction so you are trading with yourself ig. Heres link [gist.github.com] to that issue
Zeracronius  [author] 18 Jun @ 10:19am 
@Bogatir
I do not understand what the incompatibility is, or the issue at hand.
The goodwill calculation uses the same vanilla function in the same way as the default trade window.
I assume that if RIMMSqol has a situation in which you are trading with yourself, then they have patched the vanilla trade window to support that?
Bogatir 18 Jun @ 1:18am 
found an compactability issue with RIMMSqol sitys. Thats what author of RIMMSqol said:
The mod tries to calculate the goodwill with the player faction from the trader faction. However they fail to safeguard that call against trade with the player faction itself.
ajejebrazorf 14 Jun @ 11:56am 
No worries, it happens. :)
Thanks for the super quick fix, it's working again now!
Zeracronius  [author] 12 Jun @ 2:30pm 
It should now be fixed, however steam does not like updating multiple times in a day, so you may need to resubscribe.

And as a reminder, all previous versions are available from the link in the description!
Zeracronius  [author] 12 Jun @ 2:15pm 
I have found the issue. I am very sorry about the inconvenience.
Turns out there was a previous typo in a file that caused it to load the 1.6 assembly in 1.5.
And i even double checked this multiple times. :steamfacepalm:

The fix should be up in a moment
ajejebrazorf 12 Jun @ 1:08pm 
With today fix it's not working anymore with 1.5 :( I'm getting the default trading window.
DubiousPhysics 31 May @ 10:40am 
Thanks so much for the quick fix! :D
Zeracronius  [author] 30 May @ 7:07am 
Thanks for letting me know, it is now fixed (oops!)
Funny difference between trading and gifting: the direction inverses.
DubiousPhysics 29 May @ 7:38am 
Very minor bug report here: in the gift interface, the "gift none" and "gift all" tooltips are swapped.

Thanks for the awesome mod!
Zeracronius  [author] 25 May @ 1:25pm 
Appreciate the heads up. I will see if i can figure out a solution.
ajejebrazorf 25 May @ 12:28pm 
Found the culprit, thanks for the hint. :) Enabling/disabling "texture compression" from graphic settings didn't make any difference, I tried to remove Graphic Settings + (https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1678847247) and the icons are back. I tried one more time to adding the mod back and icons are gone again. There seem to be a compatibility with that mod.
Zeracronius  [author] 25 May @ 3:19am 
@ajejebrazorf
Looks like your issue is different, and i don't see any errors in your log directly related to DynamicTrade.
However, there is a series of texture loading errors earlier in the log:
"d3d11: failed to create 2D texture id=1889 width=30 height=30 mips=6 dxgifmt=28"
30x30 fits with the size of the icons i use.
I do not know what could be causing this however, and will need to investigate further. Most likely it's an issue on the machine.

Have you done texture conversions? and if so, have you updated it to include any potentially new icons? Perhaps GPU drivers?
ajejebrazorf 25 May @ 2:51am 
Hi, I'm facing the same issue reported by leosefcik about missing icons. https://gist.github.com/HugsLibRecordKeeper/a6c825ebb5350f59d631ac1c3bda920e
You can find Rimsort mod list and save file, hope they help troublehoshooting the issue: https://drive.google.com/drive/folders/1Rm30FxwVPLF2KL9BInWL6sPxi7iXv_9r
Zeracronius  [author] 4 May @ 7:32am 
@DemonsxHunter
AdaChanDesu asked both Ferny and I about this, and i reworked the icons system entirely to allow others to easily add integration.
DemonsxHunter 4 May @ 4:20am 
Can you add patch to Progression: Agriculture, so we can know what seeds we own?
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3418017359
yasosume 3 May @ 5:43pm 
@Zeracronius Ahh so I take it it's a Niilo's Quality of Life error? I'll bring it up to them as well, thank you
Zeracronius  [author] 3 May @ 5:43pm 
NQualityOfLife is Niilo's QoL, and it's erroring in "NQoL_DropSpot_Patch"
Zeracronius  [author] 3 May @ 5:42pm 
@yasosume
That does not seem to be related to the update. In this case you are clicking confirm, and then NQualityOfLife intercepts the trade and subsequently throws an error.
yasosume 3 May @ 4:26pm 
Hey there, after the update I seem to have lost the ability to trade. After hitting accept, the buttons disappear and their goods disappear. Here's a log and screen shot
https://gist.github.com/HugsLibRecordKeeper/a195c10117170a35475906a5150cdf3b
https://imgur.com/a/3aGvYcO
Zeracronius  [author] 3 May @ 1:33pm 
I have pushed an update that should hopefully fix it.
leosefcik 3 May @ 7:25am 
Yeah, could be related because I don't own Ideology, its not that much of an issue for me tho since i can see the tooltips when i hover over them. Thanks for the cool mod
Zeracronius  [author] 3 May @ 6:46am 
@leosefcik
I have had a few reports of the icons missing, but been unable to track it down.
Based on your log, however, i may have identified the issue being related to slaves and ideology. There's a lot of entries in the log related to missing Slavery icon.

I haven't had these issues myself, but i'll be looking into it.
leosefcik 2 May @ 12:06pm 
Nvm, for some reason the white buttons at the top of the window are invisible for me. Here's a report and screenshot if it helps:
https://gist.github.com/HugsLibRecordKeeper/53f92f2c20df08bf278f5f08f8783f98
https://imgur.com/a/xIWWw8p
leosefcik 2 May @ 11:56am 
"- Togglable and resizable summary section similar to TradeHelper."
Hello, sorry if im just super dumb but where do i toggle this? From my understanding, you can make it look like the 1st screenshot, but i cant find the option anywhere :udder:
Zeracronius  [author] 26 Apr @ 11:27am 
@EPrime
I think you are lacking an update, i can't reproduce the issue on my end, and all the XML and code looks fine as far as i can tell.
Issues with gene icons was what turol reported, and that got fixed.
EPrime 26 Apr @ 10:20am 
I should have the latest bits, but get an error for GenepackDrawable:GetSearchString (GenepackIconDef column) (otherwise same as for tech print below)

Thank you for keep this updated - it's the best trade interface! :)
Zeracronius  [author] 25 Apr @ 4:42pm 
Pushed a fix.
Zeracronius  [author] 25 Apr @ 4:18pm 
Darn, seems the merge issue leading to gene icons breaking affected more files than I thought.
Thanks for letting me know, I will have it fixed as soon as I can.
Seb 25 Apr @ 3:25pm 
I think the last update to Dynamic Trade Interface broke compatibility with Show Known Techprints .

Error:
[Dynamic Trade Interface] Unable to locate draw callback 'DynamicTradeInterface.UserInterface.Columns.ColumnExtraIconTypes.TechprintDrawable:GetIcons' for IconDef TechprintIconDef.
Ensure referenced method has arguments matching 'Tradeable' and a return type of 'IEnumerable<(Texture, string?, Color?)>'
turol 24 Apr @ 4:47am 
@Zeracronius Confirm fixed. Thanks for the quick response.
Zeracronius  [author] 24 Apr @ 3:57am 
Turned out that it was caused by a typo. Last update included a major refactoring to allow other mods to add additional icons.
It should be fixed now.
Zeracronius  [author] 24 Apr @ 3:40am 
Probably, i'll look into it!
turol 24 Apr @ 2:59am 
I think the last update broke the trade window icons from "Random's gene assistant". There should be a little colored icon next to the item name indicating if you have the genes in your bank. Now it's gone.
Zeracronius  [author] 22 Apr @ 2:42am 
@AdaChanDesu
Asking is perfectly fine, the rude part is if people start demanding.

I am not familiar with that mod, I can look into it, but it may be simplest if they did it on their side.
It would most likely be the code they already have, just running in a harmony patch on the More Icons method.
AdaChanDesu 21 Apr @ 11:12am 
Hello there, knowing the possibility of sounding like an obnoxious ass, could you possibly look into compatibility with Progression: Agriculture? It adds icons to the trade menu that show whether you've already unlocked a seed bundle that traders have available for sale. I've looked into the source code of both mods and unfortunately my Intellectual skill isn't high enough to do this kind of patching yet (gotta learn that soon as asking modders for anything just seems like a rude thing to do)