Important

Independent, unofficial project. Not affiliated with, endorsed by, or officially connected to Roblox Corporation. "Luau" is a trademark of Roblox Corporation.

Loadstring

local Params = {
 RepoURL = "https://git.qilk.de/misc/UniversalSynSaveInstance/raw/branch/master/",
 SSI = "saveinstance",
}
local synsaveinstance = loadstring(game:HttpGet(Params.RepoURL .. Params.SSI .. ".luau", true), Params.SSI)()
local Options = {} -- Documentation here https://git.qilk.de/misc/UniversalSynSaveInstance/src/branch/gh-pages/search-doc.json
synsaveinstance(Options)

Universal Syn Save Instance

Or shortly USSI, a project aimed at resurrecting saveinstance function from Synapse X.
Reason: Many tools fail miserably at providing good user experience when it comes to tinkering with saving instances.

Documentation

Documentation

TO-DOs

  • Look into adding support for Binary Format Output (rbxl/rbxm)

  • Add table.clone instead {} in some cases if possible

  • Support for Model files:

    • rbxmx (xml)
    • rbxm (binary)
  • Implement Luau Syntax (important for performance!):

    • Compound Operators
    • Avoid using next, ipairs & pairs
    • Interpolated strings instead of concat Slower
    • Type-checking (😩🙀)
    • if-then-else expressions No reason to
    • Floor division
  • Speed things up as much as possible

    • Requires benchmarks
  • Support for as many [KRNL-like saveinstance Options] & UNC:

    • Change mode to invalid mode like "custom" if you only want to save ExtraInstances
    • Decompile (! This takes priority over OPTIONS.noscripts if set !)
    • DecompileIgnore
    • DecompileTimeout (! This takes priority over OPTIONS.timeout if set !)
    • ExtraInstances
    • FilePath
    • IgnoreDefaultProps
    • IsolateStarterPlayer
    • NilInstances
    • Object (for .rbxmx files)
    • RemovePlayerCharacters
    • SavePlayers
    • ShowStatus
      • Add Drawing Library support for ShowStatus Can't reliably test if it's working on a tool
    • IsolatePlayerGui (same as IsolateLocalPlayer)
    • Callback
    • CopyToClipboard/Clipboard
    • Binary (rbxl/rbxm)
  • Remove buffersize, savebuffer & so on for sake of performance by concatenating strings to total string then writing it to file (no extra steps like table.concat) table.concat proved faster in the case of huge amount of concatenations

    • Test table.concat vs string ..= with a full buffer (this benchmark differs per usecase)
  • Add Option to restart saveinstance from the point that it crashed on (perhaps by skipping)

  • Maybe modes should do more than just determining the list of instances to save, like changing IgnoreDefaultProperties to false if mode is "full" for example

  • Add Lua & Luau versions instead of merged (WARNING: LUAU MIGHT BE MORE UPDATED THAN LUA VERSION, lua version exists just for the sake of old & bad tools, ask devs of your tools to support luau as its latest & greatest)

  • Add Support for multiple Instances to be saved as a model IsModel = true & ExtraInstances

  • Force disable ParticleEmitters in case something like IgnorePropertiesOfNotScriptsOnScriptsMode is enabled (they stack in one place and create huge lag) Not needed anymore it seems as empty FlipbookLayout breaks them which also results in no particles

  • Be able to specify which special properties you want saved (to avoid saving all)

Acknowledgments

Important

This document is based largely on the efforts of @Anaminus & @Dekkonot, authors of the Roblox Format Specifications. Additional resources include:

*** View source code of this file for more credits

S
Description
Shortly USSI. A universal saveinstance revival. This can also be edited and used as a Roblox-Format-File writer. Original *was* at https://github.com/luau/UniversalSynSaveInstance.git but is now 404.
Readme
28 MiB
Languages
Luau 51.2%
Lua 40.2%
Python 8.6%