======= How to make MMDL use your own map database in your server =======]
Attention: Setting up your own database for MMDL requires knowlege of website
development and/or maintenance. I don't have the time to explain how to program in PHP
for example, and it would make these instructions way too long to read.
[== The URL ==]
When MMDL notices there's a map missing, it first connects to a map database to get a download link.
This database is by default the AAAA map database, UNLESS you have a mmdl_database_url
cvar set in your server. If you have set the said cvar, MMDL will connect there instead.
Example of an mmdl_database_url:
sets mmdl_database_url "http://example.com/get_map_link.php?map="
^ notice the 's'
MMDL will append ONLY the map's name (eg. 'dm/avignon') to the URL. So if your
mmdl_database_url is "http://example.com/get_map_link.php?map=", MMDL will turn it into
"http://example.com/get_map_link.php?map=dm/avignon". Notice how it appends the map's name,
and how it includes the 'dm/'. After appending the map name, MMDL will do an HTTP GET with the URL.
[== The link ==]
Once MMDL sends the HTTP GET, it expects back a direct link to the map's pk3.
The formatting of the link doesn't matter as long as it points to a file,
not HTML redirects or anything else. If an error was encountered or the link was
not found, MMDL will understand "error" (all lowercase) and "404".