Windows 平台

目的: 架設 FTP Server, 透過 FTP service 分享 C:\Windows\system32 目錄, 讓 Linux 取用 DirectX 相關檔案

Step 1: 開始 → 執行 → dxdiag 啟動 DirectX 診斷工具, 查看是否為 DirectX 9.0c 版本

Step 2: 安裝 zFTPServer

Step 3: 執行 zFTPServer Administration, 連入本機 3145 port

Step 4: 設定 → 帳號設定

Step 5: 使用者名稱 → 新增使用者, 設定如下:

使用者名稱: directx
密碼: directx
加入實體資源: C:\Windows\system32

Linux 平台 (Fedora 7)

目的: 於 Wine 環境中安裝 DirectX 9.0c, 執行支援 DirectX 的電腦遊戲 (GTA2)

Step 1: 安裝 Wine

yum -y install wine* cabextract

Step 2: Alt-F2 → gnome-terminalwinecfg → Libraries → New override for library: d3d8 → Add → OK

Step 3: 編輯 ~/.wine/user.reg, 找到 [Software\\Wine\\DllOverrides] 這行, 加入以下內容:

ps. 原本存在的 "d3d8" 亦以上述內容取代

Step 4: 從 Windows 系統取得 mscoree.dll、streamci.dll 以及下列檔案:

cd ~/.wine/drive_c/windows/system32

ftp your.windows.host

ftp> get mscoree.dll
ftp> get streamci.dll
ftp> get d3dim.dll
ftp> ...
ftp> bye

Step 5: 安裝 DirectX 9.0c

mkdir /tmp/directx90c

#解包到 z:\tmp\directx90c
wine directx_nov2007_redist.exe

#安裝 DirectX
cd /tmp/directx90c
wine DXSETUP.exe

Step 6: 執行 DirectX 診斷工具

wine dxdiag.exe

  • 若 "DirectX 檔案" 項目中出現缺少檔案的情況, 直接從 Windows 電腦下載補齊即可
  • dxapi.sys 與 gm.dls (gm.dls 是給 DirectMusic 用的) 位於 C:\Windows\system32\drivers
  • ddraw, d3d8, d3d9 這三個要使用 "builtin", 雖然 DirectX 診斷工具會出現這些檔案是 "舊版本" 的警告訊息

Step 7: 下載並安裝 GTA2

Step 8: 執行 GTA2

從 Gnome 選單啟動:

應用程式 → Wine → Programs → Rockstar Games → GTA2 → GTA2 Manager

手動啟動:

Alt-F2 → gnome-terminalcd ~/.wine/drive_c/Program\ Files/Rockstar\ Games/GTA2wine gta2\ manager.exe


Asus S5N (Pentium M 1.4G, 256MB RAM, Intel 82852/855GM VGA Chipset) 實測結果

最佳設定

  • winecfg → Graphics → 不啟用 Emulate a virtual desktop (虛擬桌面)
  • GTA2 manager 設定使用 640x480 window

雖然片頭動畫破碎移位, 但遊戲畫面正常, 可正常操作, 只是一切都很慢...


參考資料

arrow
arrow
    全站熱搜

    安德森 發表在 痞客邦 留言(0) 人氣()