Enemy interceptors never catch up, possible solution.

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

Moderator: Moderators for English X Forum

BmB
Posts: 94
Joined: Sun, 27. Aug 17, 20:34
x4

Enemy interceptors never catch up, possible solution.

Post by BmB »

Since the admin is an asshole and locked the previous thread for clearly describing the problem, I will post another.

I searched for some mods and found AI_fast_approaching_attack by bee, after examining the code he was modifying for a bit, I noticed that the "attack run" procedure for fighters allows attacks in travel mode against big targets, but not small targets.

fight.attack.object.fighter.xml

Code: Select all

<move_to object="this.ship" destination="$target" flightbehaviour="$Behaviour" forcesteering="true" travel="$duration_movement gt 40s">
fight.attack.object.bigtarget.xml

Code: Select all

<move_to object="this.ship" destination="$target" flightbehaviour="$flightbehaviour" forcesteering="true" travel="($duration_movement gt 40s) or @$bigtarget.travel.active">
The code is virtually identical except the bigtarget one also checks if the target is in travel mode during attack, I haven't tested it yet but it seems at first glance that not having the "or travel.active" condition against fighters disallows making attack runs on fighter sized ships that are in travel mode.

No clue what to do about start-stopping behaviour, but I suspect it has to do with follow commands not using the chase flight mode, instead using generic move to a set distance from the follow target, so once the distance is reached the move completes and travel mode is aborted, and then another move is started to catch up. The solution then would be to reprogram follow commands to use chase flight mode and rework the move completion logic. I think this would be a more extensive change than the one-liner fix above.
CBJ
EGOSOFT
EGOSOFT
Posts: 54187
Joined: Tue, 29. Apr 03, 00:56
x4

Re: Enemy interceptors never catch up, possible solution.

Post by CBJ »

Since you don't seem to be able to read the forum rules about either personal insults or discussion of moderator actions, this thread is going to be locked too, and you'll get your final formal warning as well. Carry on like this and you'll be permanently removed from the forum.

If you'd like to repost your Tech Support issue without the insults then feel free.

Return to “X4: Foundations - Technical Support”