GithubHelp home page GithubHelp logo

larry57 / quake-2-vs2013 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from philipbuuck/quake-2-vs2013

0.0 2.0 0.0 796 KB

Building Quake 2 using Visual Studio 2013

Objective-C 1.30% C 98.60% C++ 0.10%

quake-2-vs2013's Introduction

Quake-2-VS2013

Building Quake 2 using Visual Studio 2013

The goal of this project is to build the Quake 2 source code available on id Software's GitHub account in a modern Visual Studio environment.

The Visual Studio files that come with the source code are hopelessly out of date, and nearly impossible to work with, even on a Windows XP machine running Visual C++ 6.0. Believe me, I've tried. So rather than continue to wrestle with that, I have recreated the project instead.

Please go to my website if you would like to watch the videos, or if you have any questions.

http://philipbuuck.com/building-quake-2-with-visual-studio-2013

This project is the exact same project created in the videos, except for three things.

First, by default Quake 2 attempts to load the software renderer, and if that doesn't work it throws an error and quits. In order to fix this, go into the \win32\vid_dll.c file. Change line 711 from this:

vid_ref = Cvar_Get ("vid_ref", "soft", CVAR_ARCHIVE);

To this:

vid_ref = Cvar_Get ("vid_ref", "gl", CVAR_ARCHIVE);

Now it will start by trying the OpenGL version of the graphics, which will work.

Second, it is very beneficial to be able to press F5 inside of Visual Studio and run the game from there. One of the Visual Studio options is to set the Working Directory, which is the directory the program thinks it's running in. This defaults to the folder where your quake2 project file is, which is not correct. I have changed this Working Directory to the following value:

"$(SolutionDir)Quake2"

This ensures that the program is working from the Quake2 directory, which is where the executable is located.

Finally, there were some extra unnecessary files left in that I have deleted. They are:

/quake2.vcxproj.user

/client/asm_i386.h
/client/block8.h
/client/block16.h

/win32/q2.aps
/win32/qe3.ico
/win32/rw_ddraw.c
/win32/rw_dib.c
/win32/rw_imp.c
/win32/rw_win.h
/win32/winquake.aps
/win32/winquake.rc

With this, we now have a game that is ready for distribution.

All the best,
Philip

quake-2-vs2013's People

Contributors

philipbuuck avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.