Tutorial *114*
To compile the quake source code for Win95+ you should have Microsoft Visual C++ v6.0. v5.0 might work too but I can't garuntee it. You will also need masm. I dont know about anybody else but I didn't have it, so I had to download it from the ms site. If there is no ml.exe in the bin directory, of your VC install, then download the file at http://www.microsoft.com/ddk/download/98/BINS_DDK.EXE. Run it and it will extract bins_ddk.cab. Use Winzip to open this file and extract the file "bin_win98_ml.exe" from it. You shouldn't need any other files from it. Rename the file to ml.exe and put it in the bin directory of your VC install.

Extract everything in q1source.zip to a directory, I recommend a "src" directory underneath your quake directory.

Start VC++
Go to File->Open Workspace...
Go to where you unzipped q1source.zip
To build Winquake and/or GlQuake:
Go to the WinQuake directory and choose the file "WinQuake.dsw"
Go to Build->Set Active Configuration....
Choose "gas2masm - Win32 Debug" and click OK
Press F7 to build gas2masm.
Go to Build->Set Active Configuration...
If you want to build WinQuake, choose "winquake - Win32 Release", if you want to build GlQuake, chose "winquake - Win32 GL Release". Click OK. F7 to compile -- it will take a while to build all the files.

To build one of the QW exes, qwcl, glqwcl or qwsv:

Go to the Qw directory and choose the file "qw.dsw"
Choose "gas2masm - Win32 Debug" and click OK
Press F7 to build gas2masm.
Go to Build->Set Active Configuration...
To build qwcl.exe, choose "qwcl - Win32 Release"
To build glqwcl.exe, choose "qwcl - Win32 GLRelease"
To build qwsv.exe, choose "qwsv - Win32 Release"
After clicking OK, press F7 to compile.

You may want to go to Project->Settings and change where the output exe's are placed, or you'll most likely get an error about not being able to load gfx.wad when you run your new exes.

Happy coding



 
Not logged in
Sign up
Login:
Passwd: