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

how to auto detect version of json format? #173

Open
ryokun0101 opened this issue Feb 24, 2023 · 0 comments
Open

how to auto detect version of json format? #173

ryokun0101 opened this issue Feb 24, 2023 · 0 comments

Comments

@ryokun0101
Copy link

I accidentally mixed json data files of different version with each other. Now I don't know how to auto sort them into different folders. Is there any script or tool to auto detect and copy or update them to specific folder/ label?

For example, I mixed 2 files of different engine format version and cannot recognize the version or framework of them:

`{"mc":{"at01_5":{"frameRate":20,"labels":null,"frames":[{"res":"50000","x":-24,"y":-62},{"res":"50001","x":-23,"y":-59},{"res":"50002","x":-25,"y":-56},{"res":"50003","x":-29,"y":-67},{"res":"50004","x":-43,"y":-65},{"res":"50005","x":-39,"y":-61},{"res":"50006","x":-30,"y":-60},{"res":"50007","x":-29,"y":-59}]}},"res":{"50000":{"x":0,"y":0,"w":50,"h":69},"50001":{"x":50,"y":0,"w":50,"h":72},"50002":{"x":100,"y":0,"w":60,"h":67},"50003":{"x":160,"y":0,"w":38,"h":69},"50004":{"x":198,"y":0,"w":50,"h":68},"50005":{"x":248,"y":0,"w":48,"h":68},"50006":{"x":296,"y":0,"w":42,"h":69},"50007":{"x":338,"y":0,"w":56,"h":66}}}

{"mc":{"at01_1":{"frameRate":20,"labels":null,"frames":[{"res":"10000","x":-23,"y":-59},{"res":"10001","x":-17,"y":-64},{"res":"10002","x":-24,"y":-69},{"res":"10003","x":-1,"y":-49},{"res":"10004","x":1,"y":-51},{"res":"10005","x":-4,"y":-56},{"res":"10006","x":-7,"y":-59},{"res":"10007","x":-23,"y":-61}]}},"res":{"10000":{"x":0,"y":0,"w":55,"h":67},"10001":{"x":55,"y":0,"w":45,"h":72},"10002":{"x":100,"y":0,"w":54,"h":71},"10003":{"x":154,"y":0,"w":41,"h":73},"10004":{"x":195,"y":0,"w":49,"h":66},"10005":{"x":244,"y":0,"w":48,"h":63},"10006":{"x":292,"y":0,"w":44,"h":67},"10007":{"x":336,"y":0,"w":59,"h":64}}}

And when I run it into the animation, it was stiff. Any help was appreciated. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant