|
HOW TO COMPILE A WORKING HL2
Ok. I've seen that many of you desperatly want to compile your own HL2. Now you
can. Follow these instructions and you'll be on your way to having your very
own hl2.exe and other files.
Keep in mind that compiling takes A LONG TIME, so you should do this before
going to sleep at night.
Ok, here we go:
--> Note: You should already have Visual Studio 6 either on CD or on the comp.
---------------------------
Downloading the Right Stuff
---------------------------
1. Download the sources from somewhere. Theyre all over the internet.
2. Download mss32.dll, and hl2_tree.zip from somewhere as well. You'll notice
that these files are a lot more popular.
These files are all hosted by people in channels like #halflife2 on efnet and
quakenet. They are easy to find.
3. Download Visual Studio 6 Service Pack 5 from:
http://msdn.microsoft.com/vstudio/downloads/updates/sp/vs6/sp5/sp5_en.aspx
4. Download the Processor Pack from:
http://msdn.microsoft.com/vstudio/downloads/tools/ppack/download.aspx
----------
Installing
----------
1. Unzip your Half-Life 2 source code to a folder in your C root. (ex. C:\HL2)
2. Unzip hl2_tree.zip to your desktop for now. (It'll be moved later)
3. Install Visual Studio 6 if you haven't already.
4. Install Visual Studio 5 Service Pack 5. Select no when asked to reboot.
5. Install the Processor Pack.
6. Manually reboot.
---------
Compiling
---------
1. Press the start button and select "Run...".
2. Type "cmd" on Windows NT/2000/XP/2K3 or "command" on Windows 95/98/98SE/ME.
3. Type "cd <path to your extracted HL2 sources>" for example "cd c:\HL2".
4. Type "cd src_main" to go into the main sources directory.
5. Now, type "build_hl2.bat".
This will take A REALLY LONG TIME... Best is to leave it running over night.
If you did it right, you should now have a bunch of new files and folders in
your main HL2 Directory. (Instead of just "src_main")
----------------
Preparing to Run
----------------
1. Move the mss32.dll to <Main HL2 Dir>/bin (ex. C:\HL2\bin)
2. Move all of the extracted folders from hl2_tree.zip into <Main HL2 Dir>/hl2
(ex. C:\HL2\hl2)
--------
Starting
--------
1. Now comes the fun part. Double click on the "hl2.exe" in the main
Half-Life 2 dir.
If you did everything correctly, you shouldn't crash... If you did crash
though, make sure that you did the " reparing to Run" step.. or try again 
You should now be at a screen with a brick wall. How exciting...
2. Press the ~ key on your keyboard (on the left of the number "1" key)
3. Now type "map test"
Note: You will not be able to see what you type!! This is a known bug since
lots of the HL2 files are missing. There ARE fixes available for this! Look
around, you'll find em.
If you did it right, you should now be ingame. Move around with the mouse. You
cannot use your keyboard to move around because of more bugs. There are fixes
for this too. Look around!
4. Once you're bored of the brand new and revolutionary Source engine ......
press the "~" key again, and type "quit"
The game will quit and now you can go make maps and start dling more hacks
which let you play multiplayer, etc.
HAVE FUN! [em21] |
|