Repository navigation
feat: map check with Fix (cracks, collision, things floating or inside each other) - #44
Merged
Merged
Conversation
… inside each other
nickyyOO
force-pushed
the
feature/map-check
branch
from
November 25, 2026 15:58
32eb285 to
91bada3
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before: a made level could ship with cracks and holes in its ground, collision that does not follow what is drawn (the hero falls through or stands in the air), and things floating or inside each other. Nothing checked it.
After: Check, Play, Pack, Add as planet and map export run a map check and stop on problems a player would see. Each problem names its node and place. Fix in the Play/Check dialog (and check-map --fix, MCP level_check_map) mends them.
How: map_check.py (checks), crack_fix.py (welds T-junctions, gaps and slivers, splits faces on seams, fills small holes in the level's own terrain.glb), collision_fix.py (collision made from the drawn ground, tie collision moved with moved ties, collision floors over nothing drawn removed). placement.py can use the drawn ground only; plants ignore the sea floor; crates keep their stacks. --keep-problems packs anyway.
Tested: unit tests (test_map_check, test_placement, test_planet, test_openrac_editor, test_editor_mcp). OpenRAC Museum map: 1124 problems before, 0 after Fix. Original levels 2 and 11 report nothing. The Fix button GDScript was not run in a built editor.