[1.00 THROUGH 4.00 HF3][BUG WITH POSSIBLE SOLUTION] Carrier Attack Groups Have To Fully Dock Before They Attack Again

Ask here if you experience technical problems with X4: Foundations.

Moderator: Moderators for English X Forum

Post Reply
User avatar
RoverTX
Posts: 1436
Joined: Wed, 16. Nov 11, 18:37
x4

[1.00 THROUGH 4.00 HF3][BUG WITH POSSIBLE SOLUTION] Carrier Attack Groups Have To Fully Dock Before They Attack Again

Post by RoverTX » Thu, 3. Jun 21, 20:47

Right now escort ships assigned to attack after they are done attacking must dock before they can attack again, even if they get a new attack order from their commander. This leads people to think that carriers our broken because they see attack groups just sitting there waiting to dock.

To this end I did some research and found a simple improvement consisting of single conditional check to see if the current escort ship has only one order to dock at its parent and if so cancel the dock order and then give them the attack order.

Code: Select all

<do_if value="this.assignedcontrolled.orders.count == 1 and this.assignedcontrolled.order.id == 'DockAt' and this.assignedcontrolled.order.$destination == this.assignedcontrolled.commander">
  <cancel_order order="this.assignedcontrolled.order"/>
</do_if>
With this change escorts assigned to attack will now stop waiting to dock if given an attack order via their fleet. This means a lot less sitting duck fighters hanging around your carriers waiting to dock.

Note only ships waiting for an open dock will still be able to attack, ships that have an assigned dock are in the critical phase of the docking order and cannot abort docking. Attacking will still be put on their order queue though.

I have launched this as a mod found here on steam. The mod's source is also hosted on github here.

The feedback so far from end users has all been positive, reaching out to user for more direct feedback.

Post Reply

Return to “X4: Foundations - Technical Support”