The Legend of Heroes: Trails of Cold Steel localization scripts
Install dependencies:
python2 -m pip install -r requirements.txt
Usage:
trails.py command args
Commands:
dat_to_xml src.dat [dest.xml] - convert *.dat file to *.xml.
convert src.{tbl,dat,xml} dest.{tbl,dat,xml} [encoding] - convert *.{tbl,dat,xml} file
to dest.{tbl,dat,xml}.
xml_to_tbl src.xml [dest.tbl] - convert *.xml file to *.tbl.
tbl_to_xml src.tbl [dest.xml] [encoding] - convert *.tbl file to *.xml.
xml_to_dat src.xml [dest.dat] [encoding] - convert *.xml file to *.dat.
dump_data src.tbl dest.txt - extract data entries from src.tbl
and write to dest.txt.
merge src1.{tbl,xml} src2.{tbl,xml} dest.{tbl,xml} [encoding] - use a text entries of src1 and a data
entries of src2 and write result to destination file.
dump_text src.tbl dest.txt - extract text entries from src.tbl and
write to dest.txt.
wrap src.{tbl,dat,xml} dest.{tbl,dat,xml} [encoding] - wrap text entries in a source file
so that they fit on the display.
encode src1.{tbl,xml} dest.{tbl,xml} encoding - change encoding of a source file.
bulk_copy source_dir dest_dir - bulk copy *.tbl and *.dat files from
source_dir to dest_dir.
bulk_convert source_dir dest_dir - bulk convert files in source_dir and
save them in dest_dir.