-
Notifications
You must be signed in to change notification settings - Fork 182
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
Meta Files for Tools Grip property causes Snapshot error #430
Comments
Hello, thank you for the report. Your meta file is correct for Rojo 6.x. This is related to #421. We have been working on tweaking Rojo's JSON property format to make it easier to use. This is going to be a breaking change from 6.x, but should be for the best. Unfortunately, the 7.0 alphas are in kind of an awkward middle state. Fixing this (and releasing a tool for people to migrate their projects) is the last remaining blocker for Rojo 7.0's stable release. I recently introduced some tests for the JSON property shorthand syntax. We also have a more explicit property syntax. Not all property types have a shorthand version. In Rojo 7.0.0-alpha.4, we don't have a shorthand syntax to specify CFrame values. You should be able to specify a CFrame values using the explicit syntax like this: {
"className": "Tool",
"properties": {
"Grip": {
"Type": "CFrame",
"Value": {
"Position": [0, 0, 0],
"Orientation": [
[1, 0, 0],
[0, 1, 0],
[0, 0, 1]
]
}
}
}
} This is obviously not ideal. We are on track to update the explicit value syntax in the next 7.0 alpha with this: {
"className": "Tool",
"properties": {
"Grip": {
"CFrame": {
"position": [0, 0, 0],
"orientation": [
[1, 0, 0],
[0, 1, 0],
[0, 0, 1]
]
}
}
}
} Note that {
"className": "Tool",
"properties": {
"Grip": [
0, 0, 0,
1, 0, 0,
0, 1, 0,
0, 0, 1
]
}
} I had originally removed the CFrame shorthand during the port to rbx_dom_weak v2 because I didn't remember that people hand-wrote CFrame values for |
Sorry for the long turnaround on this, should be good to go on the master branch. |
I created a file
init.meta.json
identical to the documentation Meta Files for Tools:Results in error:
I am using Rojo v7.0.0-alpha.4
The text was updated successfully, but these errors were encountered: