DDRaceNetwork

From ArchWiki

DDNet, as it is popularly known, is a sidescrolling platform game, featuring weaponry and a cooperative gameplay, and is a mod of Teeworlds. The game name comes from Dummy Drag Race Network, as it was based in DDRace.

From the official website ddnet.org:

DDraceNetwork (DDNet) is an actively maintained version of DDRace, a Teeworlds modification with a unique cooperative gameplay. Help each other play through custom maps with up to 64 players, compete against the best in international tournaments, design your own maps, or run your own server. The official servers are located in Germany, Russia, USA, Canada, China, Japan, Singapore, Chile, Brazil, South Africa and Australia. All ranks made on official servers are available worldwide and you can collect points!

You control a tee, a ball-shaped 2D character, using your keyboard and mouse to shoot, grapple hook and jump around to interact with other players and the environment in the map with the finish line as target.

The game works in a client–server model, where the user plays using a Client which connects to a local or remote Server. Since DDNet has official servers, you most likely will only start the Client and play online.

Installation

Install ddnetAUR. Alternatively, you can install its development version ddnet-gitAUR.

Play

To play DDNet, run the command

$ DDNet

or run the .desktop file provided in the package (e.g. in GNOME, search for "ddnet" in its Activities Overview)

It is very straightforward – all user configuration (skin selection, video, controls etc.) can be done from the GUI of the DDNet Client.

No server setup is required; if you want to set up a local server, see #Server.

Also, some extra tools – which you probably will not need – are available in /usr/lib/ddnet/tools/. See #Extra tools.

Gametypes

Gametypes (a.k.a game types or game modes) are different ways of playing Teeworlds-like games (DDNet included!), and different ways of exploring its resources (e.g. physics, weapons kill or just push other players, etc.).

In the main dashboard of DDNet Client, several server instances are listed (not only DDNet's), each one is launched with only one gametype. In order to play a gametype, you have to join the server instance that has the desired gametype (e.g. you want to play "ctf", you have to look for and join a "ctf" server instance)

See below a non-exhaustive list with name and an explanation of gametypes that can be found in DDNet official servers (although there are a lot more).

DDNet gametypes

These are the official DDNet gametypes, which DDNet maintains. That means these gametypes' maps are stored and made available in DDNet's maps repository. It also means that the Test Staff runs some test before the maps being added to the repository and published.

Some of these might require DDNet Client due to features (e.g. dummy tee, teaming, specific key bindings) that this client provides, but other could be played with other clients, like Teeworlds.

The goal of these maps, unless mentioned otherwise below, is to overcome obstacules and other difficulties of the map, while helping each other, in order to reach the finish line of map.

This set of gametypes consists of:

  • novice – The easiest collaborative maps can be found here. Newcomers should start here.
  • moderate – Moderate-level collaborative maps for more experienced users.
  • brutal – Hard collaborative maps for very experienced users.
  • insane – Insanely hard collaborative maps for insanely experienced users.
  • solo – Play alone the whole map, without any a dummy or any physical interaction with users (you can chat with other players, though)
  • ddmax – Maps from DDracemaX, one of the first race mod and very popular one. This project discontinued, so DDNet adopted[1] its maps and made available in official servers. See [2] for info of this gametype.
  • dummy – Move your dummy to the finish line, collaboratively or solo depending on the map.
  • oldschool – Some old maps to make long-time players nostalgic.
  • race – Reach the finish line as fast as you can in a solo run.
Note: When looking at the server list of the client dashboard, you may notice that all DDNet server instances have Type column as DDRace, and the server instance's name will include the gametype listed above, e.g. "DDNet GER - DDmaX [DDRaceNetwork]"

Vanilla gametypes

The so-called vanilla gametypes are the first ones, and were created in Teeworlds, and which DDNet supports. This set of gametypes include:

  • dm (deathmatch) – The goal is to kill as many players as possible until you reach the death or time limit. The match is over as soon as one of the conditions is met, and the winner is the player that accumulated the greatest number of kills.
  • tdm (team deathmatch) – Same as Deathmatch above, except that the players are organized into two teams, with each team having its own kill count.
  • ctf (capture the flag) – Two teams each have a flag (red for red team and blue for blue team) and the objective is to capture the other team's flag, located at the team's "base," and bring it safely back to their own base until reach a certain score or the time runs out. Kill the enemy to avoid having your flag captured or to get the flag back to your team's base.

Blocker gametype

Note: You will find it with type ddrace, but the server title and map name can be easily identified as Blocker

Blocker has as only target to block other players, which means to fool around throwing into freeze areas. There is no score or time limit in this type of game, or at least it does not matter.

Please notice that while being a blocker is expected in the blocker gametype, the same does not apply to #DDNet gametypes – in this last case it is rude and you most likely will be banned by vote of others.

FNG-like gametypes

Types noteworthy: fng (discontinued, incompatible), openfng (thread), fng2 (source).

In this gametype, the players are divided in 2 teams and the target is to win by making more points. You will points by hitting the player with hammer or laser gun (the only weapons available), which will cause freeze, and to throwing into the spikes.

Configuration

Configurations are stored in plain text files in the user's home directory and can be applied in the GUI options or in the embedded console. See more information below on this topic.

File and directory for user settings

The directory $HOME/.teeworlds/ stores user configuration, demos, screenshots downloaded maps and other user contents.

settings_ddnet.cfg is where user's configuration is stored, in a simple text format in a proper syntax. This file is loaded by the Client on startup, and updated when exiting. Therefore, you are not required to set your settings manually in the configuration file. For all supported client settings, see Client Settings.

The subdirectory downloadedmaps/ will store maps downloaded in runtime by DDNet Client when connecting to server instances, if the maps are not available already.

Tip: With ddnet-maps-gitAUR installed, you avoid having to download maps while connecting to server instances

Optional skins

You can choose between many skins to play with a fancy tee char. However, this will not affect anything in the gameplay.

DDNet features automatic, on-demand download of tee skins. To use this feature make sure to have enabled Settings > Tee > Download skins.

Alternatively, skins can be manually download from the DDNet Skin Database and manually placed at ~/.teewords/downloadedskins to be recognized by the DDNet Client.

Tip: Consider submitting your custom skins to DDNet Skin Database so that other users can see it as well. See #info and #submit-skins channels under "Skins Submission" in DDNet Discord server.

Optional offline maps

When playing DDNet, maps are downloaded on demand (i.e. whenever you enter join a server with a map that hasn't been downloaded yet).

However, there are scenarios where need to have all DDNet maps available:

  • To play without Internet connection, using a local server
  • To serve a DDNet Server for a LAN play with friends, which local time records.

To have all playable DDNet maps available offline, install ddnet-maps-gitAUR.

Server

This article or section needs expansion.

Reason: Much more information could be added here, like specific instructions for setting up, NAT forwarding etc. (Discuss in Talk:DDRaceNetwork)

Although a local DDNet server is not required for playing DDNet (See #Play), one may want to run it for playing without Internet connection, want to avoid high latency ("ping" in the game interface) of servers on the Internet, simply want to test features, etc.

There are two methods for starting a DDNet server: via the client's main menu and via systemd service.

For more info, see Server Features, Server Settings, Server Commands, and much more in DDNet Forums.

Tip: Consider to install DDNet maps and configurations for an easy server setup.

Server via the client's main menu

On DDNet client startup, press Run server button. Now press Play button and browse the LAN tab for your local server.

This is the easiest option for playing by yourself (with your dummy) or for testing a map that you created/edited.

Server via systemd service

Start (optionally, enable as well) ddnet-server.service systemd unit file. Now, in the DDNet Client, press Play button and browse the LAN tab for your local server.

This unit file runs the server instance as the system user ddnet from its home folder /var/lib/ddnet/ as working directory, having log messages available in /var/lib/ddnet/autoexec_server.log file and via systemd journal command-line journactl -u ddnet-server.

This option is could be better for playing with friends or running a server-only instance global wide, as it excludes the need for firing up the DDNet Client.

MySQL support

The DDNet packages have MySQL/MariaDB support enabled. This allows you store records achieved in a local server.

In case you want to disable MySQL support on buildtime, edit the DDNet package's PKGBUILD by setting the -DMYSQL to OFF, and remove the dependency mariadb-libs.

Extra tools

DDNet packages comes with command-line tools that can be used for the propose of debugging (mostly used when developing DDNet) and mapping (mostly used when creating or improving maps for DDNet).

These tools are available in /usr/lib/ddnet/ in the DDNet packages.

See Extra tools in DDNet Wiki for a list and description of these tools.

See also