Skip to content

Conversation

@warriorstar-orion
Copy link
Contributor

What Does This PR Do

This PR adds a feature to submaps called "singletons", which allows extract markers to have a shared name, even across submap operations, eliminating submaps with the same name from the selection pool.

Why It's Good For The Game

Currently submap operations are discrete, and no information is shared between them. That means if you have, for example, a map with four submaps, and each submap has a unique version of multiple departments, it's possible that you may end up with two command departments, or three science departments, etc. By adding singleton IDs, we can mark the submaps by department name, and the alternative versions of those departments won't be used for the next submap.

Testing

With the example map and submaps:
2025_03_08__12_14_08__paradise dme  singleton_id_test dmm  - StrongDMM
2025_03_08__12_13_51__paradise dme  singleton_id_test_submap dmm  - StrongDMM
Each submap with a different floor color was given the same singleton ID.
Several sample outputs:

Before

2025_03_08__12_27_09__paradise dme  singleton_id_test mapmanipout dmm  - StrongDMM

After

2025_03_08__12_13_39__paradise dme  singleton_id_test mapmanipout dmm  - StrongDMM


Declaration

  • I confirm that I either do not require pre-approval for this PR, or I have obtained such approval and have included a screenshot to demonstrate this below.

Changelog

NPFC

@warriorstar-orion
Copy link
Contributor Author

!build_rust

@ParadiseSS13-Bot ParadiseSS13-Bot added the -Status: Awaiting type assignment This PR is waiting for its type to be assigned internally label Mar 8, 2025
@paradisess13 paradisess13 bot requested a review from AffectedArc07 as a code owner March 8, 2025 18:39
@ParadiseSS13-Bot ParadiseSS13-Bot added -Status: Awaiting review This PR is awaiting review from the review team and removed -Status: Awaiting type assignment This PR is waiting for its type to be assigned internally labels Mar 8, 2025
@AffectedArc07
Copy link
Member

Requesting a dnm until #28590 is in

@warriorstar-orion warriorstar-orion changed the title submap feature: singletons [DNM] submap feature: singletons Mar 11, 2025
@warriorstar-orion
Copy link
Contributor Author

Requesting a dnm until #28590 is in

Done, as well as for #28559.

@github-actions github-actions bot added the Merge Conflict This PR is merge conflicted label Mar 13, 2025
@AffectedArc07
Copy link
Member

!build_rust

@paradisess13
Copy link
Contributor

paradisess13 bot commented Mar 14, 2025

Building Rust library failed, see the action run log for details: https://github.com/ParadiseSS13/Paradise/actions/runs/13865713624

@warriorstar-orion
Copy link
Contributor Author

!build_rust

@AffectedArc07 AffectedArc07 removed the Merge Conflict This PR is merge conflicted label Mar 15, 2025
Copy link
Member

@AffectedArc07 AffectedArc07 left a comment

Choose a reason for hiding this comment

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

Looks fine to me but I aint no rusthead

@warriorstar-orion warriorstar-orion changed the title [DNM] submap feature: singletons submap feature: singletons Mar 17, 2025
@ParadiseSS13-Bot ParadiseSS13-Bot added -Status: Awaiting merge This PR is ready for merge and removed -Status: Awaiting review This PR is awaiting review from the review team labels Mar 19, 2025
@Burzah Burzah added this pull request to the merge queue Mar 20, 2025
@Burzah Burzah added the Code Improvement This PR will improve the code quality of the codebase label Mar 20, 2025
Merged via the queue into ParadiseSS13:master with commit 7b89266 Mar 20, 2025
19 checks passed
@warriorstar-orion warriorstar-orion deleted the feat/submap-singletons branch March 21, 2025 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

-Status: Awaiting merge This PR is ready for merge Code Improvement This PR will improve the code quality of the codebase

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants