diff --git a/.moonwave/static/favicon.png b/.moonwave/static/favicon.png new file mode 100644 index 0000000..a0c2b39 Binary files /dev/null and b/.moonwave/static/favicon.png differ diff --git a/.moonwave/static/logo.png b/.moonwave/static/logo.png new file mode 100644 index 0000000..3aa3361 Binary files /dev/null and b/.moonwave/static/logo.png differ diff --git a/README.md b/README.md index f7582d1..0b3e7bf 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@

- +

diff --git a/Tools/Interesting Properties Behavior/Dump b/Tools/Interesting Properties Behavior/Dump index 471ddb4..e5507de 100644 --- a/Tools/Interesting Properties Behavior/Dump +++ b/Tools/Interesting Properties Behavior/Dump @@ -32,12 +32,16 @@ Bone.Transform {CanLoad Only} AudioAnalyzer.PeakLevel {CanSave Only} AudioAnalyzer.RmsLevel {CanSave Only} +AudioCompressor.Editor {CanLoad Only} + AudioDeviceInput.IsReady {CanSave Only} AudioEqualizer.Editor {CanLoad Only} AudioFilter.Editor {CanLoad Only} +AudioLimiter.Editor {CanLoad Only} + AudioPlayer.Asset {CanLoad Only} AudioPlayer.IsReady {CanSave Only} AudioPlayer.TimeLength {CanSave Only} diff --git a/moonwave.toml b/moonwave.toml index c17908c..aa0a8a2 100644 --- a/moonwave.toml +++ b/moonwave.toml @@ -2,10 +2,10 @@ title = "Universal Syn SaveInstance" [home] enabled = true -bannerImage = "https://github.com/luau/UniversalSynSaveInstance/assets/95628489/4944cc94-f7c3-43b2-8c2b-7065f2e3dae9" +bannerImage = "logo.png" [docusaurus] -favicon = "https://github.com/luau/UniversalSynSaveInstance/assets/95628489/5e2fa14f-c70f-40a6-b747-9ba7fd99037b" +favicon = "favicon.png" tagline = "A universal saveinstance revival. This can also be edited and used as a Roblox-Format-File writer." @@ -20,7 +20,7 @@ label = "Support" position = "right" [navbar.logo] -src = "https://github.com/luau/UniversalSynSaveInstance/assets/95628489/5e2fa14f-c70f-40a6-b747-9ba7fd99037b" +src = "favicon.png" [[footer.links]] href = "https://discord.gg/wx4ThpAsmw" @@ -30,7 +30,7 @@ href = "https://ko-fi.com/M4M1JNH5G" label = "Support" [footer.logo] -src = "https://github.com/luau/UniversalSynSaveInstance/assets/95628489/5e2fa14f-c70f-40a6-b747-9ba7fd99037b" +src = "favicon.png" width = 50 height = 50 diff --git a/saveinstance.luau b/saveinstance.luau index 978d47a..a4bc4ea 100644 --- a/saveinstance.luau +++ b/saveinstance.luau @@ -1630,10 +1630,20 @@ local function synsaveinstance(CustomOptions, CustomOptions2) SaveNonCreatable = false, NotCreatableFixes = { + -- "CloudLocalizationTable", + -- "InputObject", + -- "LodDataEntity", + -- "Path", + -- "Translator", "", -- * FilteredSelection + "AnimationTrack", "Player", - "PlayerScripts", "PlayerGui", + "PlayerScripts", + "PlayerMouse", + "ScreenshotHud", + "StudioData", + "TextSource", "TouchTransmitter", }, @@ -2218,7 +2228,7 @@ local function synsaveinstance(CustomOptions, CustomOptions2) return true end - local function replaceClassName(instance, InstanceName, ClassName, newClassName) + local function replaceClassName(instance, InstanceName, ClassName) local InstanceOverride if InstanceName ~= ClassName then -- TODO Compare against default instance instead (TouchTransmitter is called TouchInterest by default) InstanceOverride = InstancesOverrides[instance] @@ -2227,7 +2237,7 @@ local function synsaveinstance(CustomOptions, CustomOptions2) InstancesOverrides[instance] = InstanceOverride end end - return newClassName, InstanceOverride + return InstanceOverride end local function getsafeproperty(instance, propertyName) @@ -2464,13 +2474,13 @@ local function synsaveinstance(CustomOptions, CustomOptions2) if Fix then if SaveNonCreatable then - ClassName, InstanceOverride = replaceClassName(instance, InstanceName, ClassName, Fix) + ClassName, InstanceOverride = Fix, replaceClassName(instance, InstanceName, ClassName) else continue -- They won't show up in Studio anyway (Enable SaveNonCreatable if you wish to bypass this) end else -- ! Assuming nothing that is a PartOperation or inherits from it is in NotCreatableFixes if TreatUnionsAsParts and instance:IsA("PartOperation") then - ClassName, InstanceOverride = replaceClassName(instance, InstanceName, ClassName, "Part") + ClassName, InstanceOverride = "Part", replaceClassName(instance, InstanceName, ClassName) ClassNameOverride = "BasePart" -- * Mutual Superclass for PartOperation and Part; For properties only elseif not ClassList[ClassName] then -- ? API Dump is outdated then if __DEBUG_MODE then @@ -2515,10 +2525,14 @@ local function synsaveinstance(CustomOptions, CustomOptions2) end end end - local proplist = inherited_properties[ClassNameOverride or ClassName] - if not proplist then - proplist = GetInheritedProps(ClassNameOverride or ClassName) - inherited_properties[ClassNameOverride or ClassName] = proplist + local proplist + do + local class = ClassNameOverride or ClassName + proplist = inherited_properties[class] + if not proplist then + proplist = GetInheritedProps(class) + inherited_properties[class] = proplist + end end for _, Property in proplist do local PropertyName = Property.Name