Skip to content

fix: Play, map check and terrain brush on Windows and after a save - #47

Merged
nickyyOO merged 1 commit into
OpenRAC:mainfrom
nickyyOO:fix/windows-play-and-placement
Nov 30, 2026
Merged

nickyyOO merged 1 commit into
OpenRAC:mainfrom
nickyyOO:fix/windows-play-and-placement

Conversation

@nickyyOO

Copy link
Copy Markdown
Collaborator

Before: On Windows, Play showed "39 edits can't be built" and no Fix button, because tool output lines end in \r\n. After the first save, the map check saw no things and called the map clean. The first brush stroke after a terrain change hit the old ground. The first Play result window opened at full height at 200% scale.

After: Play, Fix and map export read Windows output. The map check reads scenes the editor saved. The brush hits the new ground. The result window opens at its normal size.

How:

  • Tool output is split on \r\n too (play.gd, planet_inspector.gd, terrain_dock.gd).
  • placement.py and collision_fix.py accept type=, uid=, unique_id=, index= and groups= in scene heads.
  • The terrain picker is cleared on resources_reimported for terrain.glb, not in done().
  • The Play dialog and its label get their size before the dialog shows.

Tested: openrac/tools unittest: new test_scene_saved_by_the_editor fails on main and passes here. One test (test_a_folder_that_is_not_an_export_is_refused) fails on main too. GDScript checked with gdparse only. Not tested: Windows, the editor itself, 200% scale.

@nickyyOO
nickyyOO force-pushed the fix/windows-play-and-placement branch from b3a0949 to 030d620 Compare November 30, 2026 17:11
- Tool output is split on \r\n too, so Windows lines match the
  openrac- markers (Play, Fix, map export, terrain tools).
- placement.py and collision_fix.py read node and ext_resource heads
  the editor saves (type=, uid=, unique_id=, groups=), so the map check
  still sees things after the first save. Test added with an
  editor-saved scene.
- The terrain picker is cleared when the ground is imported again,
  not before, so the next stroke hits the new ground.
- The Play result window gets its size (and the label its width)
  before it shows, so the first one is not full height.
@nickyyOO
nickyyOO force-pushed the fix/windows-play-and-placement branch from 030d620 to ab678de Compare November 30, 2026 17:48
@nickyyOO
nickyyOO merged commit 92c99d8 into OpenRAC:main Nov 30, 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