Playing games in Linux with a video card driver

Source: Internet
Author: User
Article Title: it is equally nice to configure a video card driver to play games in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Summary

Many games now require 3D support. This article introduces how TNT2 configures popular games in Linux to help you squeeze graphics cards.

Currently, most 3D acceleration games in Linux use OpenGL. Therefore, for the latest nVIDIA drivers, you only need to make minor changes to make them suitable for most games. My video card is Diamond Viper V770, and the driver installed is nVIDIA 0.93. Now, we assume that XFree86 4.0 and the latest TNT2 graphics card driver have been installed on Linux, and everything else works properly. The following describes the configurations of TNT2 graphics cards in various games.

Raytheon hammer III

In Linux, the default installation location of Raytheon hammer III (Quake III) is/usr/local/games/quake3. During the installation process, I found that libGL. so is just a link pointing to the link libMesaVoodoo (this link points to the libMesaVoodoo library). Obviously, the driver for configuring TNT2 graphics card will not work.

The solution is simple: Delete the linked file libGL. so (rm libGL. so), then Quake III Arena will be directly loaded to the libGL. so Library Under/usr/lib.

By default, Quake III Arena uses the maximized window. Although it feels good, there is still a joint under the screen. This problem can be solved by enabling full screen settings in the Game Setup menu.

One problem between the early versions of Quake III Arena and nVIDIA drivers is the support of DGA mouse. The solution has two options: Disable DGA mouse support when starting the game, or install patch 1.17. This patch can be found at http://www.lokigames.com/products/quake3/updates.php3.

Reinstalling server a II

During installation (to the directory/usr/local/games/HG), the installation of server a Ⅱ (Heavy Gear Ⅱ) will prompt you to install the library Mesa 3.3 library. This library works well with the Voodoo card. After installation, a link libGL. so.1 is created, pointing to libMesaVoodoo. so.1.2.030300. Obviously, like Quake III, it must also delete libGL. so.1 so that the game can automatically load libGL. so.

A small problem with using this driver to play Heavy Gear Ⅱ is that after a task is completed or aborted, the game suddenly exits and displays the information "Segmentation fault ". One way to solve this problem is to install patches. This patch can be found at http://www.lokigames.com/products/heavy-gear2/updates.php3. Another method is to manually correct the error. First install the latest SDL version and Delete the existing SDL library from the Heavy Gear II directory. The specific steps are as follows:

◆ Login as Root;

◆ Delete existing SDL;

◆ Download the latest SDL version from the http://www.libsdl.org/download-1.1.html;

◆ Download the latest SDL_mixer version from the http://www.libsdl.org/projects/SDL_mixer/index.html;

◆ Compile and install SDL. If it is encapsulated by RPMs, no compilation is required;

◆ Compile and install SDL_mixer.

When Heavy Gear II cannot use its SDL, other SDL libraries in the system (/usr/lib or/usr/local/lib) will be used. However, the disadvantage is that after the SDL is deleted, the library functions required for game startup are also deleted. The solution is to copy the SDL Library Under/usr/lib or/usr/local/lib to the Heavy Gear II directory and create a link. The command is as follows (I Use SDL 1.1.3 and SDL_mixer 1.0.5 ):

       
        
Su root cd/usr/lib (or/usr/local/lib, depending on the location of the SDL Library) cp libSDL-1.1.so.0.3.0/usr/local/games/HG cp libSDL_mixer-1.0.so.0.2.3/usr/local/games/Hg cd/usr/local/games/HG ln-s libSDL-1.1.so.0.3.0 libSDL-1.1.so.0 ln-s libSDL_mixer-1.0.so.0.2.3 libSDL_mixer-1.0.so.0
       

Now the game will not see the above errors.

Genius II

As in the previous game, the default installed genius Ⅱ (Heretic Ⅱ) uses the Mesa library libMesa31.so (by linking libGL. therefore, libGL must be deleted to enable the game to use the TNT2 graphics card driver. so link, and recreate a link pointing to the nVIDIA driver. The method is as follows:

       
          su root  cd /usr/local/games/heretic2/gl_drivers  rm libGL.so  ln -s /usr/lib/libGL.so libGL.so
       

However, the configuration file of Heretic Ⅱ stores the library used for the last time and still uses it at the next startup. Therefore, you must modify the Heretic Ⅱ configuration file. Find the following line in the configuration file:

       
          set gl_driver "/usr/local/games/heretic2/gl_drivers/libMesa31.so"
       

Replace it:

       
          set gl_driver "/usr/local/games/heretic2/gl_drivers/libGL.so"
       

Save and exit, so that Heretic Ⅱ can use the nVIDIA driver.

If the game still has problems, it is best to add the latest patch. This patch can be found at http://www.lokigames.com/products/heretic2/updates.php3.

Destiny fighters

At the time of writing this article, the official Soldier of Fortune version has not yet been released. I am using the DEMO version. However, this DEMO can fly on my host without modification. The game screen, speed, and plot are first-class and worth playing.

Illusory Competition

The following are the steps to install the Unreal Tournament and apply the TNT2 driver to it:

◆ Install the latest SDL version (1.1.3 is used ).

◆ Install Unreal Tournament. Remember to install libxml and libglade before installation. We recommend that you do not install libxml and libglade as Root.

◆ Install Unreal Tournament patch 413 (in http://unreal.epicgames.com/TournamentVersions.htm), complete patch installation must also have xdelta 1.1.1 (in http://www.cs.berkeley.edu /~ Jmacd/xdelta.html ).

◆ Unreal Tournament directory under the System subdirectory initialization file Default. ini changed to UnrealTournament. ini, and obtained the following file http://openut.sourceforge. net/files/sdlclient.txt. Add the content of this file to the UnrealTournament. ini file, and modify the following parts of the file to point the game to SDL:

       
             [Engine.Engine]      ameRenderDevice=SDLGLDrv. SDLGLRenderDevice     RenderDevice=SDLGLDrv. SDLGLRenderDevice     ViewportManager=SDLDrv .SDLClient
       

In this way, you can start playing games. However, there may also be a small problem of mouse movement and image deformation from time to time, but this does not affect the progress of the game.

Myth II

So far, the 3D acceleration code in Myth Ⅱ is only for Glide, which means that only Voodoo cards can be used to play this game. However, this does not mean that Myth Ⅱ cannot work in the nVIDIA driver, but must change the software translation.

If you cannot start Myth Ⅱ with a software translator, you should first take a look at the Startup Program of the game. If you choose to support Glide during game installation, the software translation will not be installed. Only myth2_glide will be installed. In this case, either reinstall the game (without the Glide option) or copy the software translation (myth2_x11) from the disc to the hard disk.

If you still have problems using the nVIDIA driver, remember to update Myth II first and then consider other issues. Currently, the latest Myth II version in Linux is v1.3d. You can find the latest patches at: http://www.lokigames.com/products/myth2/updates.php3.

Related Article

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.