当前位置: 首页>>技术教程>>正文


如何在Ubuntu上玩暗黑破坏神III?

, ,

问题描述

是否可以在Ubuntu上玩暗黑破坏神3?

我应该安装什么来玩具有良好图形的D3?

如何才能让Nvidia显卡与暗黑破坏神III配合使用?

最佳解决思路

昨天我在笔记本电脑上成功安装了暗黑破坏神3,华硕Zenbook UX32VD。但我认为我所做的步骤可以在任何其他计算机上完成。我的配置:

Linux 3.8.6-030806-generic
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=13.04
DISTRIB_CODENAME=raring
DISTRIB_DESCRIPTION="Ubuntu 13.04"

本教程也适用于:

3.13.0-24-generic
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04 LTS"

lspci的:

00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:04.0 Signal processing controller: Intel Corporation 3rd Gen Core Processor Thermal Subsystem (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM76 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)
00:1f.6 Signal processing controller: Intel Corporation 7 Series/C210 Series Chipset Family Thermal Management Controller (rev 04)
01:00.0 3D controller: NVIDIA Corporation GF117M [GeForce 610M/710M / GT 620M/625M/630M/720M] (rev ff)
03:00.0 Network controller: Intel Corporation Centrino Advanced-N 6235 jev 24)

我会试着解释一下我做了什么。

1.安装最新版本的PlayOnLinux。

今天它是4.2.2(也用4.2.5测试)

它可以通过downloading from official site完成,或者这样做:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E0F72778C4676186

添加ppa并安装。

sudo wget http://deb.playonlinux.com/playonlinux_saucy.list -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update
sudo apt-get install playonlinux

2.从official Blizzard site下载暗黑破坏神3客户端


3.使用PlayOnLinux安装暗黑破坏神3

执行playonlinux,单击Install按钮。

nvidia,games,ubuntu

搜索暗黑破坏神3,然后单击安装。

nvidia,games,ubuntu

然后选择setup file from my computer,并选择您在步骤2中下载的文件。

nvidia,games,ubuntu

现在像往常一样安装暗黑破坏神3,登录battle.net并下载D3游戏。

PlayOnLinux将自动下载葡萄酒并自行配置。

我不知道为什么,但我只有在三维时间才能成功。我在第3步做了同样的事情。但它崩溃了2次。第一次安装暗黑破坏神3客户端时,它已加载但无法连接到battle.net。我只是删除了所有内容并再次执行了第3步

在进入第4步之前,尝试启动暗黑破坏神3.如果它可以正常播放但图形质量较低 – 请转到下一步。


4.安装并配置大黄蜂

现在,D3成功安装后,您需要向PlayOnLinux解释才能使用您的图形卡。就我而言,它是GeForce GT 620M。什么是bumblebee

Many recent notebooks with a discrete nVidia card in it and an i3/i5/i7 processor use the nVidia Optimus technology to improve battery life. Unfortunately, this software solution is only available in Windows 7 and later.

The Bumblebee Project is a set of tools developed by people aiming to provide Optimus support under Linux (legacy nVidia hybrid graphics is supported too) while waiting for kernel and drivers to support these notebooks

我们将使用util primusrun运行我们的D3支持nvidia卡。要安装大黄蜂和primus,请执行此操作。

sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install bumblebee bumblebee-nvidia primus

64位:您还需要安装”primus-libs-ia32:i386″包:

sudo apt-get install primus-libs-ia32:i386

要为您配置bumblebee视频卡检查this


5.检查大黄蜂

vblank_mode=0 primusrun glxspheres64

或32位

vblank_mode=0 primusrun glxspheres

它应该给你大于或等于120 fps。

作为替代品,您可以使用

optirun glxspheres.

由于primusrun在暗黑破坏神3中有稳定的fps,但仍然是滞后的,我更喜欢optirun而不是primusrun。


6.使用primusrun运行D3

在第3步之后,PlayOnLinux应该将Diablo3启动图标添加到您的桌面。如果它不只是自己在~/Desktop文件夹中创建它。称之为“暗黑破坏神III.desktop”。用你的编辑打开。它应该如下所示:

[Desktop Entry]
Encoding=UTF-8
Name=Diablo III
Comment=PlayOnLinux
Type=Application
Exec=primusrun /usr/share/playonlinux/playonlinux --run "Diablo III" %F
Icon=/home/c0rp/.PlayOnLinux//icones/full_size/Diablo III
Name[fr_FR]=Diablo III
StartupWMClass=Diablo III Launcher.exe
Categories=

请注意,我更改了Exec。它只是/usr/share/playonlinux/playonlinux --run "Diablo III" %F。我添加了primusrun以获得我的视频卡可以提供的最佳图形。

7.解决问题。

我的解决方案也有问题。游戏总是以800×600配置开始。我在主目录中找到了配置文件。 /$HOME/Diablo III/有一个文件D3Prefs.txt,我把我的决议放在:

DisplayModeWinWidth "1400"
DisplayModeWinHeight "1050"
DisplayModeUIOptWidth "1920"
DisplayModeUIOptHeight "1080"
DisplayModeWidth "1920"
DisplayModeHeight "1080"

感谢所有之前做过这件事的人,我在互联网上找到了所有东西。这里是我使用的链接:

次佳解决思路

对于那些使用playonlinux玩暗黑破坏神III有问题的人。

另一种方法是将D3安装到Windows 8.1虚拟机。

1.转到official site并下载vmplayer,对我来说它是VMware-Player-6.0.1-1379776.x86_64.bundle

让它可执行

chmod +x VMware-Player-6.0.1-1379776.x86_64.bundle

并安装运行此捆绑包文件

sudo sh VMware-Player-6.0.1-1379776.x86_64.bundle

2.下载并安装Windows 8.1映像。

在某处获取最新的Windows 8.1映像。

运行vmplayer。选择Create a New Virtual Machine

nvidia,games,ubuntu

然后选择Use ISO Image并选择下载的W8.1图像。

nvidia,games,ubuntu

像往常一样安装Windows。安装电源关闭虚拟机后,转到虚拟机设置,然后检查W8.1的3D加速是否已打开。

nvidia,games,ubuntu

打开virtual machine的电源


3.解决警告Hardware graphics acceleration is not available

如果您没有看到此消息,请跳过此步骤。

推迟你virtual machine。转到$HOME/vmware/you_windows_install_folder,对我来说是/home/c0rp/vmware/Windows 8 x64/。找到文件* .vmx,使用任何编辑器打开它,然后添加以下行:

mks.gl.allowBlacklistedDrivers = TRUE

还下载libtxc库:

sudo apt-get install libtxc-dxtn-s2tc0

运行虚拟机并检查警告是否消失。


4.增加SVGA VRAM大小

推迟你virtual machine。转到$HOME/vmware/you_windows_install_folder,对我来说是/home/c0rp/vmware/Windows 8 x64/。找到文件* .vmx,使用任何编辑器打开它,然后添加以下行:

svga.vramSize = 1073741824

我的显卡有1G vram,这就是我添加svga.vramSize = 1073741824,1073741824字节= 1 GB的原因。根据您的图形卡更改此值。

启动virtual machine并检查一切正常。按Win + R,输入dxdiag并按Run。转到“显示”选项卡,检查它是否足够vram。


5.安装暗黑破坏神III。

转到official site,下载Diablo III客户端。安装它,然后运行。如果它运行没有任何问题,享受!


6.黑屏问题。

如果您按PLAY,并且只看到白色空白屏幕,则杀死暗黑破坏神III,然后退出battle.net客户端。转到您的主文件夹C:\Users\user_name\Documents\Diablo III,找到文件D3Prefs.txt,打开它。将参数DisplayModeWindowMode从”0″更改为”1″。或者,如果此参数不存在,只需将其添加到文件末尾:

DisplayModeWindowMode “1”

感谢所有之前做过这件事的人,我在互联网上找到了所有东西。这里是我使用的链接:

How to fix 3D Acceleration problem

Blank screen issue

Work-around for Unsupported Graphics Cards

Windows 8 under vmware player better graphics performance possible

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/1735.html,未经允许,请勿转载。