Greetings Commanders,
I have encountered an issue with this OXP where after I launch from the station, my hired escorts 'buzz' the station and one (sometimes both) of them crashes into it. I think this happens especially/mostly at high tech worlds, where the escorts are interceptors and the station is a dodo. Maybe the speed/manoeuvrability of the escorts and/or the size of the station makes it happen more on those stations.
I've tested this at Xexedi and at Riredi and it happens most of the time. At lower tech worlds where escorts are sidewinders and stations are coriolis, I've seen it happen but not nearly as 'reliably''.
My theory is that they 'set course' for the player pretty much as soon as they first see it. On launch, this would be very close to or maybe even inside of the station.
Working off of this theory, I added a 5 second AI pause in the escort AI, in the INITIALISE state, in the TARGET_FOUND message, before setStateTo: FOLLOW_PLAYER. This appears to help. The escorts still fly towards and very close to the station but no longer crash into it.
I will try to map out the AI and tinker with it some more, and find a more elegant solution, maybe try and have them adjust course more often or start out slower or something, but this is what I've found for now.
Thanks.
Code: Select all
19:21:40.203 [LogEvents]: Player gui screen changed from GUI_SCREEN_STATUS to GUI_SCREEN_MAIN
19:21:40.203 [LogEvents]: Player will launch from Dodecahedron Station 9230 flying Cobra Mark III 27313
19:21:40.235 [LogEvents]: Player compass targeted lost target in mode COMPASS_MODE_BEACONS
19:21:40.245 [LogEvents]: Player alert condition changed from 0 to 2
19:21:40.247 [LogEvents]: Player got message from Hired Escort 26341 : Where to boss?
19:21:40.248 [LogEvents]: Player got message from Hired Escort 5228 : Reporting for duty Chief.
19:21:40.349 [LogEvents]: Hired Escort 26341 spawned at 11 km
19:21:40.349 [LogEvents]: Hired Escort 5228 spawned at 15 km
19:21:42.724 [LogEvents]: Player launched from Dodecahedron Station 9230
19:22:05.279 [LogEvents]: Player got message from Dodecahedron Station 9230 : Pull up, Hired Escort!
19:22:05.414 [LogEvents]: Wreckage 27531 spawned at 6 km
19:22:05.414 [LogEvents]: Wreckage 7097 spawned at 6 km
19:22:05.414 [LogEvents]: Wreckage 30893 spawned at 6 km
19:22:05.749 [LogEvents]: Wreckage 19905 spawned at 6 km
19:22:11.613 [LogEvents]: Wreckage 474 spawned at 7 km
19:22:11.614 [LogEvents]: Wreckage 2302 spawned at 7 km
19:22:11.614 [LogEvents]: Metal fragment 24706 spawned at 7 km
19:22:11.614 [LogEvents]: Wreckage 4208 spawned at 7 km
19:22:11.949 [LogEvents]: Wreckage 2874 spawned at 7 km