Skip to content

NoahDomingues/OFP-Extractor

Repository files navigation

Operation Flashpoint Game Extractor

A simple extraction tool for unpacking Operation Flashpoint's game files. 🐉

🐉 OFP Game Extractor v1.1

OFP Extractor is a simple tool to unpack the game files of Operation Flashpoint: Dragon Rising and Operation Flashpoint: Red River, both realistic, tactical mil-sim shooter games released by Codemasters in 2009 and 2011 respectively. This tool is designed to decompress, decrypt, and extract files from the win_000 archives in the game installation folder (inside these archives is where most of the game's content is stored).

Download the OFP Extractor.exe file below, place it in your game installation folder, and run it. The files will be extracted to the _extract folder in your game installation directory. There will be approximately 5GB of extracted files on total (slightly more than 5GB) for Dragon Rising, and under 3GB for Red River.

Currently, some files extracted by this tool will be corrupted to a degree, particularly larger XML files (over 256KB). Most of the files I have been able to check (other XMLs, and audio files) have remained intact, however.

Also, the tool does not maintain the directory structure of extracted files higher than 1 level. So you will have to move them about manually to put them into the right folder structure inside /data_win to make the game read them.

Once you have modified the extracted files, you must put them inside the correct directory in the /data_win folder for the game to read them. The extraction tool will ask you at the end of the extraction process if you would like it to create these folders to help you.

🛠️ OFDR/OFRR Modding

The extraction tool can extract the following file types from the game, which you can modify to make changes to the game. Some files will require special software programs to open/modify, some of which I have also listed.

  • XML config files (.xml) - Windows Notepad (or any other text editor), these are the easiest files to modify (binary XMLs will require conversion prior to editing, using Ego FIle Converter)
  • Audio/sounds (.fsb) - Game Extractor
  • Havok 3D skeletons/animations (.hkx) - Havok Content Tools 2012
  • 3D model bone maps (.bm)
  • DirectX index buffers (.ib)
  • DirectX vertex buffers (.vb)
  • Textures (.stf) - use a Hex Editor to convert to .dds format, then open with GIMP (free) or Adobe Photoshop (paid)
  • Terrains/terrain textures (.tpk) - Ego File Converter (may not work)
  • Language data files (.lng) - Ego Language Editor
  • Jpak archives (.jpk) - Ego JPK Archiver
  • User Interface (UI) files (.fui)
  • Fragment shader data files (.fpo)
  • Vertex shader data files (.vpo)
  • Unknown hints files (.hints)
  • Unknown metadata files, possibly object metadata (.met)

Any of these files can be opened using a Hex Editor to view the file's basic binary data, however.

📥 Download

Only the code used by the extractor is available on GitHub. To download the tool itself, you must join the Discord server, navigate to the #🛠game-unpacker-tool channel, and download the .exe application that you can run.

If you have any issues using the tool, let me know in the Discord server's #⁠🌐tech-support or #⁠💬modding-discussion channel.

I will continue working on this tool to try to fix the issues, and if there is any way you can contribute or help fix what's wrong with the tool that would be amazing. But in the meantime... enjoy! =)

👥 Contributors

Contributors

⭐ If this tool was of any use to you, please consider giving it a Star - it would make my day! ⭐

OFP Extractor is based on QuickBMS by Aluigi. Thank you to TemplarGFX, tvig0r0us, and Jaum for helping out with this project!

About

A simple extraction tool for unpacking Operation Flashpoint's game files. Works for both Dragon Rising and Red River.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •