Compile quake3 games using vc6.0 on Win32 platform

Source: Internet
Author: User
Compile quake3 game .txt using vc6.0 on Win32 platform

Original address: http://blog.tianya.cn/blogger/post_show.asp? Blogid = 279751 & postid = 10763192

 

 

Author: huiwu2068 submission date: 22:42:00
 
  

In quake3 games, these source codes are quite essential. The lower-layer functions, the more amazing they are, the higher efficiency they are. The functions are so concise that they can be read, it is quite helpful for our programming capabilities. however, I just made a preliminary look. There are still many things I don't understand, such as the sharing of platforms, the more essential elements of quake3 "Game Engine", and how to edit resource files, how can I keep the CPU allocated continuously without a card screen.
I hope that interested friends can communicate with me, learn from each other, and contact me
E-mail: huiwu2068@163.com
You can reprint this article at will, but please keep the above text and indicate the source. Thank you ~~~~~

 

  

Now the game source code of quake3 has been fully open. For the "Quake fans" of this era, it is a great opportunity to learn programming and play games.
Make sure to download the following files after you start.
1. Quake 3 demo
Ftp://ftp.idsoftware.com/idstuff/quake3/win32/Q3ADemo.exe
2. Quake 3 release
(A direct running error may be due to copyright considerations)
Ftp://ftp.idsoftware.com/idstuff/quake3/win32/q3pointrelease_132.exe
3. Quake 3 source code
(This is the focus of our processing and the goal of learning the essence of programming)
Ftp://ftp.idsoftware.com/idstuff/source/quake3-1.32b-source.zip
3. used to convert the Visual C ++ 2003 project file to the vc6.0 project file
(Since the quake 3 engine is compiled by Visual C ++ 2003, We need to compile it using vc6.0)
Http://www.vckbase.com/tools/assist/MagicVC7To6.rar

  

Maybe you may wonder why the demo and the release version are available in the source code? This is because the game is running. It requires not only the "Game Engine" of quake 3 source code, but also resource files such as configuration information, maps, models, sounds, textures, demos, icons, and cursors, these are available in the demo and release versions, and we don't need to work hard to find them.

  

I. decompress the quake 3 source code quake3-1.32b-source.zip, decompress to the Directory D: \ quake3-1.32b-source

  

2. Run magicvc7to6 Conversion Program, in the software "Search Path" to D: \ quake3-1.32b-source \ quake3-1.32b, click "Search", and then click "Conversion"

  

3. Enter the Directory D: \ quake3-1.32b-source \ quake3-1.32b \ code, find the converted project file quake3.dsw
1) Change all engineering properties Win32 debug to Win32 release
2) In the FileView of the workspace, right-click the "UI Files" project and left-click "Uninstall Project". This step is critical; otherwise, an error occurs.
3) in the menu bar, click "project"> "from properties"> in the "select modify project" drop-down box, select quake3. in the "subordinate project:" select box, check botlib and Renderer and click OK.
4) In the workspace FileView, right-click the "quake3 Files" project and select "set as active project"
5) open files. c In the "quake3 Files" project and comment the lines 3263,3264 and 3266, as shown below:
// If (fs_readfile ("Default. cfg", null) <= 0 ){
// Com_error (err_fatal, "couldn't load default. cfg ");
// Bk001208-safemode see below, fixme?
//}
Then, comment out all the content of the tatic void fs_setrestrictions () function in files. C, leaving only the following Shell functions
Static void fs_setrestrictions (void ){
}
6) save the file and compile it according to F7
(In fact, the source code has been compiled, but to prove the correctness of the compiled game program, please continue to the following steps)

  

4. Install q3ademo.exe and q3pointrelease_132.exe of quake 3 demo to the root directory of disk C. After installation, they are c: \ q3ademo and c: \ quake III arena.

  

5. Copy the pak0.pk3 file under the c: \ q3ademo \ demoq3 directory to the C: \ quake III arena \ baseq3 directory.

  

6. overwrite the quake3.exe file under the compiled Directory D: \ quake3-1.32b-source \ quake3-1.32b \ code \ releaseto the directory c: \ quake III arena
(If you cannot find quake3.exe, try to find it in the DEBUG directory)

  

Q.run quake3.exe ,~~~~~ Now! You can start crazy games.

  


Appendix:
Knowledge about quakeiii games
Quake3 consists of the following parts: quake3.exe (engine),. qvm file (game logic), game resources,
What we compile is the engine, which is the most critical part.
In the .qvmfile, change its suffix to .rar, and decompress the file.
The familiar CS is modified based on halflife, and halflife uses the quake2 engine. It can be seen that the distinction between the three parts brings convenience. Finished

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.