[MOD] Reaction Force

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

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

ShiBDiB
Posts: 78
Joined: Mon, 7. May 07, 00:12
x4

Re: [MOD] Reaction Force

Post by ShiBDiB » Tue, 20. Apr 21, 19:22

https://steamcommunity.com/sharedfiles/ ... 2463118472

Steam user I.C.E. has taken over the project. I don't play X4 enough to give something this popular the attention it needs.
-----
My Mods
Go Home Drone, Reaction Force, Disable Story, Pay The Builder, Landlord, Training Exercise
Github with the latest (Unstable) Versions
Nexus Page
Steam Workshop Page

Scoob
Posts: 10072
Joined: Thu, 27. Feb 03, 22:28
x4

Re: [MOD] Reaction Force

Post by Scoob » Fri, 1. Jul 22, 21:19

Hi, I'm using the updated version of this mod maintained by I.C.E. (Nexus link: https://www.nexusmods.com/x4foundations/mods/703) and I've run into an issue. As I have the GoG version of the game, I'm blocked from commenting on the Steam Workshop page for this mod (Workshop Link: https://steamcommunity.com/sharedfiles/ ... 2463118472) and it appears it's on Steam where I.C.E. is active.

I've run into quite a serious issue where, when calculating the threat factor for a Reaction Fleet group to respond to an enemy, it gets the values wrong. Basically, if a small group of ships - say a wing of Kha'ak - is attacking a player asset, their threat is a *total* of all ship's Hull, Shield and DPS. This makes sense. However, when the Reaction Force is assessed, only the *leader* of the group is taken into account.

In essence, I'm seeing (for example) three Kha'ak Fighters be "too risky" for a wing of 12 well-equipped Eclipse, because only the lead Eclipse's Shield, Hull and DPS is used in the calculation.

Now, I could just up the risk factor, but that defeats the point and the calculation is wrong. The game clearly posts to the Log *why* a response was cancelled, so I can clearly see the numbers. Example:

Threat level was too high.
Enemy ships amount: 3 (that small Kha'ak group)
With total 48481.227hp and 1640dps (sounds about right)
While RRF only has 20804hp and 1955dps (that's the figure for ONE ship, not all 12!)
Predicted LOSS (12.6854 VS 24.7872) is outside risk allowed.

With Lone ships - such as Destroyers - set as individual Reaction ships, they work great. Groups don't as subordinates are not counted.

Note: my Reaction fighter groups subordinates are set to "Attack" and they're also asked to remain docked at a station until needed.

Hoping posting here will get the attention of I.C.E.

Edit: After further testing, this is a quirky one, requiring a specific situation in order for it to get the calculation wrong. I've managed to get it working by changing ONE setting that shouldn't make any difference.

Basically, here are the settings that DON'T work, causing the calculation to be wrong, not accounting for subordinates:

Home: My station
Destination: blank
Dock (1/4) - so ships dock between sortees
Assign as Home base? Yes (de-clutter the Properly Owned list)
Response Range: 1/3
Allowed Threat level: 10/20
Respond to Ships: Yes
HP% Response Point: 100/100
Respond to C ships: Yes
HP% Response Point: 70/100
Respond to station: Yes
HP% Response Point: 100/100
Respond to Player: Yes
Respond to Distress: No
Silent Notifications: No
Attack S: Yes
Attack M: Yes
Attack L: Yes
Attack XL: No.

A fighter group with these settings will NOT respond to any attacks, giving the "too risky" reason, then give values ONLY for the group leader, not the entire group. Clearly shown in the Log.

If however, I set "Assign as Home base?" to NO, the fighter group will respond just fine in the same situation. Setting homebase for Fighter Groups is great as it keeps the Property Owned list tidy. However, subordinates being docked appears to break the calculation. Note: some subordinates were docked on the Pad, others in internal storage but the leader was in internal storage.


Cheers.

Post Reply

Return to “X4: Foundations - Scripts and Modding”