OpenTTD 是流行的 DOS 遊戲 Transport Tycoon Deluxe 的自由開源重新實現。您是運輸公司的所有者,您必須多年來對其進行管理才能獲利。
安裝
如果您沒有原版遊戲,openttd-opengfx包 和 openttd-opensfx包 包含免費圖形和聲音。
此外,你還可以安裝 openttd-openmsxAUR 來獲取免費的 OpenMSX 音樂包。請務必閱讀 Timidity#配置 以正確設置 Timidity,尤其是將自己添加到音頻組,並配置 Timidity 使用 Freepats SoundFont。
Transport Tycoon Deluxe 原始數據(可選)
OpenTTD 可以使用原始 Windows/DOS 版本的 Transport Tycoon Deluxe 的非自由圖形和聲音數據。
您可以從遊戲光碟、現有安裝文件中獲取這些文件,也可以從 Abandonia 免費提供的遊戲安裝存檔中獲取。
要使用原始圖形和音效,請將以下文件複製到 /usr/share/openttd/data/
或 ~/.openttd/baseset
:
- Windows : trg1r.grf, trgcr.grf, trghr.grf, trgir.grf, trgtr.grf
- DOS : TRG1.GRF, TRGC.GRF, TRGH.GRF, TRGI.GRF, TRGT.GRF
- sample.cat from either version
如果是原始配樂,請將原始 TTD 遊戲目錄下 gm 文件夾中的文件複製到 ~/.openttd/gm
中。
教程
遊戲一開始可能會讓人一頭霧水。 這裡的中文維基和這裡的英文維基上有很好的教程。
對於遊戲內的教程,我們已經實現了一個遊戲腳本。 只需使用遊戲內的下載管理器下載 '新手教程',然後加載 '新手教程' 場景即可。
Configuration
The OpenTTD main configuration file is located at ~/.openttd/openttd.cfg
and is automatically created upon first startup.
Various settings in the configuration file can be edited with buttons on the main menu. Each button is explained below.
Game Options
This window allows you to set options which will be used by default at the start of a new game.
You can also set the default graphics, sound, and music here.
Difficulty
This window allows you to change the difficulty of the game, and specific options about them. You can either use the difficulty presets by selecting the difficulty buttons at the top of the window, or set custom options.
More information can be found here[失效連結 2021-05-17 ⓘ].
Advanced Settings
In this window, nearly all the other settings in the configuration file can be modified. All the options are grouped in expandable sections. You can also search for the setting to be changed using the search utility.
Details about these settings can be found here[失效連結 2021-05-17 ⓘ].
AI/Game Script Settings
This window allows you to customize various options relating to artificial intelligence (bots or CPU players) and Game Scripts.
Game Scripts are a goal-based scripts which can perform many in-game actions to enhance or extend the game.
Detailed information about this window can be found here[失效連結 2021-05-17 ⓘ].
多人遊戲
客戶端
玩家可以使用多人遊戲菜單加入伺服器。在多人遊戲中,禁用快進、玩家暫停和作弊功能。
伺服器的所有問題都應由伺服器管理員來解決,通常不是 bug,只是伺服器配置錯誤。
伺服器
您可以通過 -D
參數啟動伺服器,例如
# openttd -D 0.0.0.0:3979
這將啟動伺服器並接受 附加命令。配置會生成並存儲在 ~/.config/openttd/openttd.cfg
中,每次伺服器啟動時都會讀取。在伺服器運行時,可以通過直接向伺服器發送命令來覆蓋配置。某些設置無法在遊戲中更改。
您可以創建Systemd 服務在後台運行,或者使用screen。
要公開您的伺服器,您需要一個面向公眾的伺服器,並正確設置所有埠轉發。默認埠為 3979。
提示與技巧
高度圖
OpenTTD 允許使用灰度圖像作為 高度圖來生成地形圖。terrain.party上有一個基於真實地球地形的出色的高度圖生成器。此外,您也可以使用 botherAUR 應用程式,該程序可以下載更大的區域,並包含許多用於微調生成的高度圖的選項(使用注意事項請參見 README)。您還可以使用 gimp包 對高度圖進行微調,其中的 "色階 "和 "高斯模糊 "工具尤為實用。
作弊
在本地遊戲中按下 Ctrl+Alt+c
,即可顯示作弊菜單。
有關作弊器的詳細信息,請訪問 這裡。
多人遊戲
一定要為自己的公司設置一個密碼,以免被他人接管。有些伺服器會在閒置一段時間後重置你的密碼。
如果軌道建造菜單未打開,則可使用 t
字母調出聊天。
您可以通過購買股票(如果伺服器已啟用)投資其他公司。隨後,您可以出售股票以獲取利潤,或虧損。
Troubleshooting
Music is not playing
The soundtrack of the game is made of MIDI files. Therefore, you need a MIDI synthesizer to play them.
The game will automatically try to use TiMidity++ with no additional arguments. If for some reason you need/want to use another synthesizer, OpenTTD provides the "extmidi" music driver, which allows you to configure a command to be ran to play music.
- When using the extmidi driver, the in-game volume control sliders are disabled and cannot be used to change the volume.
- If the command you want to run is not included in
$PATH
, you must specify the absolute path.
Edit your openttd.cfg to configure extmidi :
~/.openttd/openttd.cfg
[misc] musicdriver = "extmidi:cmd=<command>"
openttd -m extmidi:cmd=<command>
However, extmidi does not allow additionnal arguments in the command. The solution is to use a wrapper script:
~/.openttd/playmidi
#!/bin/bash #here, we want to use the FluidSynth synthesizer with the soundfont #provided in soundfont-fluid包 and PulseAudio trap "pkill fluidsynth" EXIT fluidsynth -a pulseaudio -i /usr/share/soundfonts/FluidR3_GM2-2.sf2 $*
Mark it as executable.
Then you can specify the full path to the script as the command to be used with extmidi :
~/.openttd/openttd.cfg
[misc] musicdriver = "extmidi:cmd=/home/<user>/.openttd/playmidi"