Current state :
- PFF and MRF editing.
I just noticed the «file entry segment» has five null char before the file entry segment model described by https://codertao.com/blog/?cat=18
. Also, there is no footer.
Second issue I’m facing is the file entry segments in CGold.pff and Resource.pff being slightly smaller than expected with respect to the fileCount and segmentSize.
Once this is fixed and understood, I’ll be able to improve the GUI operation on pff (file insertion, file order swap, file removal) and then concentrate on map reverse engineering attempts.
Edit: Fixed. Since I had patched the MRF edition, I added 5 null bytes to the filelistentry. It’s not the case for Pff files. In both cases, there is no footer in these PFF2 files.
Status update - fixed. Currently having a look on maps. I hope that they are not compressed format otherwise I'll have some trouble !
Status update - fixed. Almost cracked Grey maps, I hope color maps will look the same (but palette must me more complicated). .PCX files use RLE (Run Length Encoding), but with a modified version, not compatible with today picture editors. Coding this should not be too complicated, there is only one byte that is totally unknown to me (maybe a timestamp), and a 256 byte field that I suspect to be the bin count. I hope it won’t take too long, but I’ll have few time in the following days. <See Modded map file viewed from file editor in second attached picture. In this modded map file, the base level and top level are interverted>
Status update 13/02/23 - Okay, the encoding used is not exactly run length encoding. I scratched my hair the whole day long, now I’m making a break !