[DEVEL] LIBLCF AND LCF2XML
Posts
Pages:
1
Hi all, this is an introduction about some developer stuff related with RPG Maker 2000/3.
liblcf
liblcf is a library to handle RPG Maker 2000 and 2003 game data.
It can read and write LCF and XML files.
Part of C++ source files can be regenerated from templates and CSV files using a Python script.
Examples of the usefulness of the library
- Better RTP dependency scanners
- Game translation tools
- Game interpreters and editors
- Game data analysis (e.g. automatic game data information retrieval for websites)
Support
RPG_RT.ldb: 100%
RPG_RT.lmt: 100%
MapXXXX.lmu: 100%
SaveXX.lsd: 75%
Features
- ANSI/SHIFT_JIS to UTF-8 conversion (WinAPI or iconv)
- Binary and XML native file format support
Dependencies
- libexpat (optional, for XML reading)
How to fill more SaveXX.lsd unknown data
- Edit the fields.csv file inside the csv folder with WordPad/Excel/LibreOffice Calc and fill with new Save chunk information
- execute generate.py (requires Python) to regenerate C++ files from csv
- rebuild liblcf.
License
liblcf is released under the MIT license.
Source code
https://github.com/EasyRPG/liblcf/
lcf2xml
LCF2XML is a small command line based tool to convert RPG Maker 2000(3) data to XML and vice-versa.
Examples of the usefulness of the tool
- Helps liblcf improvement
- Low level game data and savegames editing
- Game interpreter development and debugging
- Game data analysis
Supported files
RPG_RT.lmt, RPG_RT.ldb MapXXXX.lmu, SaveXX.lsd and their XML versions.
Usage examples
lcf2xml.exe Map0001.lmu mymap.xml
lcf2xml.exe mymap.xml Map0001.lmu
lcf2xml.exe Save01.lsd Save01.xml
lcf2xml.exe Save01.xml Save01.lsd
lcf2xml.exe RPG_RT.ldb thedatabase.xml
lcf2xml.exe thedatabase.xml RPG_RT.ldb
lcf2xml.exe RPG_RT.lmt maptree.xml
lcf2xml.exe maptree.xml RPG_RT.lmt
Download
Continuous builds for Windows:
https://easy-rpg.org/jenkins/job/lcf2xml-win32/lastSuccessfulBuild/artifact/lcf2xml.exe
License
lcf2xml is released under the MIT license.
Source code
https://github.com/EasyRPG/LCF2XML/
liblcf
liblcf is a library to handle RPG Maker 2000 and 2003 game data.
It can read and write LCF and XML files.
Part of C++ source files can be regenerated from templates and CSV files using a Python script.
Examples of the usefulness of the library
- Better RTP dependency scanners
- Game translation tools
- Game interpreters and editors
- Game data analysis (e.g. automatic game data information retrieval for websites)
Support
RPG_RT.ldb: 100%
RPG_RT.lmt: 100%
MapXXXX.lmu: 100%
SaveXX.lsd: 75%
Features
- ANSI/SHIFT_JIS to UTF-8 conversion (WinAPI or iconv)
- Binary and XML native file format support
Dependencies
- libexpat (optional, for XML reading)
How to fill more SaveXX.lsd unknown data
- Edit the fields.csv file inside the csv folder with WordPad/Excel/LibreOffice Calc and fill with new Save chunk information
- execute generate.py (requires Python) to regenerate C++ files from csv
- rebuild liblcf.
License
liblcf is released under the MIT license.
Source code
https://github.com/EasyRPG/liblcf/
lcf2xml
LCF2XML is a small command line based tool to convert RPG Maker 2000(3) data to XML and vice-versa.
Examples of the usefulness of the tool
- Helps liblcf improvement
- Low level game data and savegames editing
- Game interpreter development and debugging
- Game data analysis
Supported files
RPG_RT.lmt, RPG_RT.ldb MapXXXX.lmu, SaveXX.lsd and their XML versions.
Usage examples
lcf2xml.exe Map0001.lmu mymap.xml
lcf2xml.exe mymap.xml Map0001.lmu
lcf2xml.exe Save01.lsd Save01.xml
lcf2xml.exe Save01.xml Save01.lsd
lcf2xml.exe RPG_RT.ldb thedatabase.xml
lcf2xml.exe thedatabase.xml RPG_RT.ldb
lcf2xml.exe RPG_RT.lmt maptree.xml
lcf2xml.exe maptree.xml RPG_RT.lmt
Download
Continuous builds for Windows:
https://easy-rpg.org/jenkins/job/lcf2xml-win32/lastSuccessfulBuild/artifact/lcf2xml.exe
License
lcf2xml is released under the MIT license.
Source code
https://github.com/EasyRPG/LCF2XML/
Bump. The LCF2XML is more interesting for non-developers. Translators will be happy with this.
If you want to read Japanese game texts, it might fail with some specific full width character conversion like wave dashes due to a Windows design bug. It will work fine on other operating systems.
To do this, add this code to RPG_RT.ini:
If you want to read Japanese game texts, it might fail with some specific full width character conversion like wave dashes due to a Windows design bug. It will work fine on other operating systems.
To do this, add this code to RPG_RT.ini:
[EasyRPG] Encoding=932
Pages:
1













