顯示具有 game 標籤的文章。 顯示所有文章
顯示具有 game 標籤的文章。 顯示所有文章

在新的X server開啟wine遊戲

在25期的Full Circle雜誌有提到在第二個X server玩wine模擬的遊戲可以得到比較流暢的執行速度。方法為

一、設定允許開啟另一個X伺服器(Ubuntu預設是用戶不能開啟):

sudo gedit /etc/X11/Xwrapper.config (man Xwrapper.config察看相關資訊)

將"allowed_users=console"改成"allowed_users=anybody"

儲存然後離開

二、寫shell Script將執行自動化:

FIFA08遊戲範例:
####################################################################

#!/bin/bash
X :2 -ac -terminate & nvidia-settings --load-config-only & sleep 2
DISPLAY=:2 nice -20 env WINEPREFIX="/home/vinci/.wine" WINEDEBUG=-all wine "C:\Program Files\EA Sports\FIFA 08\FIFA08.exe"

####################################################################
1.終端機執行X -help 可查詢相關參數

解決wine模擬FIFA遊戲的手把問題

由於wine可以在linux下面玩windows的遊戲,剛好FIFA所出的一系列足球遊戲可以執行,於是買了一支Logitech Dual Action的手把,想要好好來大幹一場。無耐linux就是linux
免費開源軟體背後的意義就是出了問題就要自己解決,就當作是提升實力的一種。
剛買來的手把,說是可以完美支援遊戲的,但是在linux下面就不是這麼一回事。插上電腦後在linux下面測試完全沒有問題,但是只要我玩FIFA遊戲,右邊的蘑菇頭就是沒有辦法使用。上網找了一堆資料,但是就是沒有人的問題像我一樣。後來我無意間發現了解決的方法(我也不知道為什麼會想到...)

我修改了遊戲安裝目錄裏面的\EA Sports\FIFA 08\deta\devdata.dat
這個文件,原來FIFA遊戲把我的羅技搖桿看成是預設的搖桿了。難怪我蘑菇頭怎麼推就是推不出特殊動作

於是我搜尋了Logitech Dual Action的字串,把裡面數字部份的按鍵設定複製起來
From 沒有標題的相簿


再來搜尋Default Pad並且取代原有的按鍵設定內容。
From 沒有標題的相簿


儲存後把devdate.dat的檔案複製到遊戲在我的文件下自動生出的FIFA 08資料夾裏面還有個user的資料夾

完成!
PS:不知道其他廠牌的搖桿能不能用這樣的方法...

####################################################################
附上數字代表的意義:
The line
DEADZONES=0.3,0.3,0.3
defines the sensibility of the gamepad and usually you can keep the default values without problems.

The blue stream is used for navigating the menu. The green stream is used for playing. The Red one I don’t know. There is not any reason to have them different, so you can replicate the same stream three times

Now let’s go to see the stream structure, they are triplets of numbers separated by commas. The numbers themselves are separated by vertical bars. The 2nd and 3rd number of each triplet identify a special function in the game as described in the following table.

Standard key Function 2nd and 3rd number
W Through Ball \GK Charge 0|2
D Shoot\Conservative tackle 1|2
S Pass\Switch Player 2|2
A Cross\Long pass\Sliding tackle 3|2
Escape Escape 8|2
5 numericpad Change mentality 9|2
Q Trigger run 10|2
Z Cancel\Dummy move 11|2
Unknown 12|2
E Sprint 13|2
C Pace control\Walk defense 14|2
Shift First touch 15|2

Arrows
Left joystick Movements 20|3
21|4
22|5
23|6

Shift Arrows
Right joystick First touch\free style movements 24|3
25|4
26|5
27|6

Numeric Pad
Digital pad Tactic selector 16|19
1720
18|21
19|22

The first number of each triplet is the “identifier” of a control on your gamepad. Changing the first number of a triplet you change the control assigned to a specific function.
Unfotunately the control “identifier” is not a standard and so the only way to proceed to try.

Let’s see an example
2|24|3, Assigns axes 2 and 5 to “first touch movements”

2|25|4,
5|26|5,
5|27|6,

1|22|5, Assigns axes 0 and 1 to “movements”
1|23|6,
0|20|3,
0|21|4,

0|18|21, Assigns pad 0 “Tactic selector”
0|19|22,
0|16|19,
0|17|20,

0|2|2, Assign key 0 to Pass\Switch Player
1|0|2, Assign key 1 to Through Ball \GK Charge
2|3|2, Assign key 2 to Cross\Long pass\Sliding tackle
3|1|2, Assign key 3 to Shoot\Conservative tackle
4|10|2, Assign key 4 to Trigger run
5|13|2, Assign key 5 to Sprint
6|11|2, Assign key 6 to Cancel\Dummy move
7|14|2, Assign key 7 to Pace control\Walk defense
9|8|2, Assign key 9 to Escape
8|9|2, Assign key 8 to Change mentality
10|12|2, Assign key 10 to Unknown
11|15|2 Assign key 11 to First touch

Cedega7.3 in Ubuntu9.04

直接安裝deb時會顯示缺少python2.4-dbus
但是源裡面卻沒有這套件,於是在ubuntu fourm

CD into the place that cedega is in and run:
$mkdir -p cedega_000133_all/DEBIAN
This will create an "all folder."
Then simply run all of these:
$ar p cedega_000133_all.deb data.tar.gz | tar zx -C cedega_000133_all/
$ar p cedega_000133_all.deb control.tar.gz | tar zx -C cedega_000133_all/DEBIAN/
$mv cedega_000133_all.deb cedega_000133_all.prerebuild.deb
$perl -pi -e 's/python2.4-dbus/python-dbus/' cedega_000133_all/DEBIAN/control
$dpkg-deb --build cedega_000133_all
$rm -rf cedega_000133_all
$sudo dpkg -i cedega_000133_all.deb

[遊戲] 使用apt-get安裝最新版的flightgear

Flightgear大家應該都有聽過吧 這是linux上面少數跨平台,而且品質達到商業水準的飛行模擬遊戲

而且現在還在持續更新當中,不過ubuntu中的源實在是太老了,官方網站都已經更新到1.9.1的版本

源裡面卻還是停留在1.0.0

雖然flightgear的官方網站有提供deb下載,但是要一個一個檔案下載安裝的話實在是不符合我們懶人的個性

所以我就試著把官方網站提供軟體的網址用在apt上面,沒有想到被我歪打正著,以下就是我試出的apt源。

雖然是intrepid的,但是最新的jaunty還是可以安裝的。

#flightgear
deb http://www.proformatique.org/deb intrepid main


以下是從官方抓來的圖片













PS:
下載下來的地圖檔解壓縮
把Object與Terran放到~/.fgfs/Scenery/
把Airport放到~/.fgfs/ (index覆蓋沒有關係)
然後使用fgrun來設定地圖檔的資料夾位置
新增/usr/share/games/Flightgear/Scenery 和 ~/.fgfs/Scenery 以及 ~/.fgfs/Airport

PS:
新抓下來的飛機解壓縮後把檔案放到/usr/share/games/Flightgear/Aircraft

TA Spring ~ RTS on linux

中文的wiki




套件庫加入
deb http://ppa.launchpad.net/spring/ubuntu hardy main
deb-src http://ppa.launchpad.net/spring/ubuntu hardy main


有很多MOD,和真實MAPs可以玩:下載網站 SpringFiles, Unknown-Files.net


新下載的LuaUI放在~/spring/LuaUI/Widgets
推薦ICEUI(這裡可以找到)

下載下來的replay放在~/spring/demo
播放之前要確定有需要的mod和map

如過要玩 *A 的mod要確定~/sprin/base
中有沒有base-ota-content.zip解壓縮出來的3個檔案(otacontent.sdz , tacontent_v2.sdz , tatextures_v062.sdz)

最近在英文論壇
看到有新的CA mod的下載方法,用CAInstaller


deb http://ppa.launchpad.net/spring/ubuntu hardy main
deb-src http://ppa.launchpad.net/spring/ubuntu hardy main

加入套件庫並且安裝CAInstaller就可以安裝最新版的CA模組stable & test(test的模組有chicken怪怪生物當AI bot的單人遊戲)

[遊戲] Thunder&Lightning --3D模擬空戰

網站







在Ubuntu下,把 .../TnL/lib/libiovmall.so 聯結到/usr/lib
然後執行 .../TnL/bin/tnl

[遊戲] 足球經理Linux

TOS 是多人玩的足球模擬遊戲,也可以當作足球經理玩,還可以當作足球教學

You can view a demo game replay right here at TOS REPLAY APPLET. (Sun Java 1.5.* plug in required)

For educational use, please take a look at the TOS tutorial presentation. tos.ppt

下載

[遊戲] 華麗3D的RTS : Warzone2100

for ubuntu: 下載

[遊戲] 卡丁車Linux版本

下載比較模擬真實的卡丁車

ps:執行的時候會說找不到libfmod-3.61.so, 所以先到這找FMOD xxx Programmers API的Linux版下載,注意檔案只有800多KB而已!!!

然後解壓縮,進入它的API資料夾,然後把libfmod-xxx.so改成libfmod-3.61.so
接著把檔案丟到/usr/lib 就可以玩了!!!