Skip to main content
GameDev.net gamedev.net
🔒 Locked

Quake 2 source code

Started by pimstead May 7, 2002 at 8:21 PM 18 replies 5.1k views
Original Post
pimstead
pimstead
I downloaded the Quake 2 source code from the website. It is supposed to be the full version and able to compile. I compile the whole thing fine except for rel_soft.dll. I think it is choking on the .asm files. What do I need to do to get this up and running? Thanks
pimstead
pimstead
Hello!

You answered the other guys stupid question on where to get the Quake source, but not mine on how to get it to compile?

Please help... What is ml is it an assembler? Where do I get it?

What do I need to do to get the program to compile?
bishop_pass
bishop_pass
quote:
Original post by fup
wrong attitute

What do you care? Are you the attitude police?

_______________________________
"To understand the horse you'll find that you're going to be working on yourself. The horse will give you the answers and he will question you to see if you are sure or not."
- Ray Hunt, in
Jason Zelos
Jason Zelos
Masm or Tasm, microsoft or borland asm compilers, if your using MSVC then it comes with a assembler built in. I don''t if its fully featured though.

,Jay
pimstead
pimstead
I have Visual Studio 6 Ent. The source code comes with the .dsw file and a makefile. I run the batch build for the whole project and the rel_soft.dll is what fails when it tries to compile.

I''m hoping here that someone else has also downloaded this source code and has attempted to compile on the same platform and therefore knows what the problem is.

Thanks...
pimstead
pimstead
Here is what I get from the compile, including the error...
Please help, thanks.

--------------------Configuration: ctf - Win32 Release--------------------

gamex86.dll - 0 error(s), 0 warning(s)
--------------------Configuration: ctf - Win32 Debug--------------------

gamex86.dll - 0 error(s), 0 warning(s)
--------------------Configuration: game - Win32 Release--------------------

gamex86.dll - 0 error(s), 0 warning(s)
--------------------Configuration: game - Win32 Debug--------------------

gamex86.dll - 0 error(s), 0 warning(s)
--------------------Configuration: quake2 - Win32 Release--------------------

quake2.exe - 0 error(s), 0 warning(s)
--------------------Configuration: quake2 - Win32 Debug--------------------

quake2.exe - 0 error(s), 0 warning(s)
--------------------Configuration: ref_soft - Win32 Release--------------------
Performing Custom Build Step on .\r_varsa.asm
''ml'' is not recognized as an internal or external command,
operable program or batch file.
Error executing c:\winnt\system32\cmd.exe.

ref_soft.dll - 1 error(s), 0 warning(s)
--------------------Configuration: ref_soft - Win32 Debug--------------------
Performing Custom Build Step on .\r_varsa.asm
''ml'' is not recognized as an internal or external command,
operable program or batch file.
Error executing c:\winnt\system32\cmd.exe.

ref_soft.dll - 1 error(s), 0 warning(s)

CheeseGrater
CheeseGrater
Yup, you need to install a copy of MASM (The microsoft assembler.)

See intructions here: http://www.planetquake.com/qer/tutorials/tutorial0.html
pimstead
pimstead
Okay, now all of the code compiles. I just can''t get the darn think to run. It errors out and says "cannot find colormap.pcx".

Is there a site where there is more information on the code and how to use it? I know about quakeplanet/qer but that seems specific to the engine. Isn''t the code I downloaded supposed to be the full version that can be compiled and then you are able to play the game?
CheeseGrater
CheeseGrater
quote:
Original post by pimstead
Okay, now all of the code compiles. I just can''t get the darn think to run. It errors out and says "cannot find colormap.pcx".

Is there a site where there is more information on the code and how to use it? I know about quakeplanet/qer but that seems specific to the engine. Isn''t the code I downloaded supposed to be the full version that can be compiled and then you are able to play the game?


Nope. It''s just the code for the exectuable. All the levels, art assets, etc, etc are _not_ included, and _not_ available for free. You have to hike over to Ye Olde Game Shoppe and purchase a copy of Quake 2.
pimstead
pimstead
That''s fine if I don''t get all the assets. I just want to be able to learn from the code and test what I have done. Where should I start and what should I look at if I want to understand how they wrote Quake 2?

And also, what can I do with this code? What do I need to provide to get something up and running?
pimstead
pimstead
Hello!!! C''mon bro. This is about game programming. I own the darn game. I don''t want to play it. I want to learn how it was programmed and write my own code and have my own assets and have it run. I need some insight on where to begin and what to do next though...
declspec
declspec
ok quake2 has to be compilied from a specific directory right? good. install the game to that directory. you have to for a good clean test cycle.

if you dont you have to move the compilied stuff to the games directory. or are you doing that already? tough to tell from the context.

siaspete
siaspete
If you''re just learning how to program, then trying to find your way through the Q2 source probably isn''t the best approach.

You may be better off looking at the tutorials here on GameDev, and those on flipCode, to help get a basic grounding in 3D math and graphics.


Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions
Deebo
Deebo
Rename your new excutable and dll''s, put them in the Quake2 folder, then run it. Try adding Direct3D 8 support, bumpmapping, mirrors, 32 bit textures, new BSP approaches, modify the network code, make it faster! There are literally an unlimited mount of things you can do and learn. Stop asking questions and jump in the code. It will be hard at first but you will learn that way.
declspec
declspec
tons of folks myself included have gotten their first look at industry code through the server dll. thats prolly a good place to start.

quake code is divided in half. the half that is released first is the server dll. this has the game objects/game engine. the second half that has typically been released after quake is depreciated. is the actually graphics engine.

the first one is a beautiful place to go after you have finished your first C class. Bill Gates said once there is two ways to learn to code:
write your own code
read professional code


skipping the second is the reason the first year you hit industry you are being trained. reading these tuts is secondary to getting your hands in actual industry code.





Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.