Building the Half-Life SDK 2.0 files:


Right now you can ONLY build the MP.DLL file.  You CAN'T build the CLIENT.DLL
file because of the VGUI library built using Microsoft Visual C++.  The VGUI
library is NOT compatible with the MingW32 compiler/linker.  You will ONLY
be able to use the HUD display that comes with Half-Life (i.e. you can't add
weapons or change the HUD format or colors).


Download the Half-Life SDK 2.0 zip file (from an Internet site that has it,
www.fileplanet.com is one such site) and unzip it into the directory of
your choice.  Make sure that you preserve the directory structure when
unzipping the SDK (WinZip uses "use folder names" in the Extract dialog to
indicate that you want to preserve the directory structure).  If you don't
do this all of the files will wind up in one directory and you will not be
able to build things properly.


After unzipping the SDK 2.0 zip file, you will have a directory called
"SourceCode".

The following files need to be copied (or moved) into this SourceCode
directory: attr_r.bat, Changes.txt, and ReadMe.txt.

The other files, GiveFnpt.dat and makefile, need to be copied (or moved)
into the "dlls" directory under the "SourceCode" directory.


Now you must follow the changes specified in "Changes.txt" to modify the
SDK 2.0 source code so that it will build with MingW32.  There are only
4 files that need to be changed.  The first, MATHLIB.H is found in the
SourceCode\common directory.  The other 3 are found in the SourceCode\dlls
directory.  FOLLOW THE CHANGES EXACTLY!!!  Remember C++ IS CASE SENSITIVE!
That means you MUST match the UPPER/lower case in the changes EXACTLY as
shown in the Changes.txt file.  If the change says use "this" DON'T use
"This" or "THIS" or "THis", they WON'T work!!!

I give you the line numbers in the original source code files where the
changes begin.  If you are using Notepad or some other editor that doesn't
show line numbers, then this won't be much help to you.  You may have to
search for the original text, then change it to whatever the Changes.txt
file says it needs to be replaced with.  Make SURE you are replacing the
correct text in the source code files.

I STRONGLY recommend making backup copies of the files you are getting
ready to change so that you can go back to the original version and start
over, if you have too many problems.

Once you have made all the changes, you are ready to build the MP.DLL file.


Before trying to build the DLL, you will need to run the MingW32.bat file
(found in whatever directory you unzipped MingW32 to).  If you haven't
already downloaded and run the MingW32.exe self extracting zip file, you
will need to do that now.  Once you have run the MingW32.bat file, you can
change to the SourceCode\dlls directory and enter "make" to build the
MP.DLL file.

When the MP.DLL file is built, you can copy it to your MODs dlls folder and
start running your MOD by activating it in the Half-Life "Custom game"
menu screen.


Here's the files that come with this zip file:

attr_r.bat - MS-DOS batch file to remove read-only attributes on SDK files.

Changes.txt - Text file describing the changes you need to make to SDK files.

GiveFnpt.dat - File needed by linker when building the MP.DLL file.

makefile - Makefile required by MingW32 to build the SDK files.

ReadMe.txt - This text file.


