aybe
25th April 2015, 07:58 PM
UPDATE 4
Take a look at notes in update 3 then,
https://github.com/aybe/WXX-Rebirth/releases/tag/PBPv2
TIMs detection
bug fixes
At this point you are getting pretty much the same picture as in the attached Excel file, what is not an image is game data; things are clearer.
There won't be anything new until quite some time now, things needs to be reverse-engineered.
:D :D :D
Update 3
it has been simplified, accepts one file and an output directory
all bugs are fixed AFAIK
better interface/reporting with colors
shipped with an Unpack.bat to make your life easier
The older version was trying to be smart and failed somehow, now there are two tools that each do a very specific task and both do work well. I've ditched the multiple input files feature as this was limiting the output options and was cumbersome, with the current version you can write your own batch file and keep control of things as you wish.
Please disregard all previous versions.
There will be a last update (or unless bugs are found), the detection of TIM files; for the time being they are easy to spot : every file that has two sequence of numbers (e.g. TRACKM0A.PBP.00011.00000) is a TIM. You can easily group them within Explorer by sorting by modified date :
http://img15.hostingpics.net/thumbs/mini_809121snap0809.png (http://www.hostingpics.net/viewer.php?id=809121snap0809.png)
(in this example I've already renamed them to TIMs but they would pop in the exact same order)
grab it here (https://github.com/aybe/WXX-Rebirth/releases/tag/PBP)
PS1: to preview TIM files in Explorer, grab SageThumbs (http://sourceforge.net/projects/sagethumbs/)
PS2: your AV might suspect these EXEs, there's nothing I can do about that and you have to allow them, also you can always check the code with JustDecompile (http://www.telerik.com/products/decompiler.aspx)
Waiting for your feedback now !
:D
UPDATE 2
Two new tools (UnpackCMPEx and UnpackPBPEx (https://github.com/aybe/WXX-Rebirth/releases/tag/UnpackCMPEx_UnpackPBPEx))
searches for CMP files and unpacks them
unpacks a PBP (simplified version of the first tool, better suited for batch operations)
So far, it successfully unpacks a PBP and the CMPs inside it, no false-positive AFAIK :+
http://img11.hostingpics.net/thumbs/mini_491824snap0808.png (http://www.hostingpics.net/viewer.php?id=491824snap0808.png)
See USAGE.TXT for an example !
PS1: TIMs are not yet renamed to .TIM as explained in USAGE.TXT, working on another tool for that.
PS2: you can use SageThumbs (http://sourceforge.net/projects/sagethumbs/) to get a preview of TIMs within Explorer
:P
UPDATE 1
Here is (finally) the first version of the unpacker : https://github.com/aybe/WXX-Rebirth/releases :P
I guess it works properly since it extracted 10990 items out of 197 files (every PBP file from every version: WO3E, WO3J, WO3SE, WO3U, WO3UDEMO)
NOTES:
full instructions on how to use it are on the README.TXT
archives of TIM images (aka CMPs) are not decompressed by the utility -> the UnpackCMP utility is on its way for this.
in the web link above there is also an Excel file, it contains a couple of informations already figured from the unique PBP file in the Wipeout 3 US Demo Disc (highly recommended since most files will harbor this structure)
the 'unofficial' preferred version of Wipeout 3 to study is the SE version, it is the most recent, the most featured and surprisingly there are less files
Let me know if you encounter any problem !
Never say never, all things have a beginning but if we don't start we have zero chance to succeed :g
I took a quick look at the format and here are my findings:
http://img11.hostingpics.net/thumbs/mini_275356snap0794.png
(http://www.hostingpics.net/viewer.php?id=275356snap0794.png) http://img11.hostingpics.net/thumbs/mini_721806snap0795.png (http://www.hostingpics.net/viewer.php?id=721806snap0795.png)
Header (in UINT32 units)
at offset 80 it is the number of entries in the container
at offset 88 starts the 12 bytes struct of each entry
1st value is absolute offset in file
2nd value is unknown
3rd is the length of the entry
i've checked on multiple PBP and they fit perfectly with their length
We can already get the individual parts of these PBPs and try to get to next step :hyper
IMO these files are certainly compressed but not necessarily encrypted, there used to be some entropy detection software that could help but can't remember the name actually ...
EDIT
Just wrote a tiny unpacker, it swallowed every PBP :hyper out of WO3SE from \WIPEOUTC and \WIPEOUT3; there is always between 58 and 60 files in each PBP. With time and patience we'll decipher them :cowboy
EDIT 2
I don't know where he got these infos (http://www.wipeoutzone.com/forum/showthread.php?1207-Modifying-Wipeout-3-SE&p=14652#post14652)from but they're hintful.
EDIT 3
Some progress ! :hyper
There are VAG files in these containers: (ship thruster sound)
http://img11.hostingpics.net/thumbs/mini_296345snap0796.png (http://www.hostingpics.net/viewer.php?id=296345snap0796.png)
There are also a bunch of files which I suspect are textures since there are many entries in their header have a 0x40 value (64 pixels), not .TIM files though. We should prioritize in searching for files from the official formats in the SDK, if not then it could simply be a form of RLE encoding.
There are also files that looks like polygon data but it's a bit premature IMO :
http://img11.hostingpics.net/thumbs/mini_544004snap0797.png (http://www.hostingpics.net/viewer.php?id=544004snap0797.png)
The left-most pixel rarely changes and could indicate the polygon type as it can be seen in no$psx debugger.
Also many of these files are duplicate, basing myself on studying a group of files from the link posted in edit 2.
2 be continued
- - - Updated - - -
EDIT 5
Houston, we have TIMs from PBPs !
http://img15.hostingpics.net/thumbs/mini_794119snap0798.png (http://www.hostingpics.net/viewer.php?id=794119snap0798.png)
:hyper :hyper :hyper
- - - Updated - - -
EDIT 6
http://img15.hostingpics.net/thumbs/mini_305880snap0799.png (http://www.hostingpics.net/viewer.php?id=305880snap0799.png)
- - - Updated - - -
EDIT 7
Houston, we're about to crash on vertex data !
http://img15.hostingpics.net/thumbs/mini_161572snap0800.png (http://www.hostingpics.net/viewer.php?id=161572snap0800.png)
:hyper :hyper :hyper
basically, files with no headers are simply LZ77 streams
EDIT 8
Large 2 groups on bottom : ship/team data and I guess textures
Bigger files seems to be vertex data as they have some kind of stride
http://img11.hostingpics.net/thumbs/mini_339471snap0801.png (http://www.hostingpics.net/viewer.php?id=339471snap0801.png)
Take a look at notes in update 3 then,
https://github.com/aybe/WXX-Rebirth/releases/tag/PBPv2
TIMs detection
bug fixes
At this point you are getting pretty much the same picture as in the attached Excel file, what is not an image is game data; things are clearer.
There won't be anything new until quite some time now, things needs to be reverse-engineered.
:D :D :D
Update 3
it has been simplified, accepts one file and an output directory
all bugs are fixed AFAIK
better interface/reporting with colors
shipped with an Unpack.bat to make your life easier
The older version was trying to be smart and failed somehow, now there are two tools that each do a very specific task and both do work well. I've ditched the multiple input files feature as this was limiting the output options and was cumbersome, with the current version you can write your own batch file and keep control of things as you wish.
Please disregard all previous versions.
There will be a last update (or unless bugs are found), the detection of TIM files; for the time being they are easy to spot : every file that has two sequence of numbers (e.g. TRACKM0A.PBP.00011.00000) is a TIM. You can easily group them within Explorer by sorting by modified date :
http://img15.hostingpics.net/thumbs/mini_809121snap0809.png (http://www.hostingpics.net/viewer.php?id=809121snap0809.png)
(in this example I've already renamed them to TIMs but they would pop in the exact same order)
grab it here (https://github.com/aybe/WXX-Rebirth/releases/tag/PBP)
PS1: to preview TIM files in Explorer, grab SageThumbs (http://sourceforge.net/projects/sagethumbs/)
PS2: your AV might suspect these EXEs, there's nothing I can do about that and you have to allow them, also you can always check the code with JustDecompile (http://www.telerik.com/products/decompiler.aspx)
Waiting for your feedback now !
:D
UPDATE 2
Two new tools (UnpackCMPEx and UnpackPBPEx (https://github.com/aybe/WXX-Rebirth/releases/tag/UnpackCMPEx_UnpackPBPEx))
searches for CMP files and unpacks them
unpacks a PBP (simplified version of the first tool, better suited for batch operations)
So far, it successfully unpacks a PBP and the CMPs inside it, no false-positive AFAIK :+
http://img11.hostingpics.net/thumbs/mini_491824snap0808.png (http://www.hostingpics.net/viewer.php?id=491824snap0808.png)
See USAGE.TXT for an example !
PS1: TIMs are not yet renamed to .TIM as explained in USAGE.TXT, working on another tool for that.
PS2: you can use SageThumbs (http://sourceforge.net/projects/sagethumbs/) to get a preview of TIMs within Explorer
:P
UPDATE 1
Here is (finally) the first version of the unpacker : https://github.com/aybe/WXX-Rebirth/releases :P
I guess it works properly since it extracted 10990 items out of 197 files (every PBP file from every version: WO3E, WO3J, WO3SE, WO3U, WO3UDEMO)
NOTES:
full instructions on how to use it are on the README.TXT
archives of TIM images (aka CMPs) are not decompressed by the utility -> the UnpackCMP utility is on its way for this.
in the web link above there is also an Excel file, it contains a couple of informations already figured from the unique PBP file in the Wipeout 3 US Demo Disc (highly recommended since most files will harbor this structure)
the 'unofficial' preferred version of Wipeout 3 to study is the SE version, it is the most recent, the most featured and surprisingly there are less files
Let me know if you encounter any problem !
Never say never, all things have a beginning but if we don't start we have zero chance to succeed :g
I took a quick look at the format and here are my findings:
http://img11.hostingpics.net/thumbs/mini_275356snap0794.png
(http://www.hostingpics.net/viewer.php?id=275356snap0794.png) http://img11.hostingpics.net/thumbs/mini_721806snap0795.png (http://www.hostingpics.net/viewer.php?id=721806snap0795.png)
Header (in UINT32 units)
at offset 80 it is the number of entries in the container
at offset 88 starts the 12 bytes struct of each entry
1st value is absolute offset in file
2nd value is unknown
3rd is the length of the entry
i've checked on multiple PBP and they fit perfectly with their length
We can already get the individual parts of these PBPs and try to get to next step :hyper
IMO these files are certainly compressed but not necessarily encrypted, there used to be some entropy detection software that could help but can't remember the name actually ...
EDIT
Just wrote a tiny unpacker, it swallowed every PBP :hyper out of WO3SE from \WIPEOUTC and \WIPEOUT3; there is always between 58 and 60 files in each PBP. With time and patience we'll decipher them :cowboy
EDIT 2
I don't know where he got these infos (http://www.wipeoutzone.com/forum/showthread.php?1207-Modifying-Wipeout-3-SE&p=14652#post14652)from but they're hintful.
EDIT 3
Some progress ! :hyper
There are VAG files in these containers: (ship thruster sound)
http://img11.hostingpics.net/thumbs/mini_296345snap0796.png (http://www.hostingpics.net/viewer.php?id=296345snap0796.png)
There are also a bunch of files which I suspect are textures since there are many entries in their header have a 0x40 value (64 pixels), not .TIM files though. We should prioritize in searching for files from the official formats in the SDK, if not then it could simply be a form of RLE encoding.
There are also files that looks like polygon data but it's a bit premature IMO :
http://img11.hostingpics.net/thumbs/mini_544004snap0797.png (http://www.hostingpics.net/viewer.php?id=544004snap0797.png)
The left-most pixel rarely changes and could indicate the polygon type as it can be seen in no$psx debugger.
Also many of these files are duplicate, basing myself on studying a group of files from the link posted in edit 2.
2 be continued
- - - Updated - - -
EDIT 5
Houston, we have TIMs from PBPs !
http://img15.hostingpics.net/thumbs/mini_794119snap0798.png (http://www.hostingpics.net/viewer.php?id=794119snap0798.png)
:hyper :hyper :hyper
- - - Updated - - -
EDIT 6
http://img15.hostingpics.net/thumbs/mini_305880snap0799.png (http://www.hostingpics.net/viewer.php?id=305880snap0799.png)
- - - Updated - - -
EDIT 7
Houston, we're about to crash on vertex data !
http://img15.hostingpics.net/thumbs/mini_161572snap0800.png (http://www.hostingpics.net/viewer.php?id=161572snap0800.png)
:hyper :hyper :hyper
basically, files with no headers are simply LZ77 streams
EDIT 8
Large 2 groups on bottom : ship/team data and I guess textures
Bigger files seems to be vertex data as they have some kind of stride
http://img11.hostingpics.net/thumbs/mini_339471snap0801.png (http://www.hostingpics.net/viewer.php?id=339471snap0801.png)