I've been working on the Saints Row 3 texture files and I've finally thrown together a utility to unpack the texture data files.
I haven't written the program to repackage the textures (there is still one flag I can't decode) however I am working on it.
For those of you that like that sort of thing the program's source is in the source code
folder. For those that don't you can just delete it.
Usage:
To unpack a texture file:
SR3UnpackTextures [optional parameters] <<filename>.cpeg_pc or <filename>.cvbm_pc>
You need to have the corresponding <filename>.gpeg_pc or <filename>.gvbm_pc file in the same directory.
i.e.
SR3UnpackTextures ui_legal_pc.cpeg_pc
Plus the ui_legal_pc.gpeg_pc file has to be in the same directory as the ui_legal_pc.cpeg_pc file.
It will scan the file for any textures and save them under <texture name>.DDS
Sorry if you don't like DDS files but that's the format the game uses and I'm too lazy to convert the file format.
Optional parameters:
-o:<output directory>
To repack the textures:
SR3RepackTextures [optional parameters] <cpeg file name>
The cpeg file name is the file name of where the textures were originally extracted from. It must end with a cpeg_pc or cvbm_pc extension.
The files at the moment must be in the DDS file format. The formats this utility supports are:
DXT1
DXT3
DXT5
R5G6B5
A1R5G5B5
A4R4G4B4
R8G8B8
A8R8G8B8
Optional parameters:
-i:<input directory>
The file is attached to this post. Download SR3TextureUtilities6.7z for the latest version.
I haven't written the program to repackage the textures (there is still one flag I can't decode) however I am working on it.
For those of you that like that sort of thing the program's source is in the source code
folder. For those that don't you can just delete it.
Usage:
To unpack a texture file:
SR3UnpackTextures [optional parameters] <<filename>.cpeg_pc or <filename>.cvbm_pc>
You need to have the corresponding <filename>.gpeg_pc or <filename>.gvbm_pc file in the same directory.
i.e.
SR3UnpackTextures ui_legal_pc.cpeg_pc
Plus the ui_legal_pc.gpeg_pc file has to be in the same directory as the ui_legal_pc.cpeg_pc file.
It will scan the file for any textures and save them under <texture name>.DDS
Sorry if you don't like DDS files but that's the format the game uses and I'm too lazy to convert the file format.
Optional parameters:
-o:<output directory>
Set the directory that the textures are extracted to, instead of the same directory as the peg file.
-silentOnly output errors.
To repack the textures:
SR3RepackTextures [optional parameters] <cpeg file name>
The cpeg file name is the file name of where the textures were originally extracted from. It must end with a cpeg_pc or cvbm_pc extension.
The files at the moment must be in the DDS file format. The formats this utility supports are:
DXT1
DXT3
DXT5
R5G6B5
A1R5G5B5
A4R4G4B4
R8G8B8
A8R8G8B8
Optional parameters:
-i:<input directory>
Set the directory that the textures are read from, instead of the same directory as the peg file.
-o:<output peg file>Set the name of the peg files that are created. Handy if you don't want to overwrite an existing peg file. The file name must end with cpeg_pc or cvbm_pc.
-silentOnly output errors.
Let me know if there are any problems with the utility and I'll do my best to fix them.The file is attached to this post. Download SR3TextureUtilities6.7z for the latest version.