Steam (日本語)

From ArchWiki
Revision as of 08:55, 15 November 2012 by Kusakata (Talk | contribs) (Created page with "Category:Gaming (日本語) Category:Wine (日本語) {{Article summary start|概要}} {{Article summary text|[http://store.steampowered.com/about/ Steam]はValve Soft...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
概要 help replacing me
SteamはValve Softwareによるコンテンツ配信システムです。Source Engineで作られたゲーム(Half-Life 2, Counter-Strikeなど)をプレイするためのプラットフォームとして知られています。今日では多くのデベロッパからゲームが提供されています。
関連項目
Wine

project Wiki pageApplication Databaseのページにより多くの情報があります。

ネイティブクライアント

Note: 現在ではベータ版が一部の人に提供されています。Arch Linuxは公式にはサポートされていません
Note: いくつかのゲームは追加の依存パッケージが必要です。
Note: Steamクライアントは32ビットアプリケーションなので、もし純粋な64ビット環境のインストールをする際には、pacmanのMultilibを有効にする必要があります。またmultilibライブラリのためにmultilib-develのインストールをしてください。

community/multilibからsteamをインストールできます。

プライベートベータ版ではまだできませんが、steamのURL steam://open/games からも起動できます。ウェブブラウザか、端末からurlを起動できます。

フィックス/バグ/エラーメッセージ

Steamはベータ版でありArch Linuxはサポートされていません。正確に動かすにはユーザー側でいくつかの修正が必要になります。いくつかのゲームでは依存が見つからない可能性もあります。ゲームが起動に失敗した(ほとんどの場合エラーメッセージを出力しません)時は、ゲームに必要なライブラリ全てがインストールされているか確認してください(下のリストは未完成です)。

Mouse Cursor Overwritten

Steamは起動時にX11 Cursor themeを上書きします。Gnomeや他のWM/DMではカーソルテーマを設定しないという問題があります。マウスカーソルテーマを設定して上書きできます。

この問題を解決するには、rootになって/usr/share/icons/default/index.themeに次のように加えて下さい(必要なら/usr/share/icons/defaultディレクトリを作ります):

/usr/share/icons/default/index.theme
[Icon Theme]
Inherits=Adwaita

Note: "Adwaita"の代わりに、他のカーソルテーマを選べます(Humanなど)。 もしくは、AURからgnome-cursors-fixAURをインストールすることでも修正できます。

他のWM/DMを使っている場合、カーソルテーマを設定する他の方法が必要かもしれません。

Steam起動後、カーソルが明後日の方向に動くときの解決方法はxsetroot -cursor_name left_ptrです(the awesomewm wikiより)。

And Yet It Moves

Dependencies
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]}")")"

Superbrothers: Sword & Sworcery EP

Dependencies

Team Fortress 2

Dependencies

Amnesia: The Dark Descent

Dependencies

Serious Sam 3: BFE

Dependencies

Steel Storm: Burning Retribution

Troubleshooting
起動後ブラックアウトする

デフォルトでは、ゲームの起動は1024x768解像度のフルスクリーンモードで行われますが、これに対応していないデバイスがあります。 (例えばSamsung Series9ラップトップ with intel hd4000 video)。 ウィンドウモードで起動することで対処してください。

Steamのゲームプロパティを開き、Generalタブの"Set launch options..."を選び、"-window"と入力します。

これでゲーム中で解像度を変更できます。

No English fonts

Intelのビデオカードを使っている場合、DriConfでS3TCを無効にしてください。

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.

Note: If you have access to Windows discs, you may want to install ttf-win7-fontsAUR instead.

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 &'
Note: If you are using an nvidia card through bumblebee, you should prefix those commands with 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 and height

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/
Note: If you have trouble starting Steam after symlinking the entire Steam folder, try linking only the 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
  • Make $HOME/.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 the detectDE() 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 a steam://open/friends link to try if needed.
Note: If you have any problems with file associations after doing this, simply revert to regular xdg-utils and undo your changes to /usr/bin/xdg-open.
Note: Those on other distributions that stumble upon this page, see the link above for firefox specific instructions. No easy way to get it working on Chromium on other distros exists.

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