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

Improve rbx_reflector Roblox Studio automation and logging on macOS #407

Merged
merged 6 commits into from
Apr 23, 2024

Conversation

DervexDev
Copy link
Contributor

This PR brings automatic place saving to macOS, so it now works exactly the same as on Windows. It also pipes the stdout and stderr streams to null to get rid of extreme verbosity on macOS.

Sequence.01.mp4

New automation with old verbose output

Copy link
Member

@kennethloeffler kennethloeffler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this. A long time ago I had the idea to use AppleScript to automatically save the defaults place, but I never got around to it. It's a bit of a weird language, and I'm glad I got the opportunity to dive into some of it here! 😄

A few comments:

.gitignore Outdated Show resolved Hide resolved
rbx_reflector/src/cli/defaults_place.rs Show resolved Hide resolved
rbx_reflector/src/cli/defaults_place.rs Outdated Show resolved Hide resolved
rbx_reflector/src/cli/defaults_place.rs Outdated Show resolved Hide resolved
@DervexDev
Copy link
Contributor Author

DervexDev commented Apr 23, 2024

It's a bit of a weird language

Oh yeah 😅

I also updated the plugin.lua to ensure the correct Roblox Studio instance is connecting to the rbx_reflector

Comment on lines +1 to +4
if game.Name ~= "defaults-place.rbxlx" then
return
end

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, this will help when Roblox Studio's "Reload plugins on file changed` setting is enabled

@kennethloeffler kennethloeffler merged commit 8ca9250 into rojo-rbx:master Apr 23, 2024
2 checks passed
kennethloeffler pushed a commit to kennethloeffler/rbx-dom that referenced this pull request Jul 21, 2024
…rojo-rbx#407)

This PR brings automatic place saving to macOS, so it now works exactly the same
as on Windows. It also pipes the `stdout` and `stderr` streams to `null` to get
rid of extreme verbosity on macOS. Lastly, it adds a check to the injected
plugin so it won't run outside of the defaults place, which is useful when other
Roblox Studio instances are open and Roblox Studio's "Reload plugins on file
changed" setting is enabled.
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.

2 participants