I bet you all know about the BEHAVIOUR_ATTACK_FLY_TO_TARGET_.... bug, but this time it was game-breaking.
Flying escort for the Cataclysm warship replica, I had to wait while it should shoot down three asteroids. The first run was OK, but I was later rammed by a kamikaze Terrorizer (which also went down) and had to redo the whole long mission...and then the warship replica was unable to shoot down the asteroids!
As it turns out, the BEHAVIOUR_ATTACK_FLY_TO_TARGET_x AI idea is completely broken. It's not possible to reach that position, as every target moves, thus the point can never be reached and the ship trying to do so can easily be shot down. In this case, the asteroid did not move, but rotate, thus making it impossible for the warship replica to reach that point. I did let the game run for roughly an hour - without any success or switch to another AI behaviour. Had to stop it and now I need to do the whole thing again. I report it here as it's not only a cataclysm thing, but can be experienced with anything.
Code: Select all
[dumpState]: State for <ShipEntity 0x29d770b8>{"Warship Replica" ID: 605 position: (-467451, 1.9965e+006, 375952) scanClass: CLASS_MILITARY status: STATUS_IN_FLIGHT}:
[dumpState.entity]: Universal ID: 605
[dumpState.entity]: Scan class: CLASS_MILITARY
[dumpState.entity]: Status: STATUS_IN_FLIGHT
[dumpState.entity]: Position: (-467451, 1.9965e+006, 375952)
[dumpState.entity]: Orientation: (-0.618419 + 0.220496i + 0.720759j - 0.222366k)
[dumpState.entity]: Distance travelled: 738540
[dumpState.entity]: Energy: 1112 of 1112
[dumpState.entity]: Mass: 899378
[dumpState.entity]: Owner: <ShipEntity 0x29d770b8>{"Warship Replica" ID: 605 position: (-467451, 1.9965e+006, 375952) scanClass: CLASS_MILITARY status: STATUS_IN_FLIGHT}
[dumpState.entity]: Flags: isShip, hasMoved, hasRotated, isSunlit, collisionTestFilter
[dumpState.shipEntity]: Name: Warship Replica
[dumpState.shipEntity]: Display Name: Warship Replica
[dumpState.shipEntity]: Roles: <OORoleSet 0x28723f60>{cataclysm_warship_replica_1}
[dumpState.shipEntity]: Primary role: cataclysm_warship_replica_1
[dumpState.shipEntity]: Script: <OOJSScript 0x2871eec0>{"cataclysm-warship-replica-1" version 1.1}
[dumpState.shipEntity]: Subentity count: 2
[dumpState.shipEntity]: Behaviour: BEHAVIOUR_ATTACK_FLY_TO_TARGET_SIX
[dumpState.shipEntity]: Target: <ShipEntity 0x12646780>{"Asteroid (Target 1)" ID: 615 position: (-467902, 1.99827e+006, 365325) scanClass: CLASS_ROCK status: STATUS_IN_FLIGHT}
[dumpState.shipEntity]: Destination: (-458870, 1.99062e+006, 374540)
[dumpState.shipEntity]: Other destination: (-475360, 2.01271e+006, 363887)
[dumpState.shipEntity]: Waypoint count: 0
[dumpState.shipEntity]: Desired speed: 200
[dumpState.shipEntity]: Fuel: 0
[dumpState.shipEntity]: Fuel accumulator: 0.00500017
[dumpState.shipEntity]: Missile count: 8
[dumpState.shipEntity.ai]: AI:
[dumpState.ai]: State machine name: cataclysm_warshipReplica1AI.plist
[dumpState.ai]: Current state: ATTACK_TARGET
[dumpState.ai]: Next think time: 3522.45
[dumpState.ai]: Next think interval: 0.125
[dumpState.shipEntity]: Frustration: 0
[dumpState.shipEntity]: Success factor: 565.949
[dumpState.shipEntity]: Shots fired: 0
[dumpState.shipEntity]: Time since shot: 103165
[dumpState.shipEntity]: Spawn time: 351.462 (3170.91 seconds ago)
[dumpState.shipEntity]: Hull temperature: 60
[dumpState.shipEntity]: Heat insulation: 2
[dumpState.shipEntity]: Flags: escortsAreSetUp, isFrangible, canFragment
Screet