Skip to content

Comments

Support RunContext and update to rbx-dom v3.0.0#97

Open
Ransomwave wants to merge 2 commits intorojo-rbx:masterfrom
Ransomwave:master
Open

Support RunContext and update to rbx-dom v3.0.0#97
Ransomwave wants to merge 2 commits intorojo-rbx:masterfrom
Ransomwave:master

Conversation

@Ransomwave
Copy link

@Ransomwave Ransomwave commented Aug 31, 2025

I focused this PR on adding RunContext support, but I've also done minor improvements to the codebase

  • Add RunContext property detection and preservation for Script instances
  • Update rbx-dom dependencies to latest versions (v3.0.0) - required for RunContext support
  • Add ustr dependency for string handling - required by rbx-dom v3.0.0 API
  • Preserve RunContext in meta.json files with string serialization
  • Improve filesystem operations with parent directory creation - prevents crashes
  • Add cross-platform line ending normalization - fixes test failures on Windows
  • Rename .lua file extensions to .luau in "repr_instance" function - use modern .luau extension
  • Update API calls for rbx-dom v3.0.0 compatibility - required due to API changes

Scripts with a RunContext property use a ".server.lua" extension with the RunContext preserved in meta.json when present.

The dependency updates are necessary because RunContext property support was not available in the previous alpha versions. The API compatibility changes are required due to breaking changes in rbx-dom v3.0.0 (removal of deprecated methods).

I focused this PR on adding RunContext support, but I've also done minor improvements to the codebase
- Add RunContext property detection and preservation for Script instances
- Update rbx-dom dependencies to latest versions (v3.0.0) - required for RunContext support
- Add ustr dependency for string handling - required by rbx-dom v3.0.0 API
- Preserve RunContext in meta.json files with string serialization
- Improve filesystem operations with parent directory creation - prevents crashes
- Add cross-platform line ending normalization - fixes test failures on Windows
- Update API calls for rbx-dom v3.0.0 compatibility - required due to API changes

Scripts with a RunContext property use a ".server.lua" extension with the RunContext preserved in meta.json when present.

The dependency updates are necessary because RunContext property support was not available in the previous alpha versions.
The API compatibility changes are required due to breaking changes in rbx-dom v3.0.0 (removal of deprecated methods).
@Ransomwave
Copy link
Author

Apparently this PR fixes the "Decompression failed. Input invalid or too long?" issue when trying to use the tool with a .rbxl file, probably because of the updated libraries

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