Quake 2 Compile Errors

This is a discussion on Quake 2 Compile Errors within the Game Programming forums, part of the General Programming Boards category; I downloaded the Quake II source, figured I'd run a test compile. I got hundreds of warnings, and about 10 ...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    6

    Quake 2 Compile Errors

    I downloaded the Quake II source, figured I'd run a test compile. I got hundreds of warnings, and about 10 errors. MS Visual C++ 6.0. Anybody else have this problem? Another thing is documentation. There's so many files, I don't know what does what. Is there any documentation (official or non-official) on how to develop games with it?

  2. #2
    Ecologist
    Join Date
    Aug 2001
    Location
    Utah.
    Posts
    1,291
    Um, do you have all the data-files?
    Staying away from General.

  3. #3
    Registered User
    Join Date
    Jan 2002
    Posts
    6
    I assume so, but maybe not. Where can I find the full source? The id technology downloads site is all dead links...

  4. #4
    Hamster without a wheel iain's Avatar
    Join Date
    Aug 2001
    Posts
    1,385
    i think youll find the source is available but yu are missing some important data files that actually are a main part of the application. I dont think there is a 100% source code release unless you poke around some of the dodgy warez sites that would normally be in your 'restricted' zone
    Monday - what a way to spend a seventh of your life

  5. #5
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    A lack of resources won't prevent the source code from compiling. What errors are you getting?

  6. #6
    Registered User
    Join Date
    Jan 2002
    Posts
    6
    I open quake2.dsw and there are 5 projects. I batch build and get the following warnings and an error:

    The following warning appears over 400 times with things like 'dist', 'inflictor', 'attacker', 'kick', 'plane', etc:
    C:\Downloads\Quake 2 Source\quake2-3.21\ctf\g_ai.c(771) : warning C4100: 'dist' : unreferenced formal parameter

    Tons of these:
    C:\Downloads\Quake 2 Source\quake2-3.21\ctf\g_combat.c(249) : warning C4701: local variable 'index' may be used without having been initialized

    Dozens of these:
    C:\Downloads\Quake 2 Source\quake2-3.21\win32\conproc.c(305) : warning C4244: '=' : conversion from 'int ' to 'unsigned short ', possible loss of data

    Some generic warnings scattered throughout the log:
    C:\Downloads\Quake 2 Source\quake2-3.21\ctf\g_ai.c(61) : warning C4127: conditional expression is constant

    C:\Downloads\Quake 2 Source\quake2-3.21\ctf\g_combat.c(239) : warning C4702: unreachable code

    C:\Tools\VC98\INCLUDE\rpcasync.h(45) : warning C4115: '_RPC_ASYNC_STATE' : named type definition in parentheses

    C:\Downloads\Quake 2 Source\quake2-3.21\ref_gl\gl_image.c(1457) : warning C4057: 'function' : 'const unsigned int *' differs in indirection to slightly different base types from 'int *'

    And the lone error, everything else is just warnings:
    Performing Custom Build Step on .\r_varsa.asm
    'ml' is not recognized as an internal or external command,
    operable program or batch file.

  7. #7
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    >And the lone error, everything else is just warnings:
    Performing Custom Build Step on .\r_varsa.asm
    'ml' is not recognized as an internal or external command,
    operable program or batch file.

    I think you need MASM installed in your bin directory. You may need to download the processor pack if it's not already installed, or get hold of MASM from somewhere else.

  8. #8
    Registered User
    Join Date
    Jan 2002
    Posts
    6
    99% of the messages have nothing to do with ASM, why would there be that many warnings?

  9. #9
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Change the warning level in project->settings to a different value and recompile.

    I couldn't find the GUI switch so if you can't find it either then open up the link tab and add:

    /WARN[level]

    to the box that lists the libs, where 'level' is 0,1,2,3 - The greater the numeral used, the more warnings generated.

    Hope that helps.

  10. #10
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    #pragma warning(disable: warningnumberhere) // disable the warning


    #pragma warning(default: warningnumberhere) // renable it
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Strange compile errors
    By csonx_p in forum C++ Programming
    Replies: 10
    Last Post: 07-28-2008, 12:41 PM
  2. compile once, compile twice ...error
    By Benzakhar in forum Windows Programming
    Replies: 6
    Last Post: 12-28-2003, 06:00 AM
  3. Stupid compiler errors
    By ChrisEacrett in forum C++ Programming
    Replies: 9
    Last Post: 11-30-2003, 05:44 PM
  4. executing errors
    By s0ul2squeeze in forum C++ Programming
    Replies: 3
    Last Post: 03-26-2002, 01:43 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21