Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map conversion checks and mapmerge2 fixup rework #7595

Open
wants to merge 30 commits into
base: master
Choose a base branch
from

Conversation

Drulikar
Copy link
Contributor

@Drulikar Drulikar commented Nov 15, 2024

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.

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.

Testing Photographs and Procedure

See the commit history of me testing changes as well as images below...

Screenshots & Videos

Commiting a map w/o hooks (and various commits in between):
image

Fixup script:
image

And then again:
image

A new map in DMM format:
image
image

Changelog

🆑
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:

Tweak mapmerge to print notice for unused keys unless supressed
Implement mergemap conversion detection in dmm_test and fixup
Refactor dmm_test
Rework fixup using upstream/master as ancestor
@cmss13-ci cmss13-ci bot added Github We don't really know what else this belongs to Code Improvement Make the code longer labels Nov 15, 2024
@Drulikar Drulikar changed the title Map conversion checks and mapmerge2 fixup rework Map conversion checks and mapmerge2 fixup rework [MDB IGNORE] Nov 15, 2024
@cmss13-ci cmss13-ci bot added the Mapping did you remember to save in tgm format? label Nov 15, 2024
@BeagleGaming1 BeagleGaming1 marked this pull request as ready for review November 15, 2024 06:32
@BeagleGaming1 BeagleGaming1 marked this pull request as draft November 15, 2024 06:32
Error handling more like dmi tester
2adceaf: maps/map_files/USS_Almayer/USS_Almayer.dmm

Automatically commited by: tools\mapmerge2\fixup.py
@Drulikar Drulikar removed the Mapping did you remember to save in tgm format? label Nov 16, 2024
@Drulikar Drulikar changed the title Map conversion checks and mapmerge2 fixup rework [MDB IGNORE] Map conversion checks and mapmerge2 fixup rework Nov 16, 2024
@Drulikar Drulikar marked this pull request as ready for review November 16, 2024 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Improvement Make the code longer Github We don't really know what else this belongs to
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant