Just to be clear: I won't remove support for reading any of the existing
formats, I only want to replace saving to the current binary format because
it isn't user friendly at all and complicated to maintain in code when I
want to change something. With a text format people will be able to edit
files with a text editor or write scripts in their favorite language to
update things so I'm leaning towards JSON since parsers/libraries are
available for pretty much any language.

Right now the format used for saving depends on the extension you type when
entering the save file name, if you enter a name that ends with .LDR or
.DAT it will save the file in the LDraw format, otherwise it uses LeoCAD's
format. Do you have any suggestions on how to make that better?

The reason to have a custom format is because I save extra information that
wouldn't be easily supported in the LDraw format, I'd need to clutter the
file with comments to save everything there.



On Fri, Aug 29, 2014 at 11:28 PM, Jacob Sparre Andersen <
[email protected]> wrote:

> Leonardo Zide wrote:
>
>> I've checked in some early support for saving JSON files, here's a
>> example of what it looks like right now. I'm thinking about switching the
>> save format to something like this so any comments are welcome:
>>
> Your example of how you want to use JSON looks fine.
>
> Some suggestions:
> + Allow the user to select the default save format.
> + If you phase out some formats, please retain the ability to read them
> (or create a stand-alone conversion tool).
> + Please consider writing a formal specification of the JSON schema used.
> (See <http://json-schema.org/> for a way to do it.)
>
> Play well,
>
> Jacob
> --
> Sal Colibri (from Roger Leloup's "Yoko Tsuno"):
>       http://lego.sparre-andersen.dk/Transport/Fly/Colibri/
>
>
> _______________________________________________
> Leocad mailing list
> [email protected]
> https://list.gerf.org/listinfo/leocad
>
_______________________________________________
Leocad mailing list
[email protected]
https://list.gerf.org/listinfo/leocad

Reply via email to