Quake Style - Quake 3 Tutorials
Introductory Tutorials - MSVC++ Compiling
How to compile Q3:A with MS Visual C++
|
Thought the rest of you gents would like to know how to get the Q3A source compiled.
From what I've gathered from the included text you MUST have MSVC++ to compile and use the Q3 source.
After installing to "C:\Quake3\" or any other drive, as long as it's in "\Quake3\", open up the workspace with MSVC, then pick the game project from the "set active project" list on the project menu. Do a full build. Now you can use the compiled debug dll with the debugger to run Quake3 with your modifications.
But in order to distribute the mod you'll need to compile the qvm files for each of the 3 sources. In order to do this, you'll need to edit your "autoexec.bat" (found in your root directory of your HDD for win95/98 users) and make sure the "Quake3\bin_nt\" directory is available in the path. As an example, here's mine:
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\QUAKE3\BIN_NT;
DO NOT USE MY PATH LINE IN YOUR AUTOEXEC.BAT FILE. Simply add the last part, "C:\QUAKE3\BIN_NT;" and make sure the drive is the correct letter.
Next you'll also need to make a call to vcvars32.bat (comes with MSVC++) from the autoexec.bat file. Put something like this further down, near the end of your autoexec.bat:
call C:PROGRA~1\MICROS~3\VC98\BIN\vcvars32
Again, DO NOT USE MY CALL FOR VCVARS32! Your's may be similar, but make sure it is pointing to the correct place, and if the folder names are longer than 8 characters, you'll need to use the dos names instead (with the ~1, ~2, etc.).
Now restart your computer. If you hit escape while the windows splash screen is up and watch, you should see something about "Setting up enviornment for Microsoft Visual C++ Tools", or an equivalent statement.
Once you've completely restarted, go to the "Quake3\source\game" directory and run the game.bat file. It should go through each of the source files from the game project and compile them. Once it's done, the qvm file will be in your "baseq3\vm" directory. It should be named "qagame.qvm" if you compiled the game source code.
Simply create a new directory in your Quake III Arena folder as you would have done in Quake 2 for a new mod, and put the qvm file from the "baseq3\vm" folder into the "yourmod\vm" folder. Now you can run your mod with:
quake3 +set fs_game yourmod.
I hope this gets everyone up and running, and I feel sorry for those of you without MSVC++.
-- Credits:
Tutorial by Willi
Return to QS Tutorials
-- Important:
If you do use something from QuakeStyle in your mod, please give us credit.
Our code is copyrighted, but we give permission to everyone to use it in any way they see fit, as long as we are recognized.