Skip to content

Conversation

@Stubbjax
Copy link

This change prevents repairing Chinooks and Helixes from taking off after evacuating all passengers.

Before

The Chinook stays landed when evacuating individual passengers, but takes off when evacuating all passengers

ABORT_REPAIR.mp4

After

The Chinook stays landed when evacuating individual or all passengers

CONTINUE_REPAIR.mp4

@Stubbjax Stubbjax self-assigned this Oct 30, 2025
@Stubbjax Stubbjax added AI Is AI related Bug Something is not working right, typically is user facing Minor Severity: Minor < Major < Critical < Blocker Gen Relates to Generals ZH Relates to Zero Hour NoRetail This fix or change is not applicable with Retail game compatibility labels Oct 30, 2025
@Skyaero42

This comment was marked as resolved.

@Stubbjax
Copy link
Author

Stubbjax commented Nov 3, 2025

I set RETAIL_COMPATIBLE_CRC to zero, but the chinook still takes off on me

I typically test by inverting the local #if RETAIL_COMPATIBLE_CRC flag when viable to avoid longer recompilation and the risk of other changes interfering or the build unknowingly failing.

I performed several tests under different configurations (listed below) and can confirm all work as expected, so I suspect something is likely wrong on your end.

  • Invert #if RETAIL_COMPATIBLE_CRC + VC6 release + saved game + USA Laser Chinook
  • Define RETAIL_COMPATIBLE_CRC (0) + VC6 release + multiplayer game + USA Air Force Chinook
  • Define RETAIL_COMPATIBLE_CRC (0) + VS2022 debug + saved game + USA Laser Chinook
  • Define RETAIL_COMPATIBLE_CRC (0) + VS2022 debug + multiplayer game + China Helix

However! While testing this, I noticed a separate bug where evacuation orders given while the transport is airborne causes the ExitDelay on the HelixContain module to be ignored. Passengers evacuated while the transport is already landed correctly use the ExitDelay. I will likely need to add a supplemental condition to defer liftoff until all passengers have exited (or entered) when healing completes to prevent repeated landings for evacuation after healing completes. I shall investigate further.

Copy link

@Skyaero42 Skyaero42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice improvement!

  • Tested and works as described.
  • Tested that the RETAIL_COMPATIBLE_CRC guard is used correctly. Normal build does not mismatch against retail.
  • Also verified it works for Helix.
  • The code looks good.

@Skyaero42 Skyaero42 added the Approved Pull Request was approved label Nov 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Is AI related Approved Pull Request was approved Bug Something is not working right, typically is user facing Gen Relates to Generals Minor Severity: Minor < Major < Critical < Blocker NoRetail This fix or change is not applicable with Retail game compatibility ZH Relates to Zero Hour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants