Supply chains [trade scripts for internal logistics]

If you liked this item, please rate it up on Steam Workshop page.

Author: Highway To Hell

Last revision: 8 Feb, 2025 at 15:51 UTC (1)

File size: 49.42 KB

On Steam Workshop

Description:

This scripts heavily inspired by X3TC era "CLS1/CLS2" scripts as well as X4 "Mules and warehouses" scripts.

Collection of trade scripts for player stations. Simple and effective relocation of goods between player owned (not only) stations.

There are 4 scripts:
  1. Supply courier
  2. Supply courier multi
  3. Sales agent
  4. Infrastructure courier

Supply courier

Establishes supply/demand connection between two chosen stations.
Script respects any trade restriction (faction restriction, buy/sell limit) but not the price. Courier will try to be effective. It will use as much cargo space as possible for both parts of the trips. I recommend to use L traders for this role.

Supply courier multi

Very similar to previous one, except it has two uneven parties.
First is warehouse (a station which can trade everything relevant in your economy), second is the list of the stations (in my example factories). This script randomly chooses a station from the list and runs supply courier script between the warehouse and chosen station. It will continue to serve chosen pair until no available trades will be available. In this case it will switch to another pair. This script allows to balance your traders between multiple stations.

Sales agent

This script serves to distribute excess wares from station (aka "warehouse"). There three groups of recipient station, each group with own threshold. If warehouse has some wares above certain threshold then excess of it would be traded to random recipient station.

Infrastructure courier

This trader would serve any build or ressuply demands of your stations.

How to quickly configure large fleet of traders?

Every script fully supports mimic command. So you need to configure only one ship then choose any number of additional ships and order them to mimic behavior of the configured ship. If requirements are met then ships will fully copy order from the ship.

Problems, issues, design drawbacks

This is very early version, expect much to be changed.
Please report any problems or bugs with the scripts.
Currently scripts require some skill from pilot (1 star or 2 star), this should not be a problem as basic and 1-star seminars are easy to buy. If you have another opinion, please, comment about this.
No support of language files. Currently all text is hardcoded — to change this is my current priority.

Download
Revisions:

Old revisions of this mod are available below. Click the link to download.