-
Notifications
You must be signed in to change notification settings - Fork 580
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Map conversion checks and mapmerge2 fixup rework (#7595)
# About the pull request This PR is an experimental change to mapmerge2 where now free keys are gotten in sequential order rather than random, the map linter now attempts to merge all maps to determine if mapmerge2 would want to alter the maps (to detect a failure of using hooks or non-tgm format), and hopefully a more robust fixup script. The other changes to maplint are to allow it to more gracefully handle var edits to areas (we already lint against this but it won't be properly handled), and var edits as [newlist](https://www.byond.com/docs/ref/#/proc/newlist). Fixup now forces the upstream remote to be added to their repo (I don't know of a different way to get the merge_base I want), merges based off of the merge_base version of the map (rather than really only looking at the HEAD commit), detects mapmerge2 changes for any map the HEAD tree is altering, and performs them. However, fixup does take significantly more time, but it really only checked for TGM format previously... I also tweaked all [ci skip] checks to suppress the errors linted in VSC. # Explain why it's good for the game Hopefully less mapping conflicts in the scenario when a contributor is not using the [hooks](https://github.com/cmss13-devs/cmss13/tree/master/tools/hooks). # Testing Photographs and Procedure See the commit history of me testing changes as well as images below... <details> <summary>Screenshots & Videos</summary> Commiting a map w/o hooks (and various commits in between): ![image](https://github.com/user-attachments/assets/23f7b5d1-dd43-4796-965c-826f8e41bccc) Fixup script: ![image](https://github.com/user-attachments/assets/61db20ef-bb9c-43d5-a39b-80908dfb7986) And then again: ![image](https://github.com/user-attachments/assets/b58c26c1-9b1b-43e2-be19-a9f114bbd4b0) A new map in DMM format: ![image](https://github.com/user-attachments/assets/a7ab03d7-f7fd-468b-9845-d6e3c65e873c) ![image](https://github.com/user-attachments/assets/f96cfdc2-238c-47b2-8230-ef916593af89) </details> # Changelog :cl: code: dmm_test now checks if there are pending mapmerge2 conversions. code: Improved dmm_test error handling code: mapmerge2 now uses keys sequentially rather than randomly. code: mapmerge2 fixup script now assigns upstream remote if needed, and checks/fixes pending mapmerge2 conversions. /:cl:
- Loading branch information
Showing
7 changed files
with
151 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.