Having issues saving out JSONs

General discussion about the R.U.B.E editor
Post Reply
mattbowen
Posts: 1
Joined: Thu Feb 27, 2014 11:46 pm

Having issues saving out JSONs

Post by mattbowen »

Lately when I've tried to export .json files from RUBE, every vertex is saved at position 0,0. The world position of the body will save however, it's just the local positions of the vertices. A .rube will save the file correctly.

Is this a bug? Or have I tampered with any settings by mistake?
When I first used it, I created a number of .json examples that were working fine. My version of RUBE is the purchased version by the way.
iforce2d
Site Admin
Posts: 861
Joined: Sat Dec 22, 2012 7:20 pm

Re: Having issues saving out JSONs

Post by iforce2d »

So if you create a new scene, add a body with a polygon fixture (eg. square) and export that to .json the vertices are all zero? Or is it just with scenes you have been using previously, that have various settings associated with them?

Are you using Linux with a locale other than en_US.utf8 ?

Does the resulting file have the correct number of vertices exported?

Have you unchecked anything in the "Included properties" section of the scene settings? (Scene settings dialog, Export option tab, at the bottom). How about the three options just above that, under "Use human-readable floats in JSON", what are they set to?
Post Reply