Repository navigation
fix: Play, map check and terrain brush on Windows and after a save - #47
Merged
Merged
Conversation
nickyyOO
force-pushed
the
fix/windows-play-and-placement
branch
from
November 30, 2026 17:11
b3a0949 to
030d620
Compare
- 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
force-pushed
the
fix/windows-play-and-placement
branch
from
November 30, 2026 17:48
030d620 to
ab678de
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: 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:
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.