Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 42

Thread: MMDL auto map downloader released for MOHAA

  1. #11

    Default

    Sometimes an OBJ map isn't found because it's atm only looking for the first mapname, which is always DM (unless the map is only in OBJ).
    So any map that's in both OBJ and DM will not be found in OBJ atm. (At least not when linked to our database, you can always link to your own host site with the map as HSB said)

  2. #12

    Default

    VATEC made a new post for his work on ModTheater.
    The project is now called "PakRadar".

    Here's the link for people who are interested: http://www.modtheater.com/threads/pa...9/#post-353729

  3. #13

    Default

    Hey Guys,

    Im working on a custom smerver so i use this again... nice job

  4. #14

    Default

    ok to set up the data base I do this
    sets mmdl_database_url ""http://www.ezmmwaa.com/downloads/maps/custom map pack 1.zip"map="

    only not a zip a pk3 for each map right?

    sets mmdl_database_url ""http://www.ezmmwaa.com/downloads/maps/The Church_Final.pk3"map="
    Last edited by easymeat; December 1st, 2014 at 02:52 PM.

  5. #15
    Senior Member nene81's Avatar
    Join Date
    Nov 2014
    Location
    Seville, SPAIN
    Posts
    193

    Default

    Quote Originally Posted by easymeat View Post
    ok to set up the data base I do this
    sets mmdl_database_url ""http://www.ezmmwaa.com/downloads/maps/custom map pack 1.zip"map="

    only not a zip a pk3 for each map right?

    sets mmdl_database_url ""http://www.ezmmwaa.com/downloads/maps/The Church_Final.pk3"map="
    I have similar question...

    How have I to write the url for my custommaps?

    Example:
    sets mmdl_database_url "https://sites.google.com/site/elnrmohsh/custommaps/yyy_Cruz_de_Marmol.pk3
    Is it correct?

    MMDL returns: Error, Check console

  6. #16

    Default

    Hi I have never used the override to point to another Database - only info Ihave on that is from the readme which I guess you have seen

    ======= 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".
    So as Vatec6000 points out at the top you also need to set up a PHP script to handle and serve your files also..............
    This would then run on server

    An example here -:

    Code:
    <?php
    	/////////////////////////////////////////////////////////////////////////
    	//######################################################################
    	//#	A simple download link script for MMDL
    	//#	Written by VATEC6000
    	//######################################################################
    	/////////////////////////////////////////////////////////////////////////
    	$db_server			= "localhost";
    	$db_user			= "xxx";
    	$db_password		= "xxxxxx";
    	$db_database		= "xxxxxx";
    	
    	//
    	//		Connect to the DB
    	//
    	if(!mysql_connect($db_server, $db_user, $db_password)) exit("error"); // Just return the word "error" so MMDL understands it
    	if(!mysql_select_db($db_database)) exit("error");
    	
    	//
    	//		Get the map link
    	//
    	$q = mysql_query("
    		SELECT	`xxxxxxxxxxxxxxxxxxxxxxxxxx`.`xxxxxxxxxxxxxxx` AS `file_id`,
    				`files`.`filepath` AS `file_path`
    		FROM	`xxxxxxxxxxxxxxxxxxxxxxx`, `files`
    		WHERE	`xxxxxxxxxxxxxxxxxx`.`xxxxxxxxxxxxxxxxx` = '".mysql_real_escape_string($_GET['map'])."'
    		AND		`files`.`fid` = `xxxxxxxxxxxxxxxxxxxxx`.`xxxxxxxxxxxx`
    		LIMIT	1
    	");
    	if(!$q) exit("error");
    	
    	//
    	//		Return the link
    	//
    	$record = mysql_fetch_assoc($q);
    	if(!$record) exit("404"); // MMDL understands "404" too
    	exit("http://xxxxxxxxxxxxxxxxxxxxxxxxxxxx".str_replace(" ", "%20", $record['file_path']));
    ?>
    Is their some maps you have that are not hosted in the AAAA database ? If you copy in the maps we can take a look to see if we can help in some way
    Last edited by heatsinkbod; December 7th, 2014 at 05:54 AM.

  7. #17

    Default

    nope I fixed it I just went and re-downloaded all the maps from AAAA database so they are the same works great. I was just reading more about it on TMT, Plus the people who don't use this can still download them from my web site. Thanks for the reply I forgot I even posted this till nene91 asked me about it.

  8. #18

    Default

    Ok glad you got it sorted
    Still not heard from Vatec6000 hope he returns to complete the new release that will support mods

  9. #19
    Senior Member nene81's Avatar
    Join Date
    Nov 2014
    Location
    Seville, SPAIN
    Posts
    193

    Default

    hello!!

    I have read your replies, thanks!

    I have some questions...

    I downloaded several maps from AAAA, I attached score.jpg & loading.jpg into each .pk3, and I modified some map.bsp...

    As I said above, I set in my server.cfg a new "sets mmdl_database_url", but doesn't work... (using sites.google.com)
    Example: https://sites.google.com/site/elnrmo..._de_Marmol.pk3

    How can I fix it?
    Have I to run php-script from server.cfg? I don't have enough idea about this.

    I would like to help in some way.
    thank you very much!!

  10. #20

    Default

    Quote Originally Posted by nene81 View Post
    hello!!

    I have read your replies, thanks!

    I have some questions...

    I downloaded several maps from AAAA, I attached score.jpg & loading.jpg into each .pk3, and I modified some map.bsp...

    As I said above, I set in my server.cfg a new "sets mmdl_database_url", but doesn't work... (using sites.google.com)
    Example: https://sites.google.com/site/elnrmo..._de_Marmol.pk3

    How can I fix it?
    Have I to run php-script from server.cfg? I don't have enough idea about this.

    I would like to help in some way.
    thank you very much!!
    Hi well if you downloaded the maps and modified them then yup AAAA database may not support them as they are now different in some cases it will but so what you are saying is you are trying to run tour own Database for your server ??

    As far as I know then yes you need to run the script on your hosted Database and site if you want to override............

    Perhaps Easymeat can advise you - but also if this takes off then perhaps me on AAAA can host custom maps for clans usong modded maps and create a side database to support clans using MMDL ??

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •