Skip to content

feat: map check with Fix (cracks, collision, things floating or inside each other) - #44

Merged
nickyyOO merged 1 commit into
OpenRAC:mainfrom
nickyyOO:feature/map-check
Nov 25, 2026
Merged

nickyyOO merged 1 commit into
OpenRAC:mainfrom
nickyyOO:feature/map-check

Conversation

@nickyyOO

Copy link
Copy Markdown
Collaborator

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.

@nickyyOO
nickyyOO merged commit b62737b into OpenRAC:main Nov 25, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant