I can try, let's say for itemname-e.dat:
sample:
description:
All hex values in the file are read low endian
----------------------------------------------
Header:
-------
4 bytes: Number of entries (?)
Entries:
--------
4 bytes: ID
4 bytes: name string length (N)
N bytes: name (UTF8)
4 bytes: name finishing string (x00000000)
1(2) bytes: description sting length (D)
D bytes: description (ASCII)
4 bytes: finishing string (xFFFFFFFF)
Comments, exceptions:
--------
Finishing string(xFFFFFFFF) can go right after name finishing string (x00000000), in this case description is left empty.
Description length (the best one, it cost me few hours of headache while I foundout ...):
If first byte after name finishing string less that 64, length will be this one byte.
If first byte after name finishing string greater thatn 64, we should take one more byte and do that:
Multiply 64 to second byte and add second byte, substracted by 64, that will be our description length
Example:
1. first byte 63 (x3F) - mean that length of desc is 63 bytes.
2. first byte 98 (x62) - mean that we should take second byte - 6 (x06), and do such:
64 * 6 + 98 - 64 = 418, our description length will be 418.
There is an ASCII string at the end of the file: "Safe package".