Important information: this site is currently scheduled to go offline indefinitely by end of the year.

BioHazard File Archive Tool

General game file tools that are useful for more than one game
MeganGrass
ultra-n00b
Posts: 6
Joined: Wed Apr 20, 2011 7:47 pm
Been thanked: 8 times

BioHazard File Archive Tool

Post by MeganGrass »

EDIT (March 22, 2022): This version of BioFAT is outdated and support for non-RE/BH (Resident Evil/BioHazard) games was dropped. Furthermore, I have not worked on this app for nearly ten years now.

A later iteration of this tool is now archived on my GitHub (reboot.exe):
BioHazard File Archive Tool (Archive) @ GitHub

Sadly, this particular version of BioFAT was made while I was teaching myself C/C++ and it wasn't very stable. Fortunately, I still have the source code for this app and all variations, so if you need support, don't hesitate to reach out to me on Twitter or shoot me a PM here (I will get an email notification) and I will try to work something out :)

ORIGINAL:

Hello,

I have been developing an application that extracts, repacks and modifies data for many different games. It started out as a utility for Bio Hazard | Resident Evil games, but I have since expanded it to support others, as well.

Currently supported:

3Xtreme [PSone]
(*.ANM;*.CMP;*.GUY;*.IMG;*.INF) - Archive File Extraction

Area 51 [PSone]
(*.ELF) - Archive File Extraction

Bio Hazard Zero | Resident Evil Zero [GameCube/Wii]
(*.ARC) - Archive File Extraction, Archive File Creation (de/compression is not yet supported)
(*.EFS) - Archive File Extraction
(*.MHP) - Archive File Extraction and automatic encoding of each *.THP to *.JPG
(*.THP) - Encoding to *.JPG (Trial Edition is not yet supported)
(*.TPP) - Archive File Extraction, Archive File Creation

Bio Hazard Rebirth | Resident Evil Remake [GameCube/Wii]
(*.DAT) - Archive File Extraction
(*.EMD) - Archive File Extraction
(*.EMG) - Archive File Extraction
(*.SND) - Archive File Extraction; allows for use of BGM+SFX in BH/RE Zero video game

Bio Hazard | Resident Evil [PSone/Saturn/PC]
(*.EMD) - Archive File Extraction, Archive File Creation
(*.EMW) - Archive File Extraction, Archive File Creation
(*.IVM) - Archive File Extraction, Archive File Creation
(*.PAK) - Image Compression, Image Decompression, Image Viewer (Credit for de/compression code: Patrice Mandin)
(*.RDT) - Archive File Extraction (work in progress)

Bio Hazard 2 | Resident Evil 2 [PSone/DreamCast/GameCube/PC]
(*.ADT) - Data Compression, Data Decompression, Image Viewer (Credit for de/compression code: Patrice Mandin, Mark Grass, gamezelda)
(*.BIN) - Archive File Extraction, Archive File Creation
(*.BSS) - Archive File Extraction, Archive File Creation
(*.EMD) - Archive File Extraction, Archive File Creation
(*.EMS) - Archive File Extraction, Archive File Creation (limited version support)
(*.MD1) - Decoding to Sony PSone format [*.TMD;*.RSD], Encoding to CAPCOM format [*.MD1]
(*.MSG) - Decoding to *.TXT, Encoding to *.MSG
(*.PLD) - Archive File Extraction, Archive File Creation
(*.PLW) - Archive File Extraction, Archive File Creation
(*.RDT) - Archive File Extraction, Archive File Creation
(*.BIOHAZARD2;*.RESIDENT2) Save Game File Assembly, Save Game File Disassembly
(*.SCD) - Game Script Disassembly (includes definitions of deciphered opcodes)

Bio Hazard 3: Last Escape | Resident Evil 3: Nemesis [PSone/DreamCast/GameCube/PC]
(*.ARD) - Archive File Extraction
(*.BSS) - Archive File Extraction, Archive File Creation
(*.EMD) - Archive File Extraction, Archive File Creation
(*.MD2) - Decoding to Sony PSone format [*.TMD;*.RSD]
(*.MSG) - Decoding to *.TXT, Encoding to *.MSG
(*.PLD) - Archive File Extraction, Archive File Creation
(*.PLW) - Archive File Extraction, Archive File Creation
(*.RBJ) - Archive File Extraction, Archive File Creation
(*.RDT) - Archive File Extraction (work in progress)

Bio Hazard 4 | Resident Evil 4 [GameCube/Wii/PS2/PC]
(*.DAS) - Archive File Extraction, Archive File Creation
(*.DAT) - Archive File Extraction, Archive File Creation
(*.DRS) - Archive File Extraction, Archive File Creation (Stage files | de/compression is not yet supported)
(*.EVD) - Archive File Extraction

Bio Hazard Gun Survivor 4: Heroes Never Die | Resident Evil Dead Aim [PS2]
(*.FPK) - Archive File Extraction

Brave Fencer Musashi [PSone]
(*.CD) - Archive File Extraction

C - The Contra Adventure [PSone]
(*.SGG) - Archive File Extraction

Celebrity Deathmatch [PSone]
(*.BOO) - Archive File Extraction

Dave Mirra Freestyle BMX [PSone]
(*.ZAL) - Archive File Extraction

Dino Crisis [PSone]
(*.DAT) - Archive File Extraction

Driver [PSone]
(*.BLK) - Archive File Extraction
(*.LEV) - Archive File Extraction

Fatal Fury: Wild Ambition [PSone]
(GAME.DAT) - Archive File Extraction

Fear Effect [PSone]
(*.WAD) - Archive File Extraction

Fear Effect 2: Retro Helix [PSone]
(*.WAD) - Archive File Extraction

Lunar Silver Star Story Complete [PSone]
(*.FIL) - Archive File Extraction
(*.SND) - Archive File Extraction

Mat Hoffman's Pro BMX [PSone]
(*.WAD) - Archive File Extraction

Rockman 8: Metal Heroes | Mega Man 8 [PSone]
(*.PAC) - Archive File Extraction

Rockman Complete Works | Mega Man Anniversary Collection [PSone/PS2/GameCube]
(*.PAC) - Archive File Extraction (work in progress)

Rockman DASH | Mega Man Legends [PSone]
(*.BIN) - Archive File Extraction (work in progress)

Rockman X4 | Mega Man X4 [PSone]
(*.ARC) - Archive File Extraction

Rockman X5 | Mega Man X5 [PSone]
(*.DAT) - Archive File Extraction

Rockman X6 | Mega Man X6 [PSone]
(*.DAT) - Archive File Extraction

MDK [PSone]
(*.WAD) - Archive File Extraction

Metal Gear Solid [PSone]
(*.DIR) - Archive File Extraction

Overblood [PSone]
(*.ROM) - Archive File Extraction

Saga Frontier [PSone]
(*.ARC) - Archive File Extraction

Street Fighter EX plus Alpha [PSone]
(*.PAC) - Archive File Extraction

Street Fighter EX2 plus [PSone]
(*.PAC) - Archive File Extraction

Super Puzzle Fighter II Turbo [PSone]
(*.EMI) - Archive File Extraction

Syphon Filter [PSone]
(*.FOG) - Archive File Extraction
(*.HOG) - Archive File Extraction

Time Crisis [PSone]
(*.FHM;*.FHT) - Archive File Extraction

Tony Hawk's Pro Skater [PSone]
(*.WAD) - Archive File Extraction

Tony Hawk's Pro Skater 2 [PSone]
(*.WAD) - Archive File Extraction

Tony Hawk's Pro Skater 3 [PSone]
(*.WAD) - Archive File Extraction

Tony Hawk's Pro Skater 4 [PSone]
(*.WAD) - Archive File Extraction

CRI Middleware
(*.AFS) - Archive File Extraction

Sony PSone
TIM Splitter - Extracts multiple *.TIM files from a single *.TIM - the *.TIM must have multiple CLUTs
TIM Viewer
TIM Converter - Convert a *.TIM to *.BMP (4bpp is not supported)
TMD-to-RSD Conversion - Convert a *.TMD file to Sony Psone ASCII 3D model development format (*.RSD)

Nintendo GameCube/Wii
(*.BTI) - Decode texture to *.DDS format (Credit for code: thakis)
(*.RARC) - Archive File Extraction (Credit for code: thakis)
(*.THP) - Video and Audio player (using thakis' thpplay 1.5)
(*.TPL) - Decode to *.TGA w/MTL (Using dev/ghostline's 'txdumper' and/or Gcube's 'tplx')
(*.YAY0) - Archive File Extraction and Decompression (Credit for decompression code: thakis)
(*.YAZ0) - Archive File Extraction Compression and Decompression (Credit for de/compression code: thakis, shevious/daegunlee)

Patrice Mandin's Reevengi Tools
adt2img
extract_bin
file2pak
pak2tim
pix2bmp
ptc2bmp
rgb2bmp
rofs (Extract *.DAT archive files from BH/RE 3 for PC)
sld (Decompress *.TIM texture archive from BH/RE 3 for PC)

Segher Boessenkool's Wii Tools
tpl2ppm


You can find more information and downloads at my site, here:

BioHazard File Archive Tool (Archive) @ GitHub
Last edited by MeganGrass on Wed Mar 23, 2022 4:07 am, edited 2 times in total.
Jodan
n00b
Posts: 17
Joined: Fri Jul 02, 2010 4:12 am
Has thanked: 3 times
Been thanked: 3 times

Re: BioHazard File Archive Tool

Post by Jodan »

Hello Markgrass, I appreciate this tool and the time you put into it.

My question is will it (or does it) also work with vista?

I installed the necessary dll files but I get a error that prevents the program from running (I get Biofat.exe error "The application failed to initialize properly (0xc0000142). Click ok to terminate the application.") and without the use of DDRAW.dll (from the common folder), the program runs but, with some errors (4 repeated errors "An unknown error occured during Device Discovery")... yet though it appears to work, it crashes when try to extract data from a bh4/re4 drs file with it.

It seems that the Microsoft Visual C++ 2010 Redistributable Package (x86) and Sp1 work without a issue (on the MS site, it does mention compatibility with Vista SP2... so it seems to be a issue with the above mentioned DDRAW.dll; any help is appreciated in this matter.

Jodan
revelation
mega-veteran
mega-veteran
Posts: 183
Joined: Mon May 12, 2008 5:15 pm
Has thanked: 5 times
Been thanked: 85 times

Re: BioHazard File Archive Tool

Post by revelation »

Mark, i tried contacting you over at the-horror, as well as on skype/im, as i have the same problem as well. Considering the fact that i actually code with Visual Studio 2005 - 2010, and as such have both the end-user and debug runtimes installed, it makes me wonder what the incompatibility could be.

Would be glad to help with further testing to determine the problem.
MeganGrass
ultra-n00b
Posts: 6
Joined: Wed Apr 20, 2011 7:47 pm
Been thanked: 8 times

Re: BioHazard File Archive Tool

Post by MeganGrass »

Hello Markgrass, I appreciate this tool and the time you put into it.
Thank You. :)
My question is will it (or does it) also work with vista?

I installed the necessary dll files but I get a error that prevents the program from running (I get Biofat.exe error "The application failed to initialize properly (0xc0000142). Click ok to terminate the application.") and without the use of DDRAW.dll (from the common folder), the program runs but, with some errors (4 repeated errors "An unknown error occured during Device Discovery")... yet though it appears to work, it crashes when try to extract data from a bh4/re4 drs file with it.

It seems that the Microsoft Visual C++ 2010 Redistributable Package (x86) and Sp1 work without a issue (on the MS site, it does mention compatibility with Vista SP2... so it seems to be a issue with the above mentioned DDRAW.dll; any help is appreciated in this matter.

Jodan
I had previously ran into a compatibility issue with Vista and 7 (I develop and compile on XP), but those problems have since been fixed, as I have added DX10(Vista) and DX11 (Win7) support.

See below for a status update.
Mark, i tried contacting you over at the-horror, as well as on skype/im, as i have the same problem as well. Considering the fact that i actually code with Visual Studio 2005 - 2010, and as such have both the end-user and debug runtimes installed, it makes me wonder what the incompatibility could be.

Would be glad to help with further testing to determine the problem.
Hmm... i'm sorry, my password for THIA, credit card, etc info was recently stolen; I haven't received your contact attempt.

To the point, here's a small status update which address the issues:

I have smashed the "A referral was returned from the server." bug that was caused by using an improper manifest.

The "The application failed to initialize properly (0xc0000142). Click ok to terminate the application." bug was smashed.

I added multi-OS support, eliminating the need for separate builds. XP, Vista, 7 and Windows Server versions are supported.

Multi-OS support means no more "Use in Compatibility Mode" issues that have plagued Vista and 7 users.

With the addition of multi-OS support comes multi-version Direct X support, including versions 9 (WinXP), 10 (Vista) and 11 (Win7). Be sure to have the latest Redistributable Pack installed.

The "An unknown error occurred during device discovery" and "An unknown error occurred during DirectX Creation" errors have been fixed for Vista and 7.

A lot of commandline features have been added; there's no need for the GUI, unless desired.



I should have a new build online, soon.
Jodan
n00b
Posts: 17
Joined: Fri Jul 02, 2010 4:12 am
Has thanked: 3 times
Been thanked: 3 times

Re: BioHazard File Archive Tool

Post by Jodan »

This is excellent news, very cool; I await the update then...

When I get the new version, I will run it through a number of the program options and let you know how it works out.

thanks again
User avatar
DCxDemo
advanced
Posts: 43
Joined: Sat May 14, 2011 10:02 am
Been thanked: 25 times
Contact:

Re: BioHazard File Archive Tool

Post by DCxDemo »

It is extremely useful tool! :)
Recently I was looking for tools that can read thps1-3 ps1 .wad files, found only dead links, wadsplit for thps1 and your tool.
Well, I have some problems. I use WinXP sp3, .NET Framework 3.5 and C++ Redistributable 2008 are both installed, DLLs are in BIOFAT folder, but, as mentioned above, it says "An unknown error occured during Window Discovery". Whatever, menu works.
So I choose "expand wad" for thps3 and it returns only CDxxx.BIN files. Is it possible to see original filenames instead of bin files and is it in your plans to add "repack wad" for thps1-4?
3pacalypse
beginner
Posts: 38
Joined: Thu Jul 08, 2010 3:17 am
Location: Bulgaria
Has thanked: 1 time
Contact:

Re: BioHazard File Archive Tool

Post by 3pacalypse »

The link seems to be dead... :(
A Member of the Bulgarian Game Localization Teams: http://playonbg.info/ & http://adventurersbg.info/
MeganGrass
ultra-n00b
Posts: 6
Joined: Wed Apr 20, 2011 7:47 pm
Been thanked: 8 times

Re: BioHazard File Archive Tool

Post by MeganGrass »

The [latest] source code is now available.

BioHazard File Archive Tool (@SourceForge.net)

Browse SVN

Checkout
So I choose "expand wad" for thps3 and it returns only CDxxx.BIN files. Is it possible to see original filenames instead of bin files and is it in your plans to add "repack wad" for thps1-4?
IIRC, only a few THPS games actually contained an original filename list... sorry; there's no way of knowing what they are supposed to be named. And, yes, I plan to add repacking functions for all file types.
LUBDAR
veteran
Posts: 95
Joined: Wed Jun 08, 2011 7:14 am
Has thanked: 18 times
Been thanked: 9 times

Re: BioHazard File Archive Tool

Post by LUBDAR »

this is great!! I've been waiting for old biohazard stuff to come around
MiLOxentax
ultra-n00b
Posts: 7
Joined: Fri Nov 26, 2010 3:39 am

Re: BioHazard File Archive Tool

Post by MiLOxentax »

This looks like an amazing application for all biohazard fans. Thank you MarkGrass, your efforts are much appreciated.

Unfortunately I am also having issues running it under Vista. The DLLs are in the same folder with BIOFAT.exe but once I try to launch the app - it gives an error ""A referral was returned from the server."
So far I haven't found a solution to this, but will see and maybe future release will be more compatible.

Once again, great job and good luck!
viperzerofsx
veteran
Posts: 95
Joined: Thu May 27, 2010 5:07 am
Has thanked: 8 times
Been thanked: 6 times

Re: BioHazard File Archive Tool

Post by viperzerofsx »

this tool works amazingly well i got it working for some unsupported games. however I can only run the program on my old 32-bit vista pc which had very low specs is their a way to run it on my newer faster 64-bit 7 pc?
MeganGrass
ultra-n00b
Posts: 6
Joined: Wed Apr 20, 2011 7:47 pm
Been thanked: 8 times

Re: BioHazard File Archive Tool

Post by MeganGrass »

SVN 2 is finally online...

source
exe

Support for non-XP OS has been added.
viperzerofsx
veteran
Posts: 95
Joined: Thu May 27, 2010 5:07 am
Has thanked: 8 times
Been thanked: 6 times

Re: BioHazard File Archive Tool

Post by viperzerofsx »

thats great i'd love to try when my regular pc is up and running
person123456
ultra-n00b
Posts: 4
Joined: Sun Jul 03, 2011 4:21 am

Re: BioHazard File Archive Tool

Post by person123456 »

hey mark grass how do u make this work? If i just run the exe it the process starts then shuts down immediately with no errors and the commandline functions are limited (I'm trying to extract RE:Remake .snd sound files). Anyone have this problem? attempting to drag and drop .snd files on top of the exe also does nothing. Sorry for being noob if its smtn obvious...
viperzerofsx
veteran
Posts: 95
Joined: Thu May 27, 2010 5:07 am
Has thanked: 8 times
Been thanked: 6 times

Re: BioHazard File Archive Tool

Post by viperzerofsx »

I keep getting "this application was unable to start correctly 0xc00007b" you know how I could fix this?
Post Reply