X4: Foundations

X4: Foundations

Not enough ratings
Better supplies
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
18.384 KB
19 Aug, 2024 @ 1:05am
30 Dec, 2024 @ 5:45am
2 Change Notes ( view )

Subscribe to download
Better supplies

Description
The main goal of this small mod is to improve the supply of fighter fleets based on carriers. The auxiliary and the carrier ships are free to take any role in the fleet and receive any tactical orders, not limited to behavior/role "Supply Fleet". Trade offers to buy resources are enabled all the time.
The following game issues have been revised.
1. Allowed "Supply Fleet" order for carriers (in addition to auxiliaries).
2. Enabled buy trade offers for carriers and auxiliaries by default.
Notes:
* Including during fleet battles (don't expose arriving traders for attacks).
* Only for newly built ships. For existing ships, you need to set default behavior "Supply Fleet" and cancel it (once).
3. Improved resupply script logic for searching for the nearest station or supply ship.
27 Comments
arshiba  [author] 27 Jul @ 7:40am 
@kurohamu61. Not directly. The ship type allows order (default behavior) "Supply Fleet", which in turn allows trade offers. Originally trade offers are disabled when the order is canceled. I have changed this - the offers remain after the cancellation.
Have you done (as indicated in the description) "For existing ships, you need to set default behavior "Supply Fleet" and cancel it (once)."?
kurohamu61 27 Jul @ 2:54am 
Thanks for your reply.
Does this mean that the offer applies if the relevant section of the macro file is <ship type="carrier"/>?
Argon's Colossus is an “aircraft carrier,” but it seems that some ships do not offer trade.
Please tell me the conditions under which you will not make a offer.
arshiba  [author] 24 Jul @ 12:17am 
@mazdamundi, I don't know. First try to disable this mod and check the ships' behavior. Probably the problem is not related to the mod, then you need to ask on the official forum.
mazdamundi 23 Jul @ 2:45am 
how do i fix ships not repairing when there is a Aux in the fleet they are in?
arshiba  [author] 20 Jul @ 12:36am 
@kurohamu61. The order becomes available based on the ship type (for 'carrier' and 'resupplier'), not the class. The ship type does not affect the actual ability to be a carrier. Strictly speaking, absolutely all ships in the game are "carriers", because they have at least a XS deck (for spacesuits), and in ascending order - M ships have S decks and so on.
To check the ship type, look at its macro, which is located in the file ...\assets\units\size_??\macros\*.xml at xpath /macros/macro/properties/ship[@type]
kurohamu61 19 Jul @ 4:02am 
Thanks for the great mod!
I am playing with X4RE and there are some carriers that reflect trade offers and some that do not. If the ship class alone determines the ability to do this, then this phenomenon should not be possible. At least all those ships were working fine as carriers.

It does not work on my personally created aircraft carrier either. I would like some advice.
Stroichik 27 Apr @ 11:11am 
Also noticed, that fleet fighters from other carriers sometimes land on Aux ship for ressuply, but dont undock and go back to their respective carriers afterwards if fleet is not in battle. Have seen aux with all docks occupied by fighters and his traders could not dock on Aux to bring wares for cap ship repair.
Stroichik 26 Apr @ 8:21pm 
Sometimes, although not often, but there is a problem with that behaviour.
If carrier approaches station that has fighters on defence and they are currently fighting and in need of resupplying - they will land on carrier, instead of station. But since they are on defence duty, if carrier flyies away from station - fighters will not launch from carrier on their own, since there is no enemy around carrier. Its same thing if you try to assign fighters on station, while they are docked to a Wharf, they simply wont go, unless u manually make them undock from station they are currently docked to.
Stroichik 25 Apr @ 2:52am 
Oh, i see. Thanks.
arshiba  [author] 25 Apr @ 2:48am 
@Stroichik. No. This behavior is what I've reworked. In my point of view, this is a more logical - to resupply on the nearest available ship, rather than to travel a hundred or two kilometers to the home ship through the enemy sector. You can adapt, I believe :steamhappy: