个人工具

“UbuntuHelp:Cedega”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
 
(未显示3个用户的16个中间版本)
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/Cedega}}
 
{{From|https://help.ubuntu.com/community/Cedega}}
{{Languages|php5}}
+
{{Languages|UbuntuHelp:Cedega}}
Parent: [[UbuntuHelp:Games]]
+
Parent: [[UbuntuHelp:Games|Games]]
 
+
 
+
 
+
 
Cedega allows many popular Windows games, including Battlefield 2, Half-Life 2, and World of Warcraft to be played under Linux.
 
Cedega allows many popular Windows games, including Battlefield 2, Half-Life 2, and World of Warcraft to be played under Linux.
 
 
== Acquiring Cedega ==
 
== Acquiring Cedega ==
Cedega is a proprietary product, that must be purchased from http://transgaming.com for full functionality. It is a fork of the [[UbuntuHelp:Wine]] project, which is available under a free and open source license.
+
Cedega is a proprietary product, that must be purchased (currently $5.00 per month with a 3 month minimum initial purchase) from http://transgaming.com for full functionality. It is a fork of the [[UbuntuHelp:Wine|Wine]] project, which is available under a free and open source license.
 
+
 
You can use a CVS version of Cedega (this is free), instructions on how to install this are at http://www.linux-gamers.net/modules/wiwimod/index.php?page=HOWTO+Cedega+CVS
 
You can use a CVS version of Cedega (this is free), instructions on how to install this are at http://www.linux-gamers.net/modules/wiwimod/index.php?page=HOWTO+Cedega+CVS
 
+
Under Edgy and above, you will need to type <code><nowiki>bash WineCVS.sh</nowiki></code> instead of <code><nowiki>sh WineCVS.sh</nowiki></code>, as the script uses features that are specific to the bash shell.
 
If the link to the script doesn't work, you can use this one: http://winecvs.linux-gamers.net/WineCVS.sh
 
If the link to the script doesn't work, you can use this one: http://winecvs.linux-gamers.net/WineCVS.sh
 
 
== How To Install Cedega ==
 
== How To Install Cedega ==
 
Install the debian file:
 
Install the debian file:
第19行: 第13行:
 
sudo dpkg -i cedega_[version].deb
 
sudo dpkg -i cedega_[version].deb
 
</nowiki></pre>
 
</nowiki></pre>
 
 
== Installing a Game Using Cedega ==
 
== Installing a Game Using Cedega ==
 
=== Installing from CD or DVD ===
 
=== Installing from CD or DVD ===
第27行: 第20行:
 
</nowiki></pre>
 
</nowiki></pre>
 
Assuming your cdrom is mounted to <code><nowiki>/media/cdrom</nowiki></code> and the installer is named <code><nowiki>setup.exe</nowiki></code>
 
Assuming your cdrom is mounted to <code><nowiki>/media/cdrom</nowiki></code> and the installer is named <code><nowiki>setup.exe</nowiki></code>
 
 
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconTip.png You may experience some graphical errors during the copying process. These are generally not harmful.
 
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconTip.png You may experience some graphical errors during the copying process. These are generally not harmful.
 
 
=== Installing from the HD ===
 
=== Installing from the HD ===
 
If you have enough free space, you can copy the content of each CD in <code><nowiki>Transgaming_Drive</nowiki></code> in your home directory. In that case, you don't encounter the cd changing problem.
 
If you have enough free space, you can copy the content of each CD in <code><nowiki>Transgaming_Drive</nowiki></code> in your home directory. In that case, you don't encounter the cd changing problem.
第39行: 第30行:
 
cedega setup.exe
 
cedega setup.exe
 
</nowiki></pre>
 
</nowiki></pre>
 
 
=== Multi-Disc Installers ===
 
=== Multi-Disc Installers ===
 
You should run the installer with the <code><nowiki>-monitor-cdrom-eject</nowiki></code> option, and then you may press the eject
 
You should run the installer with the <code><nowiki>-monitor-cdrom-eject</nowiki></code> option, and then you may press the eject
button on CD-RW or DVD driveshttps://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconWarning3.png utomatically.
+
button on CD-RW or DVD drives and the disc will unmount and eject automatically.
 
+
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconWarning3.png Care should be taken when enabling this option on systems which have compact flash drives.
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconWarning3.png+Care+should+be+taken+when+enabling+this+option+on+systems+which+have+compact+flash+drives.
+
 
+
 
== Playing a Game Using Cedega ==
 
== Playing a Game Using Cedega ==
 
There are three methods for starting a game once it has been installed.
 
There are three methods for starting a game once it has been installed.
第51行: 第39行:
 
Some games will create a desktop icon during the installation process.  
 
Some games will create a desktop icon during the installation process.  
 
If you wish to pass special options to Cedega or the game, edit the desktop shortcut.
 
If you wish to pass special options to Cedega or the game, edit the desktop shortcut.
 
 
=== Using the Start Menu ===
 
=== Using the Start Menu ===
 
Some games will add a link to the start menu. Simply click the start menu, go to <code><nowiki>TransGaming -> Programs</nowiki></code> and then the game name/vendor and select the game icon.   
 
Some games will add a link to the start menu. Simply click the start menu, go to <code><nowiki>TransGaming -> Programs</nowiki></code> and then the game name/vendor and select the game icon.   
 
If you wish to pass special options to Cedega or the game, edit the menu item shortcut.
 
If you wish to pass special options to Cedega or the game, edit the menu item shortcut.
 
 
=== Using the Command Line ===
 
=== Using the Command Line ===
 
Enter the Game Directory:
 
Enter the Game Directory:
第66行: 第52行:
 
</nowiki></pre>
 
</nowiki></pre>
 
Options can be passed to both Cedega and the game using the command line.
 
Options can be passed to both Cedega and the game using the command line.
 
 
Important options for Cedega are:
 
Important options for Cedega are:
 
<code><nowiki>-bigexe</nowiki></code>:  
 
<code><nowiki>-bigexe</nowiki></code>:  
        This option is required for executables of a "large" size. Typically this is only for demo installers who come packaged in one large executable.
+
This option is required for executables of a "large" size. Typically this is only for demo installers who come packaged in one large executable.
 
+
 
<code><nowiki>-use-pthreads</nowiki></code>:
 
<code><nowiki>-use-pthreads</nowiki></code>:
        A way to override the use of pthreads. This option should be automatically set by Cedega, however, if problems exist it may be useful to change the pthreads option. Acceptable values are yes or no.
+
A way to override the use of pthreads. This option should be automatically set by Cedega, however, if problems exist it may be useful to change the pthreads option. Acceptable values are yes or no.
 
+
 
<code><nowiki>-monitor-cdrom-eject</nowiki></code>
 
<code><nowiki>-monitor-cdrom-eject</nowiki></code>
        Enables the CD eject polling functihttps://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconWarning3.png  and typically onhttps://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconWarning3.png+Care+should+be+taken+when+enabling+this+option+on+systems+which+have+compact+flash+drives.this option on systems which have compact flash drives.
+
Enables the CD eject polling functionality. This option is off by default and typically only needs to be enabled for some multidisk installers.
 
+
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconWarning3.png Care should be taken when enabling this option on systems which have compact flash drives.
 
== Play a game without CD ==
 
== Play a game without CD ==
 
You can get NO-CD PC Games fixes from [http://www.megagames.com/ MegaGames]
 
You can get NO-CD PC Games fixes from [http://www.megagames.com/ MegaGames]
 
 
== Configuring Cedega ==
 
== Configuring Cedega ==
 
To edit the Cedega configuration settings open <code><nowiki>~/.transgaming/config</nowiki></code> in your favorite text editor.
 
To edit the Cedega configuration settings open <code><nowiki>~/.transgaming/config</nowiki></code> in your favorite text editor.
 
For more details read the supplied Cedega_howto txt file!
 
For more details read the supplied Cedega_howto txt file!
 
 
== Troubleshooting ==
 
== Troubleshooting ==
 
=== OpenGL Support ===
 
=== OpenGL Support ===
第91行: 第72行:
 
</nowiki></pre>
 
</nowiki></pre>
 
output will return "direct rendering:"
 
output will return "direct rendering:"
 
 
If this is 'Yes' or 'Enabled' then OpenGL is likely set up correctly.  If it is listed as 'no' or 'disabled' then double check your 3D setup.
 
If this is 'Yes' or 'Enabled' then OpenGL is likely set up correctly.  If it is listed as 'no' or 'disabled' then double check your 3D setup.
 
 
=== Performance Test ===
 
=== Performance Test ===
If 3D acceleration is correctly enabled for your video card then the reported framerate should be well over 500 FPS, at the default window size. If the output shows less than 500 FPS then you should double check your 3D setup.
+
Run the glxgears program:
 
<pre><nowiki>
 
<pre><nowiki>
glxgears -printfps
+
glxgears
 
</nowiki></pre>
 
</nowiki></pre>
 
+
A window will be displayed with 3 rotating gears. If 3D acceleration is correctly enabled for your video card then the reported framerate should be well over 500 FPS, at the default window size. If the output shows less than 500 FPS then you should double check your 3D setup.
 
=== Multiple OpenGL libraries ===
 
=== Multiple OpenGL libraries ===
 
Check if you have multiple OpenGL libraries:
 
Check if you have multiple OpenGL libraries:
第106行: 第85行:
 
</nowiki></pre>
 
</nowiki></pre>
 
This will display any OpenGL libraries you have on your system. In particular, you should be cautious of having libGL in both /usr/lib as well as in /usr/X11R6/lib.  Sometimes, the software-only Mesa OpenGL libraries are installed in /usr/X11R6/lib and hardware accelerated drivers are installed elsewhere.  We do not recommend removing the Mesa libraries from /usr/X11R6/lib unless you are seeing slow rendering in games running under Cedega.
 
This will display any OpenGL libraries you have on your system. In particular, you should be cautious of having libGL in both /usr/lib as well as in /usr/X11R6/lib.  Sometimes, the software-only Mesa OpenGL libraries are installed in /usr/X11R6/lib and hardware accelerated drivers are installed elsewhere.  We do not recommend removing the Mesa libraries from /usr/X11R6/lib unless you are seeing slow rendering in games running under Cedega.
 
 
=== CD Drives and Mountpoints permissions ===
 
=== CD Drives and Mountpoints permissions ===
 
Many Windows games use copy protection systems that require Cedega to have 'read' access to your CD-ROM device, as well as 'read' and 'execute' access to your CD-ROM mount point.
 
Many Windows games use copy protection systems that require Cedega to have 'read' access to your CD-ROM device, as well as 'read' and 'execute' access to your CD-ROM mount point.
第114行: 第92行:
 
sudo chmod a+rx [CD-ROM mount point]
 
sudo chmod a+rx [CD-ROM mount point]
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Check for symbolically linked devices and change the permissions
 
Check for symbolically linked devices and change the permissions
 
<pre><nowiki>
 
<pre><nowiki>
 
ls -la [CD-ROM Device]
 
ls -la [CD-ROM Device]
 
</nowiki></pre>
 
</nowiki></pre>
 
 
=== User Access on CD-ROM mountpoint ===
 
=== User Access on CD-ROM mountpoint ===
 
Under some circumstances, you may need to edit your <code><nowiki>/etc/fstab</nowiki></code> file to ensure that all users have access to the CD-ROM mount point.
 
Under some circumstances, you may need to edit your <code><nowiki>/etc/fstab</nowiki></code> file to ensure that all users have access to the CD-ROM mount point.
 
 
=== Graphic Problems ===
 
=== Graphic Problems ===
Games often attempt to change your screen resolution to fit their needs. Make sure that the 'Screen' section of your <code><nowiki>xorg.conf</nowiki></code> or <code><nowiki>XF86Config-4</nowiki></code> file has a number of resolutions.  The most common resolutions are: 1600X1200,  1280X1024, 1024X768, 800X600, 640X480. If the game is not running at full screen check the game settings to see what resolution it ihttps://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconTip.png  that resolution is lihttps://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconTip.png+You+may+experience+improved+performance+with+some+games+when+running+the+X+server+at+16+bit+color+depth.p.png You may experience improved performance with some games when running the X server at 16 bit color depth.
+
Games often attempt to change your screen resolution to fit their needs. Make sure that the 'Screen' section of your <code><nowiki>xorg.conf</nowiki></code> or <code><nowiki>XF86Config-4</nowiki></code> file has a number of resolutions.  The most common resolutions are: 1600X1200,  1280X1024, 1024X768, 800X600, 640X480. If the game is not running at full screen check the game settings to see what resolution it is attempting to use and make sure that resolution is listed in the <code><nowiki>xorg.conf</nowiki></code> or <code><nowiki>XF86Config-4</nowiki></code> file.
 
+
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconTip.png You may experience improved performance with some games when running the X server at 16 bit color depth.
 
=== Sound Problems ===
 
=== Sound Problems ===
 
If you are having sound problems make sure to disable any sound servers or other applications that may be using sound, such as 'xmms'.
 
If you are having sound problems make sure to disable any sound servers or other applications that may be using sound, such as 'xmms'.
 
 
=== Free space limitations ===
 
=== Free space limitations ===
 
Some systems may be set up with restrictive space quotas on the /home directory. You may experience problems installing games if the available space is reported incorrectly, or if there is not enough space
 
Some systems may be set up with restrictive space quotas on the /home directory. You may experience problems installing games if the available space is reported incorrectly, or if there is not enough space
第139行: 第113行:
 
symbolically link to a device with more free space available.
 
symbolically link to a device with more free space available.
 
</nowiki></pre>
 
</nowiki></pre>
 
 
=== Low Framerate ===
 
=== Low Framerate ===
 
If you only get 15-30 fps
 
If you only get 15-30 fps
第145行: 第118行:
 
renice 17 -p `pgrep wineserver`
 
renice 17 -p `pgrep wineserver`
 
</nowiki></pre>
 
</nowiki></pre>
 
 
=== No 3D acceleration in 64bit version Ubuntu ===
 
=== No 3D acceleration in 64bit version Ubuntu ===
 
In glxgears you get good results, but cedega's 3D test failed and games are slow.  
 
In glxgears you get good results, but cedega's 3D test failed and games are slow.  
第153行: 第125行:
 
/usr/lib/
 
/usr/lib/
 
</nowiki></pre>
 
</nowiki></pre>
 
 
== Resources ==
 
== Resources ==
 
[http://www.pcinpact.com/articles/d/51/1.htm Install and configure Cedega (CVS and normal version) and install World of Warcraft (in french)]
 
[http://www.pcinpact.com/articles/d/51/1.htm Install and configure Cedega (CVS and normal version) and install World of Warcraft (in french)]
 
----
 
----
CategoryDocumentation CategoryGames
+
[[category:CategoryGames]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2010年5月19日 (三) 21:52的最新版本


Parent: Games Cedega allows many popular Windows games, including Battlefield 2, Half-Life 2, and World of Warcraft to be played under Linux.

Acquiring Cedega

Cedega is a proprietary product, that must be purchased (currently $5.00 per month with a 3 month minimum initial purchase) from http://transgaming.com for full functionality. It is a fork of the Wine project, which is available under a free and open source license. You can use a CVS version of Cedega (this is free), instructions on how to install this are at http://www.linux-gamers.net/modules/wiwimod/index.php?page=HOWTO+Cedega+CVS Under Edgy and above, you will need to type bash WineCVS.sh instead of sh WineCVS.sh, as the script uses features that are specific to the bash shell. If the link to the script doesn't work, you can use this one: http://winecvs.linux-gamers.net/WineCVS.sh

How To Install Cedega

Install the debian file:

sudo dpkg -i cedega_[version].deb

Installing a Game Using Cedega

Installing from CD or DVD

Locate the correct installer executable and install the game using:

cedega  /media/cdrom/setup.exe  

Assuming your cdrom is mounted to /media/cdrom and the installer is named setup.exe IconsPage?action=AttachFile&do=get&target=IconTip.png You may experience some graphical errors during the copying process. These are generally not harmful.

Installing from the HD

If you have enough free space, you can copy the content of each CD in Transgaming_Drive in your home directory. In that case, you don't encounter the cd changing problem.

cd ~/TransGaming_Drive

Locate the correct installer executable and install the game using:

cedega setup.exe

Multi-Disc Installers

You should run the installer with the -monitor-cdrom-eject option, and then you may press the eject button on CD-RW or DVD drives and the disc will unmount and eject automatically. IconsPage?action=AttachFile&do=get&target=IconWarning3.png Care should be taken when enabling this option on systems which have compact flash drives.

Playing a Game Using Cedega

There are three methods for starting a game once it has been installed.

Using the Desktop Icon

Some games will create a desktop icon during the installation process. If you wish to pass special options to Cedega or the game, edit the desktop shortcut.

Using the Start Menu

Some games will add a link to the start menu. Simply click the start menu, go to TransGaming -> Programs and then the game name/vendor and select the game icon. If you wish to pass special options to Cedega or the game, edit the menu item shortcut.

Using the Command Line

Enter the Game Directory:

cd ~/.transgaming/c_drive/Program Files/[Game Directory]

Start the game:

cedega [wine options] game.exe [game options]

Options can be passed to both Cedega and the game using the command line. Important options for Cedega are: -bigexe: This option is required for executables of a "large" size. Typically this is only for demo installers who come packaged in one large executable. -use-pthreads: A way to override the use of pthreads. This option should be automatically set by Cedega, however, if problems exist it may be useful to change the pthreads option. Acceptable values are yes or no. -monitor-cdrom-eject Enables the CD eject polling functionality. This option is off by default and typically only needs to be enabled for some multidisk installers. IconsPage?action=AttachFile&do=get&target=IconWarning3.png Care should be taken when enabling this option on systems which have compact flash drives.

Play a game without CD

You can get NO-CD PC Games fixes from MegaGames

Configuring Cedega

To edit the Cedega configuration settings open ~/.transgaming/config in your favorite text editor. For more details read the supplied Cedega_howto txt file!

Troubleshooting

OpenGL Support

To test your graphics card for OpenGL support execute the following command:

glxinfo | grep 'direct rendering'

output will return "direct rendering:" If this is 'Yes' or 'Enabled' then OpenGL is likely set up correctly. If it is listed as 'no' or 'disabled' then double check your 3D setup.

Performance Test

Run the glxgears program:

glxgears

A window will be displayed with 3 rotating gears. If 3D acceleration is correctly enabled for your video card then the reported framerate should be well over 500 FPS, at the default window size. If the output shows less than 500 FPS then you should double check your 3D setup.

Multiple OpenGL libraries

Check if you have multiple OpenGL libraries:

locate libGL

This will display any OpenGL libraries you have on your system. In particular, you should be cautious of having libGL in both /usr/lib as well as in /usr/X11R6/lib. Sometimes, the software-only Mesa OpenGL libraries are installed in /usr/X11R6/lib and hardware accelerated drivers are installed elsewhere. We do not recommend removing the Mesa libraries from /usr/X11R6/lib unless you are seeing slow rendering in games running under Cedega.

CD Drives and Mountpoints permissions

Many Windows games use copy protection systems that require Cedega to have 'read' access to your CD-ROM device, as well as 'read' and 'execute' access to your CD-ROM mount point. Change permissions:

sudo chmod a+r [CD-ROM Device]
sudo chmod a+rx [CD-ROM mount point]

Check for symbolically linked devices and change the permissions

ls -la [CD-ROM Device]

User Access on CD-ROM mountpoint

Under some circumstances, you may need to edit your /etc/fstab file to ensure that all users have access to the CD-ROM mount point.

Graphic Problems

Games often attempt to change your screen resolution to fit their needs. Make sure that the 'Screen' section of your xorg.conf or XF86Config-4 file has a number of resolutions. The most common resolutions are: 1600X1200, 1280X1024, 1024X768, 800X600, 640X480. If the game is not running at full screen check the game settings to see what resolution it is attempting to use and make sure that resolution is listed in the xorg.conf or XF86Config-4 file. IconsPage?action=AttachFile&do=get&target=IconTip.png You may experience improved performance with some games when running the X server at 16 bit color depth.

Sound Problems

If you are having sound problems make sure to disable any sound servers or other applications that may be using sound, such as 'xmms'.

Free space limitations

Some systems may be set up with restrictive space quotas on the /home directory. You may experience problems installing games if the available space is reported incorrectly, or if there is not enough space available on your system:

disable quotas 

or

symbolically link to a device with more free space available.

Low Framerate

If you only get 15-30 fps

renice 17 -p `pgrep wineserver`

No 3D acceleration in 64bit version Ubuntu

In glxgears you get good results, but cedega's 3D test failed and games are slow. Set enviroment variable:

export LIBGL_DRIVERS_PATH=/usr/X11R6/lib32/modules/dri/:/usr/lib32/:/usr/X11R6/lib/modules/dri/:
/usr/lib/

Resources

Install and configure Cedega (CVS and normal version) and install World of Warcraft (in french)