Compile quake3 (2)

Source: Internet
Author: User
Http://www.feelapi.com/archives/92 compilation quake3 (2)
Share to: 0

After some twists and turns, the batch was finally compiled. This is a running screen.

1 first, compile quake3.sln. Other SLNs are auxiliary projects and can be compiled as needed. You don't need to modify the code. My machine is in a Chinese environment, and the source file encoding is different. There are still some modifications.

2. Which installrelease. BAT to run after compilation. Run this batch to generate three VMS, that is, the game interface and client. You can also use the dll version. However, because my environment is a demo version, that is, a restricted environment, we still need to generate these three VMS for the next use.

My path settings:

When running, use the shell that comes with vs2008, add D: Quake3quake3-vs2008Srccodewin32mod-sdk-setupbin to the path variable.

The baseq3 directory contains three VM files: cgame. qvm, qagame. qvm, and UI. qvm. We need these three files. If you want to use the dll version, you need to add the command settings during debugging:

+ Set sv_pure 0 + set vm_game 0 + set vm_cgame 0

However, this setting does not work for the demo version.

3. Install the demo. My installation path is C: q3ademo. After installation, find the pak0.pk3 file, which is about 45 m. Modify the directory named demota that contains this file. This is also the requirement of the demo version.

4. Open the pak0.pk3 file in 7-zip, find the VM directory, and replace the three files with the files we generated. No errors will occur.

5. Modify D: quake3srccodeqcommonfiles. C, line203. The value of demo_pak_checksum is determined by the data file. The value in the source code does not correspond to the value of the modified file. You need to view the value and modify it. How to check? Wow, a debug error occurs. Check the call stack and line 2883 of the file. See the judgment statement.

6. Sorry, the most important debugging parameter. + Set fs_basepath D: quake3 + set fs_cdpath "C: q3ademo" + % 1% 2% 3% 4% 5% 6% 9

This is for my use. You can modify it as needed.

I put the modified Code in the shared file. Welcome. If you have any questions, email me.

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.