Parsing files... Have question(s)
Saigon1983
Member Posts: 157
Hi to all. I'm working on parsing files. And right now stunned with CHITIN.KEY Bif Entries offset 0x000a. IESDP says something about "The 16 bits of this field are used individually to mark the location of the relevant file." But I don't understand in clearly. When I parse file with ma program, I get something like this from these two bytes: b'\x01\x00' or b'A\x00' or even b'@\x00' and so on. I can not compare this data with the rest of IESDP notice: "(MSB) xxxx xxxx ABCD EFGH (LSB) Bits marked A to F determine on which CD the file is stored (A = CD6, F = CD1)
Bit G determines if the file is in the \cache directory
Bit H determines if the file is in the \data directory"
There is more than 8 variants of data in this offset...
Please, help to understand...
Bit G determines if the file is in the \cache directory
Bit H determines if the file is in the \data directory"
There is more than 8 variants of data in this offset...
Please, help to understand...
0
Comments
Bit 0: Root folder of the installed game (IESDP is not entirely correct on this one)
Bit 1: "cache" directory (or maybe CD0 directory. I don't think I encountered this bit yet in a game.)
Bit 2: CD1 directory
Bit 3: CD2 directory
Bit 4: CD3 directory
Bit 5: CD4 directory
Bit 6: CD5 directory
Bit 7: CD6 directory
Bit 8: Most likely CD7 directory (I never encountered this bit either.)
The "data" subfolder is usually part of the BIF filename found in the BIF entry structures of chitin.key.
These bits are pretty much only relevant for the original IE games. The actual CD locations are defined in the baldur.ini (and their counterparts in IWD, PST, ...).
Judging by the prefix, these were created with http://www.shsforums.net/topic/39238-generalized-biffing/ Which incidentally happens to be in WeiDU