[MOD] Player-owned Warehouses with UI Mod

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Post Reply
LegionOfOne
Posts: 122
Joined: Sun, 16. Dec 18, 13:16
x4

[MOD] Player-owned Warehouses with UI Mod

Post by LegionOfOne » Sun, 9. Jun 19, 08:40

This is an update of the ingenious Player-owned Warehouses by TheDeliveryMan.

The original description :
TheDeliveryMan wrote:
Sat, 5. Jan 19, 23:34
Features:
  • Add tradewares to storage only player stations.
  • The manager will then automatically create and update buy and sell offers based on available funds, storage capacity and stock levels.
  • You can choose per ware if you want buy only, sell only or buy and sell.
  • Pricing can be set to either automatic or locked at average.
  • Sell offers can be further fine tuned in the vanilla station overview. Unfortunately, this is currently not possible for buy offers.
Usage:
  • Build a dedicated warehouse, that's station with a dock/pier and storage modules.
  • Do not add any production modules to the warehouse! This would most likely mess up buy/sell offers calculations and storage allocation for resources/products.
  • Assign a manager and transfer funds to the warehouse.
  • Get a ship you currently don't need for any other task. A scout will do just fine.
  • Set of the ship default behaviour to "TradeStation Management".
  • In the dialog select your warehouse and the tradeware.
  • Select if you want to have sell and/or buy offers. If neither buy nor sell is selected, then the tradeware will be removed from the warehouse.
  • Select if you want the prices to be locked at average or if you want dynamic pricing.
  • Click confirm.
  • It takes a couple of minutes before trade offers show up.
  • Sell offers will show up only if the warehouse has something in stock. Buy offers require funds and free storage space.
  • The ship will set its default behaviour to dock at the warehouse and is free for other tasks.
This worked great, but I was frustrated to be unable to see and edit the buy prices of wares in the Logical Overview.
So I modded the Logical Overview UI, thanks to the G_Workaround mod, which is required for this mod to work.

With this new version it is now possible to see and edit the buy and sell prices of wares in Warehouses, as long as there is one unit of the ware in stock.

There is now also a new way to add tradewares to a station : my version of the StationMule.
The Mules can now add tradewares automatically, without having to use the TradeStation Management script one ware at a time.
The Mules cannot remove tradewares from a station though, so the script is still useful for that at least, and to add specific wares that your didn't add with Mules.

Useful tip : if you set the buy price of a ware to absolute minimum, no regular trader will sell this ware to the station, because there is no way to make a profit. But Mules don't care about profits :)
In the same way, if you set the sell price of a ware to absolute maximum, no regular trader will buy this ware from the station.
It is a good way to block other factions from buying OR selling a ware, while letting them do the other, which the "Forbid trade with other factions" option does not allow.

The mod is up to date with version 2.5
Further versions may bring changes to the Logical Overview UI.
These changes should be overwritten by the mod without bugs, but therefore without the new changes to the UI (which may include fixes or new features), until I update it.
Further versions may break UI modding alltogether though.

This mod cannot work on the Steam Workshop for now, just like all other UI mods.

Here are the downloads, don't forget to get the G_Workaround as well.
Mega Download
Rapidgator Download

Post Reply

Return to “X4: Foundations - Scripts and Modding”