Kaplas80 / TF3

Translation Framework v3
MIT License
20 stars 1 forks source link

Multi file containers #24

Closed Kaplas80 closed 2 years ago

Kaplas80 commented 2 years ago

Description

There are containers that needs more than one file.

For example, Trails in the Sky games uses 2 files for each container: one as index (.dir) and one with the data (.dat). Other example is 古剑奇谭三(Gujian3). This game has an index file and the data is stored in several other files.

With these changes, TF3 can extract and repack multifile containers.

THIS IS A BREAKING CHANGE

The existing scripts need to be adapted.

Example. From:

"Path": "data/db.par",
"Checksum": 15875901786622737460,

To:

"Paths": [ "data/db.par" ],
"Checksums": [ 15875901786622737460 ],