Upload scripts from .lsl / .txt files (like notecard upload) #1531

Open
opened 2026-11-13 08:59:20 +00:00 by sky_line · 0 comments
Owner

Add File > Upload > Script (.lsl / .txt)..., working the same way as notecard upload (#1519, llnotecardtextupload.cpp). You pick one or more .lsl or .txt files, and each one becomes an LSL script in inventory named after the file.

Behaviour

  • The file picker accepts .lsl and .txt; multi-select works the way it does for notecard upload.
  • Each file creates an LSL script item named after the file (extension dropped), saved to the Scripts folder or whatever folder notecard upload uses.
  • Upload runs in the background with the top-right progress bars (#1443), the same as notecard upload.
  • Compiling: the script is compiled the same way the in-world editor's Save does for an inventory script, using the region's default Mono setting. Compile errors are reported per file, and an item with a compile error is kept, not deleted.
  • Encoding: UTF-8 is required. A BOM is stripped and CRLF is converted to LF. A file over the LSL source size limit is rejected with a message rather than truncated.
  • Entry points: the File menu, and the inventory + menu next to the notecard entry.

Inventory safety

No server-side loss and no blind retries: a failed create or upload is reported, never retried silently.

Add **File > Upload > Script (.lsl / .txt)...**, working the same way as notecard upload (#1519, `llnotecardtextupload.cpp`). You pick one or more `.lsl` or `.txt` files, and each one becomes an LSL script in inventory named after the file. ## Behaviour - The file picker accepts `.lsl` and `.txt`; multi-select works the way it does for notecard upload. - Each file creates an LSL script item named after the file (extension dropped), saved to the Scripts folder or whatever folder notecard upload uses. - Upload runs in the background with the top-right progress bars (#1443), the same as notecard upload. - Compiling: the script is compiled the same way the in-world editor's Save does for an inventory script, using the region's default Mono setting. Compile errors are reported per file, and an item with a compile error is kept, not deleted. - Encoding: UTF-8 is required. A BOM is stripped and CRLF is converted to LF. A file over the LSL source size limit is rejected with a message rather than truncated. - Entry points: the File menu, and the inventory **+** menu next to the notecard entry. ## Inventory safety No server-side loss and no blind retries: a failed create or upload is reported, never retried silently.
sky_line added this to the Slipstream project 2026-11-13 08:59:20 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sky_line/Slipstream#1531
No description provided.