You can now get "Down the PUB", a tool that can both read and (to an extent) write PUB files further down the thread.
Disclaimer: I only have the ICC III demo at the moment, as I'm waiting for my copy to arrive. If the file formats are different between the demo and the boxed version, then this may break horribly. Hell, this will probably break horribly anyway.
So, it turns out that the PUB format isn't that complicated. It's basically a very simple indexed archive format without any compression or encryption. Furthermore, the textures stored within the PUB files are (mostly) in a very simple 4-bytes-per-pixel BRGA format, which makes them trivial to extract. (The only exception to that I've seen is the splash screen, which uses a format I haven't quite cracked yet.)
I've attached a quick hack that I've written in Python that should be able to extract content out of PUB files. Theoretically, it should work on any Windows 2000 and XP computer, but I can't vouch for it. At any rate, the procedure (if the program works) is pretty simple:
If all goes well, a directory will be created with the data in there. There are no file names within the PUB files, only 32-bit IDs, so that's what gets used for the file names. Textures will also be output in PNG format.
At this stage, this is read-only, but it should be fairly easy to develop it to at least replace textures. I'll post an updated version when time permits (hopefully in the next few days) that can do that.
For anyone who can code in Python, the source code is in the zip file in the "Source" directory. My notes on the PUB format are also in there.
Good luck. Now, if you'll excuse me, I think I need to go another three and a half years before posting again...
Disclaimer: I only have the ICC III demo at the moment, as I'm waiting for my copy to arrive. If the file formats are different between the demo and the boxed version, then this may break horribly. Hell, this will probably break horribly anyway.
So, it turns out that the PUB format isn't that complicated. It's basically a very simple indexed archive format without any compression or encryption. Furthermore, the textures stored within the PUB files are (mostly) in a very simple 4-bytes-per-pixel BRGA format, which makes them trivial to extract. (The only exception to that I've seen is the splash screen, which uses a format I haven't quite cracked yet.)
I've attached a quick hack that I've written in Python that should be able to extract content out of PUB files. Theoretically, it should work on any Windows 2000 and XP computer, but I can't vouch for it. At any rate, the procedure (if the program works) is pretty simple:
- Extract the zip file
- Run PubExtractor.exe
- Select the PUB file you want to extract
- Select the directory you want it extracted to (the program will create a new directory within the selected directory)
- Hit Extract
- Wait
If all goes well, a directory will be created with the data in there. There are no file names within the PUB files, only 32-bit IDs, so that's what gets used for the file names. Textures will also be output in PNG format.
At this stage, this is read-only, but it should be fairly easy to develop it to at least replace textures. I'll post an updated version when time permits (hopefully in the next few days) that can do that.
For anyone who can code in Python, the source code is in the zip file in the "Source" directory. My notes on the PUB format are also in there.
Good luck. Now, if you'll excuse me, I think I need to go another three and a half years before posting again...
Attachments
Last edited: