EasyRPG / liblcf

Library to handle RPG Maker 2000/2003 and EasyRPG projects
https://easyrpg.org
MIT License
116 stars 55 forks source link

Kaitai Struct for LCF #344

Open 0x4E69676874466F78 opened 4 years ago

0x4E69676874466F78 commented 4 years ago

Hi guys. Do you know about Kaitai Struct? http://kaitai.io/ It can generate c++ code from declarative format ksy (YAML). For example: http://formats.kaitai.io/ This can simplify maintenance and reduce errors. It even has visualization: https://github.com/kaitai-io/kaitai_struct_webide Compilation available in other languages (you can give the opportunity to work with formats in other languages).

fdelapena commented 4 years ago

Hi NightFox, thanks for the suggestion. Yes, it is known. I did time ago a .ksy for the XYZ image format, which is pretty simple. It worked nicely from command line tools but the Kaitai Web IDE has a bug not allowing to display the structure on it.

About the LCF structure, it could be useful for visualization where liblcf is not suitable, but using SWIG is a possible alternative for users using other programming languages.

A suggestion for contributions (they are very welcome) is by providing a patch for the Python based liblcf code generator and create .ksy declarative code based on Jinja2 templates, like we do for C++ generation, so if we make changes in chunks in CSV files, updating C++ code and any other is simpler.

KOLANICH commented 4 years ago

https://github.com/kaitai-io/kaitai_struct_formats/issues/236