个人工具

UbuntuHelp:Cedega/zh

来自Ubuntu中文

Jimhu讨论 | 贡献2007年7月27日 (五) 11:01的版本 (新页面: {{Translation}} {{From|https://help.ubuntu.com/community/Cedega}} {{Translator|JimHu}} {{Languages|UbuntuHelp:Cedega}} Parent: UbuntuHelp:Games Cedega可以运行许多Windows游戏...)

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航, 搜索

Parent: UbuntuHelp:Games


Cedega可以运行许多Windows游戏,包括Battlefield 2、Half-Life 2以及World of Warcraft,他们都可以在Linux下运行。

获得Cedega

Cedega是一个私有产品,你必须在http://transgaming.com购买后才能使用全部功能。这是一个UbuntuHelp:Wine项目的分支,并且在一个免费和开源的协议下可用。

你可以使用CVS版本的Cedega(这是免费的),如何安装的指导在http://www.linux-gamers.net/modules/wiwimod/index.php?page=HOWTO+Cedega+CVS

如果原文链接失效,你可以使用下面的这个: http://winecvs.linux-gamers.net/WineCVS.sh

如何安装Cedega

安装debian文件:

sudo dpkg -i cedega_[version].deb

使用Cedega安装一个游戏

从CD或者DVD安装

定位正确的安装程序并且安装游戏:

cedega  /media/cdrom/setup.exe  

嘉定你得CDROM被挂载于 /media/cdrom 并且安装程序的名字为 setup.exe

IconsPage?action=AttachFile&do=get&target=IconTip.png 你可能会在复制文件过程中遭遇到某些图形错误,通常这些是无害的。

从硬盘安装

如果你有足够的空闲空间,你可以复制CD内的文件到 Transgaming_Drive 于你的主目录。在这种情况下,你不会遭遇到cd更换问题。

cd ~/TransGaming_Drive

定位正确的安装程序并且使用如下命令安装游戏:

cedega setup.exe

多光盘安装

你需要使用如下选项来运行安装程序 -monitor-cdrom-eject 。 随后,你便可以按位于CD或着DVD光驱上的退出按钮,这是光盘将自动卸载并且退出。

IconsPage?action=AttachFile&do=get&target=IconWarning3.png 你需要注意启动这个选项的时候,你的系统有没有Compact Flash驱动器。

使用Cedega来玩游戏

启动已经被安装的游戏有三种方式。

使用桌面上的图标

有些游戏在安装进程中会在桌面上创建图标。 如果你希望执行特殊的选项来运行Cedega或者游戏,编辑桌面的快捷方式。

使用开始菜单

有些游戏会在开始菜单中添加链接。这样的话,你只需要简单的单击开始菜单,指向TransGaming -> Programs 随后是游戏名/公司名,最后选择游戏图标。 如果你希望执行特殊的选项来运行Cedega或者游戏,编辑菜单的快捷方式。

使用命令行

进入游戏目录:

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

开始游戏:

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

如果你可以在命令行中执行特殊的选项来运行Cedega或者游戏。 Cedega的重要选项有: -bigexe: 这个选项要求可执行文件是一个“大”文件。特别是那些DEMO安装程序,他们只有一个较大的安装文件。

-use-pthreads: 一种用来强制使用pthreads的方式。这个选项应该由Cedega自动设定,但是,如果问题出现了,那么改变这个选项可能会有帮助。可用的值是yes或者no。

-monitor-cdrom-eject 启动CD弹出查询功能。这个选项默认情况下被关闭,因为只有部分多光盘安装程序才需要启用它。 IconsPage?action=AttachFile&do=get&target=IconWarning3.png 你需要注意启动这个选项的时候,你的系统有没有Compact Flash驱动器。

免光盘游戏

你可以在MegaGames找到免光盘游戏补丁。

配置Cedega

为了能够编辑Cedega的配置选项,在你最喜欢的文本编辑器中打开 ~/.transgaming/config。 更多相关信息,请参阅Cedega_howto txt 文件!

疑难解答

OpenGL支持

为了测试你的显卡是否支持OpenGL,执行如下命令:

glxinfo | grep 'direct rendering'

将返回 "direct rendering:"

如果是'Yes'或者'Enable',那么OpenGL似乎是被正确配置了。如果显示为'no'或者'disable',那么双击你的3D配置。

性能测试

如果3D加速在你的显卡上被正确启用,那么报告的祯数应该大于500If 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.

glxgears -printfps

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)