Empire: Deliver Taxes to VOE Outposts
This mod lets you send tax shipments from Empire settlements to outposts from Vanilla Outposts Expanded.
It also lets you set an outpost as a "Financing Location". All payments for Empire stuff will draw silver from that outpost's inventory before hitting your tax map.
This mod should work with existing saves, but only with Empire settlements that you found [b]after[/b] installing the mod. Settlements founded before you installed the mod won't have the delivery options.
If you like this mod, check out my other mod that also adds some Empire-Vanilla Outposts Expanded integration: [url=https://steamcommunity.com/sharedfiles/filedetails/?id=3639720254&tscn=1767712146][b]Empire Settlement from VOE Town[/b][/url]
This mod has been lightly tested, but not extensively so. Please report any bugs you run into with as detailed a description of the bug as you can offer. Especially because my implementation is a little hacky...
Technical Details
This mod works similar to [url=https://steamcommunity.com/sharedfiles/filedetails/?id=3006726393]Vanilla Outposts Expanded: Delivery Logistics[/url], in that it adds a comp to Empire settlements to store the delivery destination settings. However, unlike VOE's Outposts, Empire's settlements are created without an associated def -- which means that adding a comp to them is basically impossible. Looking at the code, it [i]seems[/i] like this was an intentional choice by the developers? But there's no comment explaining why, and it isn't clear to me what benefit there is to having [i]no[/i] def associated with Empire settlements.
So I decided to get around this by simply assigning the vanilla Settlement def to each Empire Settlement right after they're created through a Postfix on WorldSettlementFc.PostMake, which means you can actually add comps to them. However, this technique might have some compatibility issues. It'd be better if the settlements were created with a native def, like how VOE Outposts' are, but that's a change that would have to be made in Empire itself, I believe. Hence my hacky solution here.
(It's also possible that I'm completely wrong in my assessment. I'm not new to coding, but I [i]am[/i] new to C# and Rimworld modding, so maybe there are just conventions I don't understand. Who knows.)