Difference between revisions of "Steam (简体中文)"
(→Native Steam on Linux) |
(→Linux下的原生Steam客户端: In Official repo.) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | [[Category:Gaming]] | + | [[Category:Gaming (简体中文)]] |
− | [[Category:Wine]] | + | [[Category:Wine (简体中文)]] |
[[en:Steam]] | [[en:Steam]] | ||
[[ja:Steam]] | [[ja:Steam]] | ||
Line 6: | Line 6: | ||
{{Article summary start}} | {{Article summary start}} | ||
{{Article summary text|[http://store.steampowered.com/about/ Steam] is a content delivery system made by Valve Software. It is best known as the platform needed to play Source Engine games (e.g. Half-Life 2, Counter-Strike). Today it offers many games from many other developers.}} | {{Article summary text|[http://store.steampowered.com/about/ Steam] is a content delivery system made by Valve Software. It is best known as the platform needed to play Source Engine games (e.g. Half-Life 2, Counter-Strike). Today it offers many games from many other developers.}} | ||
− | |||
{{Article summary heading|Related}} | {{Article summary heading|Related}} | ||
{{Article summary wiki|Wine}} | {{Article summary wiki|Wine}} | ||
{{Article summary end}} | {{Article summary end}} | ||
− | + | {{Translateme (简体中文)}} | |
See the [[Wikipedia:Steam_(software)|project Wiki page]] and the page in the [http://appdb.winehq.org/objectManager.php?sClass=version&iId=19444 Application Database] for more info. | See the [[Wikipedia:Steam_(software)|project Wiki page]] and the page in the [http://appdb.winehq.org/objectManager.php?sClass=version&iId=19444 Application Database] for more info. | ||
Line 21: | Line 20: | ||
{{注意|由于Steam客户端是个32位程序,用户需要在pacman中开启 [[Multilib]] 软件源。 '''如果你的系统是纯64位的话'''。 有可能还需要安装一些multilib-devel软件包来提供重要的multilib库。此外,还需要安装显卡的32位版本才能运行Steam。}} | {{注意|由于Steam客户端是个32位程序,用户需要在pacman中开启 [[Multilib]] 软件源。 '''如果你的系统是纯64位的话'''。 有可能还需要安装一些multilib-devel软件包来提供重要的multilib库。此外,还需要安装显卡的32位版本才能运行Steam。}} | ||
− | 从 | + | 从 [[Arch User Repository (简体中文) | AUR]] 源中安装 {{aur|steam}}。 |
(目前Steam的许可证使得它不能进入 community/multilib 源, 详见 [https://mailman.archlinux.org/pipermail/arch-dev-public/2012-November/024046.html mailing list thread]) | (目前Steam的许可证使得它不能进入 community/multilib 源, 详见 [https://mailman.archlinux.org/pipermail/arch-dev-public/2012-November/024046.html mailing list thread]) | ||
Line 27: | Line 26: | ||
即使你不在内测名单内,也可以通过在浏览器 或者 终端 中输入{{ic|steam://open/games}}来启动Steam。 | 即使你不在内测名单内,也可以通过在浏览器 或者 终端 中输入{{ic|steam://open/games}}来启动Steam。 | ||
+ | |||
+ | 从[[multilib]]安装{{Pkg|steam}}。Steam大量使用Arial字体,例如{{Pkg|ttf-liberation}}或者微软的{{aur|ttf-microsoft-arial}} 或 {{aur|ttf-ms-fonts}},可以从[[AUR]]安装。亚洲语言建议使用{{Pkg|wqy-zenhei}}。 | ||
===Fixes/Bugs/Error Messages=== | ===Fixes/Bugs/Error Messages=== | ||
− | Steam 目前还在 ''测试中(beta)'' 而且在Arch发行版上 '''不是官方支持''' | + | Steam 目前还在 ''测试中(beta)'' 而且在Arch发行版上 '''不是官方支持'''。所以有些问题需要用户端自行解决。有些游戏可能会需要系统上未安装的依赖。 如果有游戏启动失败(通常都没有错误信息),那么请确认以下列出的依赖已经安装了。 |
+ | |||
+ | 如果你发现下面有的游戏依赖没有列出,请帮我们添加上。 | ||
− | ==== | + | ====KDE下的图形界面问题==== |
If you are using KDE and you have problems with the GUI (such as lag or random crashes) modify the compositing type to OpenGL/Raster. So don't use the XRender! | If you are using KDE and you have problems with the GUI (such as lag or random crashes) modify the compositing type to OpenGL/Raster. So don't use the XRender! | ||
− | ==== | + | ====鼠标主题不一致==== |
− | + | Steam启动时会覆盖掉 [[X11 Cursors (简体中文)|鼠标主题]]。这个问题出现在没有设置鼠标主题的Gnome 和其他 WMs/DMs。 对于Gnome,可以通过设置鼠标主题来修正。 | |
− | + | 为了解决问题,首先获得root权限,然后按照下面提示创建文件 {{ic|/usr/share/icons/default/index.theme}} (如果没有目录 {{ic|/usr/share/icons/default}} 请自行创建): | |
{{hc|/usr/share/icons/default/index.theme|<nowiki> | {{hc|/usr/share/icons/default/index.theme|<nowiki> | ||
[Icon Theme] | [Icon Theme] | ||
Line 45: | Line 48: | ||
</nowiki>}} | </nowiki>}} | ||
− | + | 注意: 请用你自己的鼠标主题替代 "Adwaita"。 | |
− | + | 或者,你可以从 [[Arch User Repository (简体中文) | AUR]] 中安装 {{AUR|gnome-cursors-fix}}。 | |
− | + | 或者还可以创建指向鼠标主题的软链接 {{ic|~/.icons/default}} , 比如: | |
mkdir -p ~/.icons | mkdir -p ~/.icons | ||
Line 88: | Line 91: | ||
====Harvest: Massive Encounter==== | ====Harvest: Massive Encounter==== | ||
=====Dependencies===== | =====Dependencies===== | ||
− | {{ | + | {{注意|目前有一些依赖包连AUR里也没有:(}} |
* libstdc++6 | * libstdc++6 | ||
* libc6 | * libc6 | ||
Line 98: | Line 101: | ||
====Killing Floor==== | ====Killing Floor==== | ||
− | ===== | + | =====疑难问题===== |
− | ====== | + | ======屏幕分辨率====== |
− | Killing | + | Killing Floor的默认分辨率是'''800x600''' 和 '''4:3'''屏幕纵横比,你可能需要自行改变分辨率。 |
− | + | 但是如果你在游戏中尝试改分辨率,这会使你的桌面环境崩溃。所以,你需要手动修改Killing Floor游戏的配置文件{{ic|~/.killingfloor/System/KillingFloor.ini}} | |
− | + | ||
{{hc|# nano ~/.killingfloor/System/KillingFloor.ini|<nowiki> | {{hc|# nano ~/.killingfloor/System/KillingFloor.ini|<nowiki> | ||
... | ... | ||
Line 126: | Line 129: | ||
... | ... | ||
</nowiki>}} | </nowiki>}} | ||
− | {{ | + | {{注意|用你自己的屏幕分辨率来代替 '''????'''。比如说,如果你的分辨率是 1366x768,把所有的'''ViewportX=800''' 改成 '''ViewportX=1366''',再把所有的'''ViewportY=600''' 改成'''ViewportY=768'''。}} |
− | {{ | + | {{注意| 改变分辨率只要改这12行就行了,别的请不要随意更改。}} |
− | + | 保存文件并重新开启游戏,现在分辨率应该是正常的了。 | |
− | ====== | + | ====== 窗口模式 ====== |
− | + | 在选项菜单中取消选中"全屏"(fullscreen),然后按下快捷键Ctrl-G来阻止游戏窗口的鼠标独占。然后你就可以把游戏窗口随意最大化最小化或者Alt+Tab去做别的事情了。 | |
====Penumbra: Overture==== | ====Penumbra: Overture==== |
Revision as of 12:27, 12 February 2013
zh-CN:Steam Template:Article summary start Template:Article summary text Template:Article summary heading Template:Article summary wiki Template:Article summary end
See the project Wiki page and the page in the Application Database for more info.
Contents
- 1 Linux下的原生Steam客户端
- 1.1 Fixes/Bugs/Error Messages
- 1.1.1 KDE下的图形界面问题
- 1.1.2 鼠标主题不一致
- 1.1.3 Amnesia: The Dark Descent
- 1.1.4 And Yet It Moves
- 1.1.5 Harvest: Massive Encounter
- 1.1.6 Killing Floor
- 1.1.7 Penumbra: Overture
- 1.1.8 Serious Sam 3: BFE
- 1.1.9 Steel Storm: Burning Retribution
- 1.1.10 Superbrothers: Sword & Sworcery EP
- 1.1.11 Team Fortress 2
- 1.1.12 The Book of Unwritten Tales
- 1.1.13 Trine 2
- 1.1 Fixes/Bugs/Error Messages
- 2 Steam on Wine
Linux下的原生Steam客户端
从 AUR 源中安装 steamAUR。 (目前Steam的许可证使得它不能进入 community/multilib 源, 详见 mailing list thread)
Steam中使用 Arial 字体。你可以通过从 AUR 安装ttf-microsoft-arialAUR 或 ttf-ms-fontsAUR 来让它看起来漂亮点儿。
即使你不在内测名单内,也可以通过在浏览器 或者 终端 中输入steam://open/games
来启动Steam。
从multilib安装steam。Steam大量使用Arial字体,例如ttf-liberation或者微软的ttf-microsoft-arialAUR 或 ttf-ms-fontsAUR,可以从AUR安装。亚洲语言建议使用wqy-zenhei。
Fixes/Bugs/Error Messages
Steam 目前还在 测试中(beta) 而且在Arch发行版上 不是官方支持。所以有些问题需要用户端自行解决。有些游戏可能会需要系统上未安装的依赖。 如果有游戏启动失败(通常都没有错误信息),那么请确认以下列出的依赖已经安装了。
如果你发现下面有的游戏依赖没有列出,请帮我们添加上。
KDE下的图形界面问题
If you are using KDE and you have problems with the GUI (such as lag or random crashes) modify the compositing type to OpenGL/Raster. So don't use the XRender!
鼠标主题不一致
Steam启动时会覆盖掉 鼠标主题。这个问题出现在没有设置鼠标主题的Gnome 和其他 WMs/DMs。 对于Gnome,可以通过设置鼠标主题来修正。
为了解决问题,首先获得root权限,然后按照下面提示创建文件 /usr/share/icons/default/index.theme
(如果没有目录 /usr/share/icons/default
请自行创建):
/usr/share/icons/default/index.theme
[Icon Theme] Inherits=Adwaita
注意: 请用你自己的鼠标主题替代 "Adwaita"。 或者,你可以从 AUR 中安装 gnome-cursors-fixAUR。
或者还可以创建指向鼠标主题的软链接 ~/.icons/default
, 比如:
mkdir -p ~/.icons ln -sT /usr/share/icons/Neutral_Plus ~/.icons/default
If the cursor gets stuck pointing in the wrong direction after exiting Steam, a workaround is to run xsetroot -cursor_name left_ptr
(From the awesomewm wiki).
Amnesia: The Dark Descent
Dependencies
Troubleshooting
Segfault
If you are using open source drivers you will need lib32-libtxc_dxtnAUR . See oficial forum for details
Running from steam displays empty window
${install_dir}/run_steam.sh uses `arch` to check if the system is 32 or 64 bit. Replace `arch` with `uname -m`.
And Yet It Moves
Dependencies
- lib32-libtheoraAUR
- lib32-libjpeg6AUR
- lib32-libtiff4AUR
Compatibility
Game refuses to launch and following message can be observed on console
readlink: extra operand ‘Yet’ Try 'readlink --help' for more information.
To fix this, open ~/.steam/root/SteamApps/common/And Yet It Moves/AndYetItMovesSteam.sh
in text editor and replace line
ayim_dir="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
with
ayim_dir="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
Harvest: Massive Encounter
Dependencies
- libstdc++6
- libc6
- libgcc1
- libgtk2.0-0
- libvorbisfiles3
- nvidia-cg-toolkit or lib32-nvidia-cg-toolkitAUR
- libjpeg6AUR or lib32-libjpeg6AUR
Killing Floor
疑难问题
屏幕分辨率
Killing Floor的默认分辨率是800x600 和 4:3屏幕纵横比,你可能需要自行改变分辨率。
但是如果你在游戏中尝试改分辨率,这会使你的桌面环境崩溃。所以,你需要手动修改Killing Floor游戏的配置文件~/.killingfloor/System/KillingFloor.ini
# nano ~/.killingfloor/System/KillingFloor.ini
... [WinDrv.WindowsClient] WindowedViewportX=???? WindowedViewportY=???? FullscreenViewportX=???? FullscreenViewportY=???? MenuViewportX=??? MenuViewportY=??? ... [SDLDrv.SDLClient] WindowedViewportX=???? WindowedViewportY=???? FullscreenViewportX=???? FullscreenViewportY=???? MenuViewportX=???? MenuViewportY=???? ...
保存文件并重新开启游戏,现在分辨率应该是正常的了。
窗口模式
在选项菜单中取消选中"全屏"(fullscreen),然后按下快捷键Ctrl-G来阻止游戏窗口的鼠标独占。然后你就可以把游戏窗口随意最大化最小化或者Alt+Tab去做别的事情了。
Penumbra: Overture
Dependencies
(Taken from penumbra-collectionAUR and penumbra-overture-ep1-demoAUR)
Troubleshooting
Segfault after intro video
The game crashes with a segfault after the intro video due to incompatibility with the version of libvorbis in [extra] (or lib32-libvorbis in [multilib] if you're on x86_64). To fix this you have to use the libvorbis.so.0 shipped with the game:
cd ~/.local/share/Steam/SteamApps/common/Penumbra\ Overture/lib cp all/libvorbis.so.0 libvorbis.so.0
After this you should be able to play.
Windowed Mode
There is no in-game option to change to the windowed mode, you will have to edit ~/.frictionalgames/Penumbra/Overture/settings.cfg
to activate it.
Find FullScreen="true"
and change it to FullScreen="false"
, after this the game should start in windowed mode.
Serious Sam 3: BFE
Dependencies
- lib32-pciutilsAUR - Useless as now SS3 uses lspci in a recent beta release (From SteamCommunity).
Steel Storm: Burning Retribution
Troubleshooting
Start with black screen
The game tries to launch in 1024x768 resolution with fullscreen mode by default. It is impossible on some devices. (for example laptop Samsung Series9 with intel hd4000 video). But you can try to launch the game in windowed mode.
Open game Properties in Steam, in General tab select "Set launch options..." and type "-window".
Then you can change a resolution in game.
No English fonts
If you use intel video card, just disable S3TC in DriConf.
Superbrothers: Sword & Sworcery EP
Dependencies
Team Fortress 2
Dependencies
Troubleshooting
No audio
It happens if there is no PulseAudio in your system.
If you want to use Alsa, you need to launch the Steam or game directly with SDL_AUDIODRIVER=alsa
(From SteamCommunity).
The Book of Unwritten Tales
Dependencies
- lib32-libxawAUR
- lib32-jasperAUR
Trine 2
Dependencies
Troubleshooting
- If colors are wrong with FOSS drivers (r600g at least), try to run the game in windowed mode, rendering will be corrected.
Steam on Wine
Install wine from the official repositories and follow the instructions provided in the article.
Install the required Microsoft fonts ttf-microsoft-tahomaAUR and ttf-ms-fontsAUR from the AUR or through winetricks-svnAUR.
If you have an old Wine prefix (~/.wine
), you should remove it and let Wine create a new one to avoid problems (you can transfer over anything you want to keep to the new Wine prefix).
Installation
Download and run the Steam installer from steampowered.com. It is no longer an .exe
file so you have to start it with msiexec
:
$ msiexec /i SteamInstall.msi
Starting Steam
On x86:
$ wine ~/.wine/drive_c/Program\ Files/Steam/Steam.exe
On x86_64 (with steam installed to a clean wine prefix):
$ wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Steam/Steam.exe
Alternatively, you may use this method:
$ wine "C:\\Program Files\\Steam\\steam.exe"
You should consider making an alias to easily start steam (and put it in your shell's rc file), example:
alias steam='wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Steam/Steam.exe >/dev/null 2>&1 &'
optirun
.Tips
Performance
Consider disabling wine debugging output by adding this to your shell rc file:
export WINEDEBUG=-all
or, just add it to your steam alias to only disable it for steam:
alias steam='WINEDEBUG=-all wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Steam/Steam.exe >/dev/null 2>&1 &'
Additionally, Source games rely on a paged pool memory size specification for audio, and WINE by default does not have this set. To set it:
wine reg add "HKLM\\System\\CurrentControlSet\\Control\\Session Manager\\Memory Management\\" /v PagedPoolSize /t REG_DWORD /d 402653184 /f
Application Launch Options
Go to "Properties" -> "Set Launch Options", e.g.:
-console -dxlevel 90 -width 1280 -height 1024
-
console
Activate the console in the application to change detailed applications settings.
-
dxlevel
Set the application's DirectX level, e.g. 90 for DirectX Version 9.0. It is recommended to use the video card's DirectX version to prevent crashes. See the official Valve Software Wiki http://developer.valvesoftware.com/wiki/DirectX_Versions for details.
-
width
andheight
Set the screen resolution. In some cases the graphic settings are not saved in the application and the applications always starts in the default resolution. Please refer to http://developer.valvesoftware.com/wiki/Launch_options for a complete list of launch options.
Using a Pre-Existing Steam Install
If you have a shared drive with Windows, or already have a Steam installation somewhere else, you can simply symlink the Steam directory to ~/.wine/drive_c/Program Files/Steam/
. However, be sure to do all the previous steps in this wiki. Confirm Steam launches and logs into your account, then do this:
cd ~/.wine/drive_c/Program\ Files/ mv Steam/ Steam.backup/ (or you can just delete the directory) ln -s /mnt/windows_partition/Program\ Files/Steam/
steamapps
subdirectory in your existing wine steam folder instead.Running Steam in a second X Server
Assuming you are using the script above to start Steam, make a new script, called x.steam.sh
. You should run this when you want to start Steam in a new X server, and steam.sh
if you want Steam to start in the current X server.
If due to misconfiguration a black screen is shown, you could always close down the second X server by pressing Template:Keypress + Template:Keypress + Template:Keypress.
#!/bin/bash DISPLAY=:1.0 xinit $HOME/steam.sh $* -- :1
Now you can use Template:Keypress + Template:Keypress + Template:Keypress to get to your first X server with your normal desktop, and Template:Keypress + Template:Keypress + Template:Keypress to go back to your game.
Because the second X server is only running the game and the first X server with all your programs is backgrounded, performance should increase. In addition, it is much more convenient to switch X servers while in game to access other resources, rather than having to exit the game completely or Template:Keypress-Template:Keypress out. Finally, it is useful for when Steam or WINE goes haywire and leaves a bunch of processes in memory after Steam crashes. Simply Template:Keypress + Template:Keypress + Template:Keypress on the second X server to kill that X and all processes on that desktop will terminate as well.
If you get errors that look like "Xlib: connection to ":1.0" refused by server" when starting the second X: You will need to adjust your X permissions.
If you lose the ability to use the keyboard while using Steam: This is an odd bug that does not happen with other games. A solution is to use a WM in the second X as well. Thankfully, you do not need to run a large WM. Openbox and icewm have been confirmed to fix this bug (evilwm, pekwm, lwm do not work), but the icewm taskbar shows up on the bottom of the game, thus it's recommended to use Openbox. Install openbox from the official repositories, then add openbox &
to the top of your steam.sh
file. Note you can run other programs (ex. Teamspeak &) or set X settings (ex. xset, xmodmap) before the WINE call as well.
Steam Links in Firefox, Chrome, Etc
To make steam:// urls in your browser connect with steam in wine, there are several things you can do. One involves making steam url-handler keys in gconf, another involves making protocol files for kde, others involve tinkering with desktop files or the Local State file for chromium. These seem to only work in firefox or under certain desktop configurations. One way to do it that works more globally is using mimeo, a tool made by Xyne (an Arch TU) which follows. For another working and less invasive (but firefox-only) way, see the first post here .
- Make
/usr/bin/steam
with your favorite editor and paste:
#!/bin/sh # # Steam wrapper script # exec wine "c:\\program files\\steam\\steam.exe" "$@"
- Make it executable.
# chmod +x /usr/bin/steam
- Install mimeoAUR and xdg-utils-mimeoAUR from AUR. You will need to replace the existing xdg-utils if installed. In XFCE, you will also need xorg-utils.
- Create
~/.config/mimeo.conf
with your favorite editor and paste:
/usr/bin/steam %u ^steam://
- Lastly, open
/usr/bin/xdg-open
in your favorite editor. Go to thedetectDE()
section and change it to look as follows:
detectDE() { #if [ x"$KDE_FULL_SESSION" = x"true" ]; then DE=kde; #elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome; #elif `dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.GetNameOwner string:org.gnome.SessionManager > /dev/null 2>&1` ; then DE=gnome; #elif xprop -root _DT_SAVE_MODE 2> /dev/null | grep ' = \"xfce4\"$' >/dev/null 2>&1; then DE=xfce; #elif [ x"$DESKTOP_SESSION" == x"LXDE" ]; then DE=lxde; #else DE="" #fi DE="" }
- Restart the browser and you should be good to go. In chromium, you cannot enter a
steam://
link in the url box like you can with firefox. The forum link above has asteam://open/friends
link to try if needed.
/usr/bin/xdg-open
.No text rendered problem
If there is no text/font rendered when starting steam you should try to start steam with the parameter -no-dwrite
. Read more in the forum thread about it.
wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Steam/Steam.exe -no-dwrite