Missiles sometimes have a weird behaviour, for instance not responding to ECM. One reason I found is a missile with interceptAI instead of missileAI:
Code: Select all
[dumpState]: State for <ShipEntity 0x1f8a600>{"Missile" ID: 390 position: (7137.45, 10218.7, 287552) scanClass: CLASS_MISSILE status: STATUS_IN_FLIGHT}:
[dumpState.entity]: Universal ID: 390
[dumpState.entity]: Scan class: CLASS_MISSILE
[dumpState.entity]: Status: STATUS_IN_FLIGHT
[dumpState.entity]: Position: (7137.45, 10218.7, 287552)
[dumpState.entity]: Orientation: (-0.931215 + 0.0528909i - 0.246267j - 0.263425k)
[dumpState.entity]: Distance travelled: 19176.4
[dumpState.entity]: Energy: 5 of 5
[dumpState.entity]: Mass: 113.906
[dumpState.entity]: Owner: <ShipEntity 0x13c6b800>{"Trident Executive Shuttle" ID: 314 position: (8157.49, 10262.5, 282830) scanClass: CLASS_NEUTRAL status: STATUS_IN_FLIGHT}
[dumpState.entity]: Flags: isShip, hasMoved, hasRotated, isSunlit, collisionTestFilter
[dumpState.shipEntity]: Name: Missile
[dumpState.shipEntity]: Display Name: Rakete
[dumpState.shipEntity]: Roles: <OORoleSet 0x671830>{EQ_MISSILE missile oolite-missile}
[dumpState.shipEntity]: Primary role: EQ_MISSILE
[dumpState.shipEntity]: Script: <OOJSScript 0x11a07b90>{"oolite-default-ship-script" version 1.73.3}
[dumpState.shipEntity]: Subentity count: 1
[dumpState.shipEntity]: Behaviour: BEHAVIOUR_ATTACK_FLY_FROM_TARGET
[dumpState.shipEntity]: Target: <PlayerEntity 0x1ce2a00>{"Imperial Courier" ID: 100 position: (7049.59, 10210.8, 288082) scanClass: CLASS_PLAYER status: STATUS_IN_FLIGHT}
[dumpState.shipEntity]: Destination: (8422.9, 9926.04, 282534)
[dumpState.shipEntity]: Other destination: (0, 0, 0)
[dumpState.shipEntity]: Waypoint count: 0
[dumpState.shipEntity]: Desired speed: 750
[dumpState.shipEntity]: Fuel: 0
[dumpState.shipEntity]: Fuel accumulator: 1
[dumpState.shipEntity]: Missile count: 0
[dumpState.shipEntity.ai]: AI:
[dumpState.ai]: State machine name: interceptAI.plist
[dumpState.ai]: Current state: ATTACK_SHIP
[dumpState.ai]: Next think time: 992.441
[dumpState.ai]: Next think interval: 0.125
[dumpState.shipEntity]: Frustration: 0
[dumpState.shipEntity]: Success factor: 0
[dumpState.shipEntity]: Shots fired: 0
[dumpState.shipEntity]: Time since shot: 26.5202
[dumpState.shipEntity]: Spawn time: 965.876 (26.5402 seconds ago)
[dumpState.shipEntity]: Hull temperature: 60
[dumpState.shipEntity]: Heat insulation: 1
[dumpState.shipEntity]: Flags: isFrangible, canFragment
Code: Select all
[dumpState]: State for <ShipEntity 0x13d2c000>{"Nuclear Torpedo" ID: 415 position: (-1322.29, 4041.45, 176381) scanClass: CLASS_MISSILE status: STATUS_IN_FLIGHT}:
[dumpState.entity]: Universal ID: 415
[dumpState.entity]: Scan class: CLASS_MISSILE
[dumpState.entity]: Status: STATUS_IN_FLIGHT
[dumpState.entity]: Position: (-1322.29, 4041.45, 176381)
[dumpState.entity]: Orientation: (0.543548 + 0.502555i + 0.466013j - 0.484588k)
[dumpState.entity]: Distance travelled: 11330.4
[dumpState.entity]: Energy: 10 of 10
[dumpState.entity]: Mass: 113.906
[dumpState.entity]: Flags: isShip, hasMoved, isSunlit, collisionTestFilter
[dumpState.shipEntity]: Name: Nuclear Torpedo
[dumpState.shipEntity]: Display Name: Nuclear Torpedo
[dumpState.shipEntity]: Roles: <OORoleSet 0xe863d40>{EQ_NUKE_MISSILE missile}
[dumpState.shipEntity]: Primary role: missile
[dumpState.shipEntity]: Script: <OOJSScript 0xe86a520>{"oolite-default-ship-script" version 1.73.3}
[dumpState.shipEntity]: Subentity count: 1
[dumpState.shipEntity]: Behaviour: BEHAVIOUR_IDLE
[dumpState.shipEntity]: Destination: (8364.72, 3191.37, 172574)
[dumpState.shipEntity]: Other destination: (0, 0, 0)
[dumpState.shipEntity]: Waypoint count: 0
[dumpState.shipEntity]: Desired speed: 550
[dumpState.shipEntity]: Fuel: 0
[dumpState.shipEntity]: Fuel accumulator: 1
[dumpState.shipEntity]: Missile count: 0
[dumpState.shipEntity.ai]: AI:
[dumpState.ai]: State machine name: nukeAI.plist
[dumpState.ai]: Current state: ATTACK_SHIP
[dumpState.ai]: Next think time: 1279.61
[dumpState.ai]: Next think interval: 0.125
[dumpState.shipEntity]: Frustration: 0
[dumpState.shipEntity]: Success factor: 3122.3
[dumpState.shipEntity]: Shots fired: 0
[dumpState.shipEntity]: Time since shot: 21.4853
[dumpState.shipEntity]: Spawn time: 1257.81 (21.5 seconds ago)
[dumpState.shipEntity]: Hull temperature: 60
[dumpState.shipEntity]: Heat insulation: 1
[dumpState.shipEntity]: Flags: pitching_over, isFrangible, canFragment
Code: Select all
[dumpState]: State for <ShipEntity 0x1dbc600>{"Boa" ID: 857 position: (1636.22, -21459.9, 9847.64) scanClass: CLASS_NEUTRAL status: STATUS_IN_FLIGHT}:
[dumpState.entity]: Universal ID: 857
[dumpState.entity]: Scan class: CLASS_NEUTRAL
[dumpState.entity]: Status: STATUS_IN_FLIGHT
[dumpState.entity]: Position: (1636.22, -21459.9, 9847.64)
[dumpState.entity]: Orientation: (0.894454 - 0.39336i + 0.103092j + 0.185988k)
[dumpState.entity]: Distance travelled: 35787.6
[dumpState.entity]: Energy: 450 of 450
[dumpState.entity]: Mass: 192444
[dumpState.entity]: Owner: <ShipEntity 0x1dbc600>{"Boa" ID: 857 position: (1636.22, -21459.9, 9847.64) scanClass: CLASS_NEUTRAL status: STATUS_IN_FLIGHT}
[dumpState.entity]: Flags: isShip, hasMoved, isSunlit, collisionTestFilter
[dumpState.shipEntity]: Name: Boa
[dumpState.shipEntity]: Display Name: Boa
[dumpState.shipEntity]: Roles: <OORoleSet 0x128c0b80>{oolite-boa trader}
[dumpState.shipEntity]: Primary role: trader
[dumpState.shipEntity]: Script: <OOJSScript 0xf480980>{"oolite-default-ship-script" version 1.73.3}
[dumpState.shipEntity]: Subentity count: 1
[dumpState.shipEntity]: Behaviour: BEHAVIOUR_FLY_TO_DESTINATION
[dumpState.shipEntity]: Destination: (-418980, -863989, 856697)
[dumpState.shipEntity]: Other destination: (-418980, -863989, 856697)
[dumpState.shipEntity]: Waypoint count: 0
[dumpState.shipEntity]: Desired speed: 240
[dumpState.shipEntity]: Fuel: 38
[dumpState.shipEntity]: Fuel accumulator: 1
[dumpState.shipEntity]: Missile count: 4
[dumpState.shipEntity.ai]: AI:
[dumpState.ai]: State machine name: enteringTraderAI.plist
[dumpState.ai]: Current state: GO_TO_SKIM
[dumpState.ai]: Next think time: 2726.24
[dumpState.ai]: Next think interval: 0.125
[dumpState.shipEntity]: Frustration: 0
[dumpState.shipEntity]: Success factor: 1.26647e+06
[dumpState.shipEntity]: Shots fired: 0
[dumpState.shipEntity]: Time since shot: 100174
[dumpState.shipEntity]: Spawn time: 2545.74 (180.436 seconds ago)
[dumpState.shipEntity]: Hull temperature: 60
[dumpState.shipEntity]: Heat insulation: 1
[dumpState.shipEntity]: Flags: isFrangible, canFragment