Skip to content

Comments

Update Cargo version to support rbxl file and RunContext script#100

Open
ParanoidAndrea wants to merge 5 commits intorojo-rbx:masterfrom
ParanoidAndrea:master
Open

Update Cargo version to support rbxl file and RunContext script#100
ParanoidAndrea wants to merge 5 commits intorojo-rbx:masterfrom
ParanoidAndrea:master

Conversation

@ParanoidAndrea
Copy link

Fix the problem of Decompression failed. Input invalid or too long? rbx_binary didn't know what to do by updating the Cargo dependencies and support the newer Roblox binary formats

Ransomwave and others added 5 commits August 31, 2025 23:56
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).
Fix the problem of "Decompression failed. Input invalid or too long? rbx_binary didn't know what to do" by updating the Cargo dependencies and support the newer Roblox binary formats
@ParanoidAndrea ParanoidAndrea changed the title Update Cargo version and Support rbxl file Update Cargo version to support rbxl file and RunContext script Oct 27, 2025
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