Playing CS1.6 with Wine in Ubuntu9.10

Source: Internet
Author: User
It has been a long time since the previous running of CS in Ubuntu9.10, so I want to find out the problem that cannot run normally today. After installation, the system runs normally for the first time. The default video mode is OpenGL, and the screen is rough. After resetting, The csgame will automatically restart, cause an error and exit directly, and generate an error log file similar to "Steam _ 9545920.2010_42519t9_51_47c3986. mdmp" in the CS root directory. Because

It has been a long time since CS was run normally in Ubuntu 9.10, so I want to find out the problem that cannot run normally today.

After installation, the system runs normally for the first time. The default video mode is OpenGL, and the screen is rough. After resetting, The csgame will automatically restart, cause an error and exit directly, and generate an error log file similar to "Steam _ 9545920.2010_42519t9_51_47c3986. mdmp" in the CS root directory. Since I didn't have the chance to re-set it, it became very troublesome. If I didn't set it as window mode for the first time, the system resolution would be broken, so I didn't restart the system much. Therefore, whether it is successful or not, it is best to set the window mode for the first time. I started to uninstall and reinstall the CS program every time I reset the settings. Then I found a simple method. The following is a brief introduction.

If you are clear about the wine directory structure and working principle, the Registry File in wine should be clear about where it is.

~ /. Wine/user. reg
~ /. Wine/system. reg
~ /. Wine/userdef. reg

Here we use ~ /. Wine/user. reg. The CS registry file after successful configuration is as follows:

[Software \ Valve \ CounterStrike] 1263897658
"Full Name" = "Half-Life: Counter-Strike"
"InstallPath" = "Z: \ game \ CS1.6"

[Software \ Valve \ Half-Life \ Settings] 1263901829
"CrashInitializingVideoMode" = dword: 00000000
"EngineD3D" = dword: 00000001
"EngineDLL" = "hw. dll"
"I/O" = "1058891060"
"Key" = "1234567890123"
"ScreenBPP" = dword: 00000020
"ScreenHeight" = dword: 00000288
"ScreenWidth" = dword: 00000480
"Screenappswed" = dword: 00000001
"User Token 2" = ""
"User Token 3" = ""
"ValveKey" = "5RP2E-EPH3K-BR3LG-KMGTE-FN8PY"
"YeK1" = ""
"YeK2" = ""

[Software \ Valve \ Steam] 1263900782
"Language" = "English"
"Rate" = "20000.000000"
"Skin" = ""

The path may be different. If the setting fails and cannot be started, you can try to modify the value of CrashInitializingVideoMode to dword: 00000001. In this way, you will be prompted that the video mode cannot be used during the restart, and automatically switch to the software mode. The result is that the CS program is not automatically exited. "Screendomainwed" = dword: 00000001 indicates window mode, and 00000000 indicates full screen mode. If not, you can delete the code.

Finally, I set the video card mode to D3D. After the game is successfully started, the screen effect is acceptable. However, when you quit and restart the game, the sound will become noisy, and other ubuntu sound devices will not be affected, so I finally decided it was a wine problem. After searching on the network, find a solution. manually set the wine sound Driver, enter winecfg in the command line, and select the Audio tab. the ALSA Driver is selected by default. I will remove the ALSA Driver, select the OSS Driver and make the game sound normal.

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.