Skip to content

wing name format compatibility and other cleanup - #7732

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

wing name format compatibility and other cleanup#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. This was a mostly transparent implementation detail, but it was still possible for ships to be saved in older missions in the legacy format. Adding compatibility checks required a few layers of changes:

  • Extra handling to eval_ship and ship_registry_get to accommodate legacy names
  • A parse flag to indicate when the mission was being parsed, and a new ship_class_index() accessor in the ship registry, albeit both currently unused
  • Refine FRED handling of ship registry staleness

@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
Following PR scp-fs2open#7429, ships belonging to wings were hashed the same way as every other ship.  This was a mostly transparent implementation detail, but it was still possible for ships to be saved in older missions in the legacy format.  Adding compatibility checks required several layers of changes:
- Extra handling to `eval_ship` and `ship_registry_get` to accommodate legacy names
- A parse flag to indicate when the mission was being parsed, and a new `ship_class_index()` accessor in the ship registry, albeit both currently unused
- Refine FRED handling of ship registry staleness
@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
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.

1 participant