Downloading FAH Core files manually

Depending on the WU the FAH client will download a suitable fahcore file (.fah or .bz) from the Stanford FAH servers. You can also download these files by hand, but these are not usable as is. Under linux you have to download the .bz file and extract it. Windows and MacOSX users have to download the .fah wrapped file and convert it before extraction.

Note 1: Not every FAH core has .bz file available. Note 2: The most common reason for downloading FahCores manually is a repeated failure of the automatic download. In many cases, the repeated failures are the result of a corrupt copy in your browser cache. Before attempting this procedure, manually empty your browser cache and allow the client to try again.

For interested parties, the .fah file structure is simple enough to easily make a wrapper from a .fah file to a .bz file - just seek to position 0x200 in the .fah file and dump the rest into a file with a .exe.bz extension. This technique is used in the instructions below.

Core download locations:
 * http://www.stanford.edu/~pande/Win32/x86/
 * http://www.stanford.edu/~pande/Linux/x86/
 * http://www.stanford.edu/~pande/OSX/x86/
 * http://www.stanford.edu/~pande/OSX/x86_Tiger/
 * http://www.stanford.edu/~pande/OSX/PowerPC/

NOTE: Windows Vista users who installed a F@h client in the C:\Program Files\ may experience a fahcore download error due to the higher default security settings in that OS. This problem is easily corrected by setting the fah executable to Run As Administrator.

Instructions for manually downloading and extracting FahCore files

Note: If both .bz and .fah files exist, download whichever is the most recent based on the timestamp. Note: If you have the "tail" utility, as is common on Linux and MacOSX installations, you may simply type - a hex editor is not required in that case. Windows by default does not include such a utility.
 * 1) Tools required
 * 2) * To extract the core files you will need an archive program capable of extracting .bz files (the files are actually bz2 with a .bz file extension). Linux and Mac OS X users will most likely have bunzip2 (bzip2) already included in their distro, Windows users can use WinRar to extract the .bz files.
 * 3) * If you need to convert a .fah file to a .bz you will also need a hex editor. A text editor will NOT work!. Windows users can use XVI32, Linux users can use KHexEdit, Mac OS X users can use Synalyze It! or HexEditor. Note that a hex editor is not required if you have the "tail" utility available (most Linux and OSX systems are equipped with this), see below.
 * 4) Dealing with the .fah file (only required if no .bz file exists)
 * 5) * Navigate to to the core location for your OS (above) and download the relevant .fah file. See here if you are unsure which core you need.
 * 6) * Open up the .fah file you just downloaded in your hex editor. Navigate to position 0x200 [hex], or 512 [decimal] (all hex editors will be able show the position in both hex and decimal) and delete everything before it. In hex, the value at 0x200 (512) is 42, in decimal the value is B.
 * 1) * After deletion the first value in the file should then be 42 (B)
 * 2) * Now you should save the file to Core_xx.exe.bz where xx is the core number.
 * 3) * Do not open it yet, follow the steps below.
 * 4) Dealing with the .exe.bz file. (Applies to both downloaded and unwrapped-from-.fah versions)
 * 5) * Open up the .exe.bz file in your archive program and simply extract the .exe within to your F@H folder.
 * 6) * Rename the Core_xx.exe file to FahCore_xx.exe

Note: It seems that some earlier versions of Winrar do not handle .bz files as expected with regard to the naming convention of any files contained within. If this happens, extract the file, which will probably be named Core_xx (with no extension) and manually rename it to FahCore_xx.exe (xx still refers to the core number).

Extracting the latest FahCore_a0: The procedure documented above will not work for the latest FahCore_a0, because it now delivers two files, not one. Here is the procedure how to extract it: Third Party Tools You can also use FoldingForum: CoreDownloader, which basically automates the process described in this wiki page.  'Shell script for Unix/Linux/Unix-like operating systems' Substitute the CORE_DOWNLOAD_PATH variable's value with any of the above listed Core download locations. Shell script requires a cli download program such as either curl or wget and the tail, bunzip, sed, cut commands. Tested on Linux and should potentially work under Mac OS X, BSD and Cygwin provided the required commands are installed. Will not work correctly download and extract FahCore_a0 as mentioned above, this feature maybe added later. Reference Links
 * 1. Download Core_a0.fah and edit by the above method, with 1 exception - save it as Core_a0.bz, not Core_xx.exe.bz
 * 2. Extract the Core_a0.bz and open the extracted file (must be Core_a0) with HEX editor.
 * 3. Go to position 48 and delete everything before that.
 * 4. Go to position 194800 and delete everything after that.
 * 5. Save the file as FahCore_a0.exe.
 * 6. Open again Core_a0.
 * 7. Go to position 194890 and delete everything before that.
 * 8. Save the file as libfftw3f-3.dll.
 * Cores