Studio Plugin Workflow
Install source: NetRayCompilerPlugin on Creator Store
UI Overview
The plugin widget includes:
- Remote Scope Name textbox.
- IDL Schema multiline editor.
- Compile to ReplicatedStorage button.
- Load Selection button.
- Clear button.
- Status line for compile/write feedback.
Buttons
Compile to ReplicatedStorage
- Compiles current schema text locally (no HTTP).
- Writes/updates
ModuleScripts underReplicatedStorage/NetRay:ServerClientTypes
Load Selection
- Requires exactly one selected
LuaSourceContainer(Script,LocalScript, orModuleScript). - Loads the selected script's entire
Sourcetext into the schema editor.
Clear
- Clears only the editor text.
Persistence
- Scope textbox and schema text are saved in plugin settings.
- Last values are restored when the plugin opens again.
Write Behavior
- If
ReplicatedStorage/NetRaydoes not exist, plugin creates aFolder. - Existing non-
ModuleScriptchildren namedServer,Client, orTypesare replaced. - Existing matching
ModuleScripts are overwritten in place.
Common Plugin Errors
| Error | Cause |
|---|---|
Schema is empty | Editor has no schema text. |
Compile failed: ... | Parser/analyzer/generator failure. |
Compiled, but write failed: ... | Compile succeeded but writing modules failed. |
Select exactly one Script... | Invalid selection count/type for Load Selection. |
