wt-tools
wt-tools copied to clipboard
blk: `include` command
In new blk files (i don't know from which version exactly), there present include "somefile.blk" command. Currently, blk_unpack doesn't support this type, so can unpack files with errors, need to research a little.
What blk file is that which contains an include? Is it just a regular value like include:t = "somefile.blk or an extension to the format? I wrote an unpacker in Dlang based on your Python code and didn't notice any problems so far.
Hi. At some point, i found this command in non encrypted blk file somewhere, so i guessed, that in encrypted variant it should be too. But i don't found any clues of this.
That can only mean that their text-to-binary converter replaces the include line with the full contents before conversion, just like their developers know it from the C pre-processor and #include.
But don't worry, there are other cases where the original text cannot be restored: Flat values are always placed before groups and boolean values could have been yes/no, true/false or on/off in the original, not to mention white-space preferences. :-)
Btw, latest version in dev branch, not in master.