aliens

Author Topic: [FIXED] Game Allows To Launch Craft Without Pilots  (Read 1683 times)

Offline Dioxine

  • Commander
  • *****
  • Posts: 5455
  • punk not dead
    • View Profile
    • Nocturnal Productions
[FIXED] Game Allows To Launch Craft Without Pilots
« on: November 25, 2023, 07:09:34 pm »
If you choose to do aerial transfer, you don't need to have required pilots in craft. This should never be allowed, as it leads to all sorts of secondary bugs (eg. teleporting pilots to craft in-flight if you change the transfer order to patrol when ship is airborne).

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9055
    • View Profile
Re: Game Allows To Launch Craft Without Pilots
« Reply #1 on: November 25, 2023, 11:01:24 pm »
I'm lost.

What exactly should I do to see this happen?

How do you get a craft airborne without pilots? And how do you change their transfer order to patrol order?

Offline psavola

  • Commander
  • *****
  • Posts: 816
    • View Profile
Re: Game Allows To Launch Craft Without Pilots
« Reply #2 on: November 25, 2023, 11:38:52 pm »
I can reproduce the issue as follows in 7.9.18. Remove all crew from a craft. Click 'I' on the globe. Select the craft, then another base (within the dual fuel range) as the destination. Select transfer. Voila - the craft starts flying without a pilot. (And after that, you can also reroute the the craft.)
« Last Edit: November 26, 2023, 07:07:09 am by psavola »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9055
    • View Profile
Re: Game Allows To Launch Craft Without Pilots
« Reply #3 on: November 26, 2023, 12:02:30 am »
Thanks.

Yes, I will take care of this case.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9055
    • View Profile
Re: Game Allows To Launch Craft Without Pilots
« Reply #4 on: November 26, 2023, 09:57:29 am »
Were you able to replicate teleporting soldiers? I still can't replicate that.

Offline psavola

  • Commander
  • *****
  • Posts: 816
    • View Profile
Re: Game Allows To Launch Craft Without Pilots
« Reply #5 on: November 26, 2023, 11:39:24 am »
Were you able to replicate teleporting soldiers? I still can't replicate that.

I only tried the flying empty craft. I now tried, but could not get a pilot to appear on the craft after changing it to patrol (but there weren't all that many details in the post as to how to do it anyway). Maybe Dioxine will provide more information. And/or the issue becomes moot if the craft pilots > 0 is checked before fly-transfer.

Offline zRrr

  • Sergeant
  • **
  • Posts: 31
    • View Profile
Re: Game Allows To Launch Craft Without Pilots
« Reply #6 on: November 26, 2023, 12:54:54 pm »
Were you able to replicate teleporting soldiers? I still can't replicate that.

Start aerial transfer from Base A to Base B, with no pilots. While craft moves, retarget it anywhere (waypoint, crash site, etc). Game will complain about lack of pilots, and will offer to add some. If player accepts, game will open craft window and let player add soldiers and gear from Base B. Craft then can be ordered to transfer back to Base A for super fast items and troops transfer.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9055
    • View Profile
Re: Game Allows To Launch Craft Without Pilots
« Reply #7 on: November 26, 2023, 01:37:02 pm »
Thanks, I see now, the soldiers from the second base.

Both issues fixed here: https://github.com/MeridianOXC/OpenXcom/commit/033f67713c1122c728902a37b258ffb4c2da7a4a