Hosting The Dark Mod

From The DarkMod Wiki
Revision as of 16:49, 9 November 2012 by Tels (talk | contribs) (add)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

If you want to help to distribute The Dark Mod, this article offers help on what you need to do.

How it works

TDM is distributed via HTTP only.

Both tdm_update (downloads and updates the mod) and the in-game downloader (downloads and updates Fan Missions) don't support FTP, HTTP redirects, meta-refreshes or any other method. HTTPS might work, but has generally not been tried yet.


When the mod itself is updated, first tdm_mirrors.txt is downloaded. This file contains a list of mirror servers and a score, which helps balance the traffic. Here is the current list:

# This file lists mirror sites for The Dark Mod, which are used by the
# tdm_update utility to update your TDM installation.

[Mirror KeepOfMetalAndGold]
url = http://www.keepofmetalandgold.com/files/tdm/
weight = 10

[Mirror ShadowDarkKeep]
url = http://www.shadowdarkkeep.com/files/tdm/
weight = 3

[Mirror SouthQuarter]
url = http://www.southquarter.com/tdm/
weight = 6

[Mirror roggen.jmnet.us]
url = http://roggen.jmnet.us/darkmod/
weight = 4

[Mirror fidcal.com]
url = http://www.fidcal.com/darkuser/
weight = 6

[Mirror robertrueger.de]
url = http://thedarkmod.robertrueger.de/
weight = 10

[Mirror swift-mazes.com]
url = http://swift-mazes.com/mirrors/tdm/pub/release/
weight = 1

What you need

  • A server with a fast connection, preferable with either unlimited traffic, or at least 1 Terabyte per month.
  • 2.5 GByte space for the mod itself, or 2 Gbyte for the fan missions (or about 4.5 GByte overall)
  • A way to give the TDM core team access to your server, preferable via FTP login. If that cannot be arranged, you need to be available when files need to be updated.
  • The server must respond to individual file requests via HTTP with a "200 OK" and the content. Things like redirects (302, 307 etc.) as well as intermediate HTML pages (meta refresh), or FTP are currently not supported by the updater nor the in-game downloader.

Hosting the mod

The mod itself needs approximately 2.5 Gbyte space. It is possible to host only parts of it by deleting the biggest files. This however causes the updater to hit files needlessly, so if possible, the entire mod should be hosted.

Here is a list of files and their MD5 sums that you need: TDM filelist

Once you have added all the files to your server, a TDM developer can add an entry to the tdm_mirrors.txt file. This file contains the base URL for each server, as well as a score. The score helps balance the traffic between the mirrors.

If you look for a fast way to mirror the entire mod or the FMs onto your server, you can use this Perl script. Adjust the Path and URL at the top and run it on your server.

Hosting FMs

All FMs todate need about 2 Gbyte space. It is possible to host only certain FMs (the newest, or the biggest). Since every FM is added individual to the mirror list, this causes no harm.

For a list of all available FMs and their current download locations, see [[|]]

Once you have added an FM file to your server, you need to send the URL to a TDM developer (Bikerdue, nbohr1more, Springheel or Tels) and let them add the URL to the mirror list.


See also