View Single Post
Old 11-24-2008, 07:31 PM   #46
AZed
Connoisseur
AZed has a complete set of Star Wars action figures.AZed has a complete set of Star Wars action figures.AZed has a complete set of Star Wars action figures.AZed has a complete set of Star Wars action figures.
 
Posts: 57
Karma: 307
Join Date: Oct 2008
Device: PalmOS PDA
Quote:
Originally Posted by nrapallo View Post
No worry, I'm happy to contribute, explain, educate, ....
Well, I hope you have access to a better version of the .IMP standard than can be found at http://krausyaoj.tripod.com/reb1200.htm -- I've just run into a brick wall. EBook::Tools can now recognize IMP files and parse the header data, but the table of contents data I'm getting on the test file I'm using downloaded from Fictionwise bears no resemblance at all to the file types in the documentation.

Code:
DEBUG: found toc entry 'AXIB' [92 bytes]
DEBUG: found toc entry '    ' [5865 bytes]
DEBUG: found toc entry 'EJWD' [76 bytes]
DEBUG: found toc entry 'GHEJ' [76 bytes]
DEBUG: found toc entry 'GJOB' [484 bytes]
DEBUG: found toc entry 'GJSB' [45 bytes]
DEBUG: found toc entry 'GLMV' [1497 bytes]
DEBUG: found toc entry 'MVGJ' [1392 bytes]
DEBUG: found toc entry 'MVMR' [136 bytes]
DEBUG: found toc entry 'OZSN' [60 bytes]
DEBUG: found toc entry 'SRWH' [64 bytes]
DEBUG: found toc entry 'WPER' [152 bytes]
DEBUG: found toc entry 'YFOX' [1838 bytes]
DEBUG: found toc entry 'YLAB' [458 bytes]
DEBUG: found toc entry 'YVGH' [52 bytes]
The ' ' file is the DATA.FRK text, but that's the only thing that matches, and if it's using some form of LZSS for compression, it's using a very strange version that doesn't use a sliding window, but instead must be sticking all of its dictionary entries into one of those other resource files, because there's no initial ASCII data at all to work with. It's also not ZLib compression, which I checked just in case.

Unless you have some idea of how to proceed, I'm going to end up releasing 0.4.0 with just minimal support for unpacking a .imp file into a REB1200 .RES directory, but no way to actually access the text.

Update: it just occurred to me that they might be adding a ninth bit before every 8 bits of real data, instead of using the 8th bit as a compression flag. This is something of a long shot, but I can at least try to check for it by staring at the beginning of the bitstream 9 bits at a time and see if I can pull out a pattern. Not tonight, though.

Last edited by AZed; 11-24-2008 at 07:42 PM. Reason: 9th bit afterthought
AZed is offline   Reply With Quote