Comments (3)
If we were going to do this, it should still be TestValue.IntValue.json.
IIRC though, you can set model.json to have a classname.
I'd much rather not have the type of the value created encoded in the name of the file. Especially since I'd rather have certain models be 1 JSON object instead of multiple files (which gets nasty very quickly).
from rojo.
The JSON format in .model.json
files is mostly a holdover until proper rbxmx/rbxlx support is implemented. Once we have real model files (and bi-directional syncing) it won't be as big of a deal what the actual on-disk representation is.
I pushed up a prerelease for 0.4.0 that supports .model.json
files. The only example right now is this file.
Long-term, I'd like to throw an error or just ignore files that can't be interpreted instead of turning them into StringValue objects like they are right now. To regain the current behavior of StringValue objects, you'd configure some optional plugin!
from rojo.
I think this use case is well-handled by JSON models as well as Rojo's rbxmx and rbxm support!
Since I don't think there's a lot of value in specifying class name via file name only, I'm going to close this issue.
from rojo.
Related Issues (20)
- Error creating server listener on :34872 HOT 1
- When Rojo fails to sync a model (such as MeshParts), it deletes what is already in studio HOT 2
- Toggling emitLegacyScripts causes ignored instances to be deleted
- Cookie authentication uploading will stop working for places HOT 1
- rojo build doesn't work for Int32 and Int64 HOT 1
- Ref property application can fail when pointed-to instances don't yet exist
- Updates for Ref properties specified with attributes are always `null` in `/api/subscribe` responses HOT 2
- Two-Way-Sync crashes rojo instance when editing under a protected drive
- Upload.ashx endpoint has been disabled for places, we should raise an error when trying with `rojo upload`
- Emit helpful errors when file system access fails rather than just calling `unwrap`.
- Two-Way Sync Deletes Changes and Crashes After
- The system cannot find the file specified. (os error 2) (roshade) HOT 1
- Add support for Assigning Enum as Attribute through init.meta.json HOT 1
- Parent and Child Folder: Cannot add an instance from a patch that has no parent. HOT 3
- Cannot select Studio Rojo plugin error text to Copy Paste HOT 2
- Is it possible to edit the properties of a value in studio and have the changes go into the Rojo UI? HOT 1
- SurfaceAppearance.Color might be set to (0,0,0) by default instead of (1,1,1) causing black SurfaceAppearances HOT 3
- Table diffing has unreadable text color in dark theme
- Rojo v7.4.2 corrupts refs, meshes & part positions HOT 24
- Wally package causes folders in rbxl/rbxm files built by Rojo to have Archivable set to false HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rojo.