wt-tools icon indicating copy to clipboard operation
wt-tools copied to clipboard

blk: `include` command

Open klensy opened this issue 8 years ago • 4 comments

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.

klensy avatar May 25 '17 14:05 klensy

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.

mleise avatar Apr 13 '18 20:04 mleise

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.

klensy avatar Apr 13 '18 21:04 klensy

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. :-)

mleise avatar Apr 13 '18 21:04 mleise

Btw, latest version in dev branch, not in master.

klensy avatar Apr 16 '18 07:04 klensy