Skip to content

Releases: rfg-modding/RfgToolsPlusPlus

RFG misc mesh extractor v1.1.0

23 Aug 20:50
Compare
Choose a tag to compare

No code changes. Just republished as a single file. That way you can move the tool around freely without needing to move the DLLs it relies on. After downloading see the initial release post for information on what this tool does.

RFG misc mesh extractor

16 Aug 00:38
Compare
Choose a tag to compare

This exe can extract several RFG mesh formats which aren't currently supported by any other tool. This was originally only for personal testing but I'm releasing it so there's at least some support for extracting all RFG mesh formats. It may not be 100% reliable for that reason. It requires the .NET 7.0 runtime to run. It will attempt to extract the following formats:

  • .ccar_pc
  • .cstch_pc
  • .cfmesh_pc
  • .cefct_pc

You'll need to unpack the .vpp_pc and .str2_pc files to reach the meshes. Use RfgUtil for that: https://github.com/Moneyl/RfgUtil/releases

Some meshes, like vehicles (ccar_pc) will output as multiple .obj files into a subfolder. If the mesh you're extracting has a gpu file it must be in the same folder as the cpu file for extraction to work. e.g. edf_medtanka.ccar_pc and edf_medtanka.gcar_pc must be in the same folder. So keep that in mind if you move the mesh files.

The tool doesn't do any texture extraction. You'll need to do that manually. In the future I want to add proper mesh extraction to Nanoforge which handles finding textures for you. That's low priority compared to the map editor, so stopgap apps like this will have to do.

Experimental chunk and packfile extractor v0.2.0

10 Dec 16:29
Compare
Choose a tag to compare

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

Chunk and packfile extractor v0.1.0

08 Dec 23:44
Compare
Choose a tag to compare
Pre-release

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