Skip to content

Experimental chunk and packfile extractor v0.2.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@Moneyl Moneyl released this 10 Dec 16:29
· 27 commits to master since this release

This release adds support for more cchk_pc files. The last version failed on many of them. This version can still fail but it should be less often. Some files can only partially be extracted. This is typically signaled with an error message "couldn't find next destroyable".

This is an experimental tool for extracting RFG destructible meshes (.cchk_pc & .gchk_pc files) to gltf files. It doesn't work for all meshes and the format hasn't been fully reversed. Eventually this feature will be implemented into Nanoforge once the format has been fully reversed. The tool also includes a packfile (.vpp_pc & str2_pc) extractor since existing extractors have bugs.

How to use

Packfile extractor

If you pass a .vpp_pc or .str2_pc file as the first argument, or drag-drop one onto the tool it will extract that packfile. If you also pass the --recursive argument it'll extract the vpp_pc and extract any str2_pc files within it.

Example usage:
ChunkExtractor.exe terr01_l0.vpp_pc --recursive

Chunk extractor

Either pass a cchk_pc file path to the exe or drop one onto the exe to extract that file. If it's supported it will be extracted as a gltf file in the folder that the cchk_pc file is in. Note: The matching gchk_pc file must be in the same folder as the cchk_pc file you're extracting. If pass the --textures option along with a chunk file name it'll list any texture names it finds.

Example usage:
ChunkExtractor.exe 0101vehicle_destroyed_a.cchk_pc

Errors

This tool is experimental so it's likely to fail or crash on some meshes. If extraction succeeds it'll print Done! to the console. If not, it likely crashed.

Requirements

Screenshot

The tool outputs gltf files which can opened by any modern 3d modelling software, such as blender. Here's an example of one of the buildings:
EDFHQ_Command_bldg_Render1