X4: Foundations
0 of 0

File information

Last updated

Original upload

Created by

Pico5tirets

Uploaded by

Pico5tirets

Virus scan

Safe to use

Tags for this mod

About this mod

You want to supply one of your stations with a specific ware from another of your stations ? you need a space bridge !
Simple and efficient : tell a ship to tranport a ware from a station to another. Period.

Permissions and credits
AIScript to tell a ship to transport wares from one of your stations to another.

5 parameters :
- Supplier station : supplying station (must be owned by the player)
- Supplier Subordinate ? to assign the ship to the supplier station
- Customer station : station in need (must be owned by the player)
- Build Storage ? (do you want to supply the build storage of the customer station ?)
- Warelist : list of wares that have to be transfered (in priority order)

Some notes because, it's not that simple actually :
--> the script is based on "trade offers" so some things to know :
  -- trade offers are not controlled by player : even if you want to transfer a ware, if your management staff don't : you can't do it with this script (I want to stay close to the vanilla gameplay)
  -- trade offers are not "real time" : for example, if you build a production module, it can take time (several minutes) before offers for raw materials appear, so the ship wil not start immediatly
  -- a ship does not see same buy/sell offers if it is assigned to a station or not (I don't know why and I don't really understand why : I just noticed that during test sessions...)
--> the ship transports the maximum it can depending on its own free cargo space, the sell offer of the supplier station and the buy offer of the customer station
--> the ship stays next to the customer station if there is no more transfert to do (to make it stay next to the supplier station is not easy... I thought so but it is not xD )
--> the ship can transport only one ware at a time, starting with the first selected, then with the next if there is no possible transfer for the first and next and next and next

"Basic" because I want to make several "versions" of the script : "Advance", "Expert", "God", "Player" with different features depending on trade level of the pilot.
So features to come : 
- possibility to supply a faction station
- possibility to supply a whole sector
- transport more than one ware each time
- possibility to buy ware from a faction station
- possibility to buy ware from a whole sector
- two ways bridge : to not come back empty !!!
- maybe more

I'm opened to feedbacks (good and bad), bug reports, etc but, I don't have a lot of time to code... so don't expect quick answers from me (I will answer !)