Game Development Reference
In-Depth Information
Installing OpenTTD
The latest package is kept only on Jessie.
Sudo apt-get -t jessie install openttd
Several libraries will be installed during this time. You might be presented with
a blue screen, which asks you if you want to restart some services in order to
complete the package installation. It is safe to agree to this. This can take
several minutes to complete.
Configuring OpenTTD
The configuration file openttd.cfg can be found at ~/.open . It contains a few
hundred settings that you can tweak according to your preferences; but some
of the important ones are as follows:
lan_internet : This sets the condition for the LAN access. For lan0 allow
Internet and for lan1 use LAN only.
server_name : This is a unique name to identify the server on the Internet.
server_advertise : We set this to true so that it will be visible on the
server list.
server_bind_ip : We set this to 0.0.0.0 ; this allows the address to bind
to any network.
server_port: For this, we keep the default value; this is how other people
from the Internet will connect over to the network.
To allow people to connect from the Internet, you should forward the
ports 3979 and 3978 to the Pi in your router.
Start the server with the following options:
./usr/games/openttd -D
Playing OpenTTD
You can now install and run OpenTTD on other computers and invite some friends
to join you.
Click on Multiplayer , and select Internet if you have forwarded the ports for the
game. Click on find, and a list of servers will be displayed.
 
Search WWH ::




Custom Search