来自 Arch Linux 中文维基

本文或本节需要翻译。要贡献翻译,请访问简体中文翻译团队

附注: 需要翻译。(在 Talk:OpenTTD# 中讨论)

OpenTTD 是流行的 DOS 游戏 Transport Tycoon Deluxe 的自由开源重新实现。您是运输公司的所有者,您必须多年来对其进行管理才能获利。

安装

安装 openttd 包。

如果您没有原版游戏,openttd-opengfxopenttd-opensfx 包含免费图形和声音。

此外,你还可以安装 openttd-openmsxAUR 来获取免费的 OpenMSX 音乐包。请务必阅读 Timidity#配置 以正确设置 Timidity,尤其是将自己添加到音频组,并配置 Timidity 使用 Freepats SoundFont。

Transport Tycoon Deluxe 原始数据(可选)

OpenTTD 可以使用原始 Windows/DOS 版本的 Transport Tycoon Deluxe 的非自由图形和声音数据。

注意: 虽然您可以从 DOS 或 Windows 版本的游戏中转存文件,但只有 Windows 版本才提供原始音乐。

您可以从游戏光盘、现有安装文件中获取这些文件,也可以从 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

本文内容或本节内容已经过期。

原因: According to https://wiki.openttd.org/en/Archive/Manual/Settings/Advanced%20Settings the settings have been substantially re-organised (在Talk:OpenTTD讨论)

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.

注意: Settings will not be updated for games which have already been started. The options can still be changed in-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>"
注意: You can also configure extmidi when starting up the game : 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"

参见