Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch Instance.DefinesCapabilities to alias to Instance.Sandboxed #459

Merged
merged 4 commits into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion patches/instance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ Change:
DefaultValue:
Bool: true

# DefinesCapabilities is exposed as `Sandboxed` in Roblox Studio, so we want
# it as an alias.
DefinesCapabilities:
AliasFor: Sandboxed
Sandboxed:
Serialization:
Type: SerializesAs
As: DefinesCapabilities

# Attributes serialize as a BinaryString with a strange name, but we want to
# refer to them with a different name.
Attributes:
Expand All @@ -36,4 +45,4 @@ Change:
Tags:
DataType:
Value: "Tags"
Scriptability: Custom
Scriptability: Custom
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ expression: decoded_viewed
- 0
- 0
- 0
DefinesCapabilities:
Bool: false
EnvironmentDiffuseScale:
Float32: 1
EnvironmentSpecularScale:
Expand All @@ -57,6 +55,8 @@ expression: decoded_viewed
- 0.27450982
Outlines:
Bool: false
Sandboxed:
Bool: false
ShadowSoftness:
Float32: 0.2
SourceAssetId:
Expand All @@ -68,3 +68,4 @@ expression: decoded_viewed
TimeOfDay:
String: "14:30:00"
children: []

Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,6 @@ chunks:
- - 0
- 0
- 0
- Prop:
type_id: 0
prop_name: DefinesCapabilities
prop_type: Bool
values:
- false
- Prop:
type_id: 0
prop_name: EnvironmentDiffuseScale
Expand Down Expand Up @@ -130,6 +124,12 @@ chunks:
prop_type: Bool
values:
- false
- Prop:
type_id: 0
prop_name: DefinesCapabilities
prop_type: Bool
values:
- false
- Prop:
type_id: 0
prop_name: ShadowSoftness
Expand Down Expand Up @@ -166,3 +166,4 @@ chunks:
- - 0
- -1
- End

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ expression: decoded_viewed
Attributes: {}
Capabilities:
SecurityCapabilities: 0
DefinesCapabilities:
Sandboxed:
Bool: false
SourceAssetId:
Int64: -1
Expand All @@ -27,7 +27,7 @@ expression: decoded_viewed
Attributes: {}
Capabilities:
SecurityCapabilities: 2882400000
DefinesCapabilities:
Sandboxed:
Bool: false
SourceAssetId:
Int64: -1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@ chunks:
values:
- 0
- 2882400000
- Prop:
type_id: 0
prop_name: DefinesCapabilities
prop_type: Bool
values:
- false
- false
- Prop:
type_id: 0
prop_name: Name
prop_type: String
values:
- Hmmm
- WhereIs
- Prop:
type_id: 0
prop_name: DefinesCapabilities
prop_type: Bool
values:
- false
- false
- Prop:
type_id: 0
prop_name: SourceAssetId
Expand Down
Loading