[6.20] M/smaller ships won't fire EMP missiles against other M/smaller ships.

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

Moderator: Moderators for English X Forum

Forum rules
See full rules at Technical Support Request Rules

Required Information in all Technical Support Requests

Please ensure that you provide the following information for all questions posted in this Technical Support forum.
  • Version and language (e.g. 8.00 Hotfix 3, English, etc.).
  • Whether or not your game is modified using any third party scripts or mods (see note below).
  • The game start you originally selected for the game in which the problem occurred.
  • Exact nature of the problem, where and when it occurs and what you were doing at the time.
  • Any possibly relevant changes you have made to your game, system, or software before the issue occurred.
  • Where appropriate, additional symptoms, error messages, links to saves, screenshots and crash dump files (see this Wiki entry).
  • Your system specifications in the form of a DxDiag report and vulkaninfo (see this Wiki entry).
Failure to provide all this information will make it pretty much impossible for people to help you and may mean that it takes longer for your problem to be identified and hopefully solved. So please don't waste your own time and everyone else's by just posting something like "My game freezes. Help!!!".

If you are supplying information that will not conveniently fit into posts in this forum (approx 70,000 character limit per post), in the worst case you can split long text files across 2 consecutive posts, or ideally you can upload the data to a reputable public fileshare site (a few examples are Google Drive, DropBox or PasteBin, etc) but please don't use sites that spam advertising or require registration for downloads. Please use in your post the open public sharing link to your file(s) that will not require any account or registration for others to download.

Note: Support for third party modifications must be provided by the authors of those modifications, and any requests for such support should be posted in the appropriate thread in the Scripts and Modding forum.
Mookau
XWiki Moderator
XWiki Moderator
Posts: 181
Joined: Tue, 8. Sep 20, 05:31
x4

[6.20] M/smaller ships won't fire EMP missiles against other M/smaller ships.

Post by Mookau »

OS: Linux
Version: 6.20
Language: English
Modified: No
Game Start: Budgeted Start

Problem:
S\M ships equipped with EMP missiles won't fire them when attacking another ship of M size or smaller.

How to Reproduce:
Load a fighter with missile launchers, and only EMP missiles. Tell them to attack a (M or smaller) target and they will chase them but never fire a shot.
Alternatively - arm a fighter with mixed weapon loadouts (missiles + normal weapons), they will fire their regular weapons, but not any of their EMP missiles.

Loading the save below, there are two Asps with loadouts as above.
Use either Asp to target any M or smaller ship in the area.
Watch them do their attack runs, noting their missile amounts in their loadout, and that they never use them.

Save File:
https://drive.google.com/file/d/1OnZA4i ... sp=sharing

Notes:
This bug was actually sent to me by DeadAir. I double checked and tested the bug myself, and can confirm that fighters will never fire EMPs in the above situation.

Research:
There appears to be a bug within the "fight.attack.object.fighter.xml" with the line:

Code: Select all

<do_if value="not $target.isclass.ship_xs and ((not this.ship.dps.lasers.all and this.ship.dps.missiles.all) or (this.ship.dps.missiles.all gt 0 and player.age gt $delaymissiles))">
Firstly the section: "this.ship.dps.missiles.all gt 0" is a problem because EMP missiles have an 'explosiondamage' of 0 (as listed in the missile_emp_mk1_macro.xml file). Thus 'this.ship.dps.missiles.all' can never be greater than 0 for a ship loaded with only EMPs, so ships with mixed weapons will never fire their EMP missiles.

Secondly, the section: "not this.ship.dps.lasers.all and this.ship.dps.missiles.all" is intended to filter out ships so that we are left with ships that only have missiles, however it doesn't check the existence of missile weapons, instead it checks if the weapon groups have any DPS. A 0 here will evaluate to false, so this check fails as well due to EMPs having 0 damage.


Fix:

A fix that maintains the status quo would be to change the check from the missile dps amount to the missile storage amount.

Code: Select all

<do_if value="not $target.isclass.ship_xs and ((not this.ship.dps.lasers.all and this.ship.ammostorage.missile.count) or (this.ship.ammostorage.missile.count gt 0 and player.age gt $delaymissiles))">
Alternatively, though it would be a mechanical change, giving EMP missiles a damage amount should also fix it.
Mookau
XWiki Moderator
XWiki Moderator
Posts: 181
Joined: Tue, 8. Sep 20, 05:31
x4

Re: [6.20] M/smaller ships won't fire EMP missiles against other M/smaller ships.

Post by Mookau »

Beep boop.

Apologies, I know bumping is generally frowned upon, but this issue persists even in the beta. I believe all the posts about bugs since the beta released have drowned this (and my other post) out a bit.
Alan Phipps
Moderator (English)
Moderator (English)
Posts: 32516
Joined: Fri, 16. Apr 04, 19:21
x4

Re: [6.20] M/smaller ships won't fire EMP missiles against other M/smaller ships.

Post by Alan Phipps »

You have one supportive/similar report from another player.
A dog has a master; a cat has domestic staff.
Exidrial
Posts: 32
Joined: Sat, 1. Aug 15, 22:06
x4

Re: [6.20] M/smaller ships won't fire EMP missiles against other M/smaller ships.

Post by Exidrial »

This appears to still be an issue on 7.0
theazza10
Posts: 33
Joined: Thu, 18. Jul 24, 10:53
x4

Re: [6.20] M/smaller ships won't fire EMP missiles against other M/smaller ships.

Post by theazza10 »

Can confirm this is still an issue in 8.0 stable.

Made a fleet with Asp's as wing commanders with 1x EMP/2x Tau Accel and they will not shoot their EMP unless I disable the Tau Accelerators. If the EMP is the only active weapon they will launch.
CBJ
EGOSOFT
EGOSOFT
Posts: 54943
Joined: Tue, 29. Apr 03, 00:56
x4

Re: [6.20] M/smaller ships won't fire EMP missiles against other M/smaller ships.

Post by CBJ »

Digging up an old thread and then adding no information beyond what is effectively just "me too" is not going to get anything solved, even if it did turn out to be related to the original reported issue from several years ago. If you are seeing a problem in 8.00 then please create a new thread and provide the information requested in the very first thread at the top of the forum, including a link to an unmodified savegame. This will mean we can actually look at the problem you are seeing.

Return to “X4: Foundations - Technical Support”