Leonardo Zide wrote:
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.
Good point.
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?
I was thinking of allowing the user to configure LeoCAD to save files in
LDraw format (even if the user doesn't explicitly enters a name ending
with .LDR or .DAT). But it is a minor detail.
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.
I imagined that was why.
Play well,
Jacob
--
»Square Ghost Cafe« - a new cafe in town:
http://lego.sparre-andersen.dk/By/Huse/Tre_hjoernehuse/
_______________________________________________
Leocad mailing list
[email protected]
https://list.gerf.org/listinfo/leocad