Skip to content

wing name format compatibility - #7732

Draft
Goober5000 wants to merge 1 commit into
scp-fs2open:masterfrom
Goober5000:fix/wing_hash_compatibility
Draft

wing name format compatibility#7732
Goober5000 wants to merge 1 commit into
scp-fs2open:masterfrom
Goober5000:fix/wing_hash_compatibility

Conversation

@Goober5000

@Goober5000 Goober5000 commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Following PR #7429, ships belonging to wings were hashed the same way as every other ship, instead of the original hackish format where the hash was juggled around the number. This was a mostly transparent upgrade, and ship names were automatically converted from the legacy format to the new format. However, missions that referenced ships in subsequent waves broke; the converter only handled ships in the first wave.

This PR adds compatibility checks to eval_ship and ship_registry_get to accommodate legacy names.

@Goober5000 Goober5000 added this to the Release 26.0.1 milestone Aug 22, 2026
@Goober5000
Goober5000 requested a review from BMagnu August 22, 2026 19:26
@Goober5000 Goober5000 added fix A fix for bugs, not-a-bugs, and/or regressions. sexps A feature or issue related to SEXPs Point Release Candidate An already merged bugfix that may be merged into a previous stable version labels Aug 22, 2026
@Goober5000
Goober5000 marked this pull request as draft August 22, 2026 19:47
@Goober5000
Goober5000 force-pushed the fix/wing_hash_compatibility branch from 14e002c to 7de169d Compare August 23, 2026 03:13
@Goober5000
Goober5000 marked this pull request as ready for review August 23, 2026 03:13
@Goober5000
Goober5000 force-pushed the fix/wing_hash_compatibility branch 4 times, most recently from 3384eb0 to 2934775 Compare August 23, 2026 17:45
@Goober5000 Goober5000 changed the title wing name format compatibility and other cleanup wing name format compatibility Aug 23, 2026
@Goober5000
Goober5000 marked this pull request as draft August 23, 2026 18:46
@Goober5000
Goober5000 force-pushed the fix/wing_hash_compatibility branch from 2934775 to 3434495 Compare August 23, 2026 18:53
@Goober5000
Goober5000 marked this pull request as ready for review August 23, 2026 18:55
@Goober5000
Goober5000 force-pushed the fix/wing_hash_compatibility branch from 3434495 to c7080b1 Compare August 23, 2026 18:57
@Goober5000
Goober5000 marked this pull request as draft August 23, 2026 19:30
Following PR scp-fs2open#7429, ships belonging to wings were hashed the same way as every other ship, instead of the original hackish format where the hash was juggled around the number.  This was a mostly transparent upgrade, and ship names were automatically converted from the legacy format to the new format.  However, missions that referenced ships *in subsequent waves* broke; the converter only handled ships in the first wave.

This PR adds compatibility checks to `eval_ship` and `ship_registry_get` to accommodate legacy names.
@Goober5000
Goober5000 force-pushed the fix/wing_hash_compatibility branch from c7080b1 to ba6599c Compare August 23, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix A fix for bugs, not-a-bugs, and/or regressions. Point Release Candidate An already merged bugfix that may be merged into a previous stable version sexps A feature or issue related to SEXPs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants