MMDL Map Autodownloader AA

Add Another Mod

 

Mod File number (downloads) -

MD5

Type -

Tools

Server / Client -

Client Side

Mod Sub Cat -

N/A

Mod Version -

V0.12

Total Views -

Mod screen shot -

Downloader

Mod PK3

PK3 MD5

Mod External Info -

Game Type -

MOHAA

 

 

Mod Creator -

VATEC6000

 

 

 

 

Mod Status -

Fully working no errors

 

Team -

 

Theme -

Rating

Extra Credits -

 

Iinstall / info

Backup your orginal files -:
[============ MoH Map Downloader v0.12 =============]
[============== Written by VATEC6000 ===============]

[==== HOW TO INSTALL ====] Edited by Heatsink **** Please read the comment at the bottom of page has some extra help on install ******************************************

1. Find the directory where you installed the game (the directory where your current moh_spearhead.exe and/or moh_breakthrough.exe are). We'll call this directory the game directory from now on.
2. Copy mmdl.dll (found in this zip) into the game directory "Not the main but eg C:\program files\eagames\mohaa"
3. If you want to install MMDL for Spearhead, copy EVERYTHING from inside the "SH" directory (found in this zip) to the game directory.
4. Or if Breakthrough, choose one of the "BT v2.XX" directories. If you don't know which one to choose, pick "BT v2.30".
5. Or if Allied Assault, choose the "AA" directory.
6. Windows will ask if you really want to replace some files, just click yes. If it doesn't ask it at all, you're in the wrong directory.
7. Done!

[==== HOW TO KNOW IF IT WORKS ====]

Try connecting to a server that has a custom map that you don't have yet. If the downloader doesn't start up automatically,
double check that you installed it correctly.

[==== CVARS ====]

Cvar Purpose
--------------------------------------------------------------------------------------------------------
mmdl_disabled Disables MMDL if set to 1
mmdl_database_url If set, MMDL will use this database URL instead of the default one (read server_instructions.txt to see how the URL is formatted)

[==== THANKS ====]

Huge thanks to heatsinkbod for hosting the AAAA map database!

[==== VERSION HISTORY ====]

v0.12 (Nov 14 2013)
+ Added support for AA v1.11

v0.11 (May 4 2013)
+ Added support for BT v2.30
- Fixed a bug in the HTTP header parser
- Fixed the Back-button
- Fixed download speed calculation

v0.1 (May 3 2013)
The initial release

[==== THANKS II ====]

Thank you for downloading MMDL. Happy autodownloading, and enjoy the custom content!
- VATEC6000

Video

http://t.co/fNvWZTT8zJ

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Re: MMDL MOHAA auto map downloader

Had a few people asking me how to install - info is in the readme but if this helps -: This is for MOHAA onlly but basics the same for SH and BT 

Unzip the MMDL MOD

Copy mmdl.dll from the MMDL Download to to your top MOHAA Dircectory - eg "C:\programfiles\eagames\MOHAA\"

Then open your existing folder "C:\programfiles\eagames\MOHAA\" and copy the files "MOHAA.EXE" and "system86.dll" to a backup folder of your choice

Now Open the MMDL download folder called "AA" 

Then copy "MOHAA.EXE" and "system86.dll" from the MMDL download folder to your "C:\programfiles\eagames\MOHAA\" replace existing files assuming you have completed a backup above

Now Open the MMDL download folder called "AA\main" and copy file mmdl.pk3‚Äč into your "C:\programfiles\eagames\MOHAA\main\"

NOTE if you have MOD PK3 files client side these may conflict with the mmdl.pk3 in the folder "C:\programfiles\eagames\MOHAA\main\" 

NOTE if you are 64bit OS then folder names may differ such as C:\programfiles(86)\eagames\MOHAA\"

Happy shooting - Kill em ALL and kill em again

 

 

Cheers

  Heatsinkbod

&nb

Re: MMDL MOHAA auto map downloader

Create your own map hosting server -:
 
 
 
This is related to the last posts in this thread, but If you want to install MMDL really easily, check this out:http://www.x-null.net/forums/showthr...-All-in-One%29
Hey guysI was just mucking around with the script for the database, and i think i got it. most of it is straight forward, what was lacking from the example was exactly that, an example instead of just xxxxxxxxxxFrom what i could see, the database had 2 tables, one called files, and the other of your choice, i made a little example of one using just the 1 table called files, with the name and filepath as fields.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
 
$db_server            = "localhost";    /// insert server name
$db_user            = "root";        /// insert username
$db_password        = "";            /// insert password
$db_database        = "maps";         /// insert <span class="highlight">database</span> name
 
//
//        Connect to the DB
//
if(!mysql_connect($db_server, $db_user, $db_password)) exit("error"); // Just return the word "error" so <span class="highlight">MMDL</span> understands it
if(!mysql_select_db($db_database)) exit("error");
 
//
//        Get the map link
//
$query = mysql_query("
        SELECT    `files`.`name` AS `file_id`,
                `files`.`filepath` AS `file_path`
        FROM    `files`
        WHERE    `files`.`name` = '".mysql_real_escape_string($_GET['map'])."'
        LIMIT    1
    ");
if(!$query) exit("error");
 
//
//        Return the link
//
$record = mysql_fetch_assoc($query);
 
if (!$record) {
    $message  = 'Invalid query: ' . mysql_error() . "\n";
    $message .= 'Whole query: ' . $query;
    die($message);
}
 
if(!$record) exit("404"); // <span class="highlight">MMDL</span> understands "404" too
exit("http://www.eggplant.com.au/uploads/banana/".str_replace(" ", "%20", $record['file_path'])); /// replace with url of actual files.
?>

With the following little table and sample data

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
CREATE TABLE IF NOT EXISTS `files` (
  `id` int(11) PRIMARY KEY NOT NULL AUTO_INCREMENT,
  `name` varchar(30) NOT NULL,
  `filepath` varchar(30) NOT NULL
);
 
INSERT INTO files (name, filepath)
VALUES
('dm/mohdm1', 'dm/mohdm1.pk3'),
('dm/mohdm2', 'dm/mohdm2.pk3'),
('dm/mohdm3', 'dm/mohdm3.pk3'),
('dm/mohdm4', 'dm/mohdm4.pk3'),
('dm/mohdm5', 'dm/mohdm5.pk3'),
('dm/mohdm6', 'dm/mohdm6.pk3');

you can call the script whatever you want, but guide the MMDL url to the correct script I was testing on localhost http://localhost/download/index.php?map=dm/mohdm2BOLD parts would be the base url , and then it adds the name it needs.But i do not see why it really even needs the database, for small collections anyway. I can see why it would need them in bigger databases with thousands of maps, but if you are hosting your own, you really dont need it. Just a basic script that will turn the map name into the filepath, ie if you call each map.pk3 the name of the map. dm/mohdm1 would be dm/mohdm1.pk3 . Example

1
2
3
4
5
<?php
$map = $_GET['map'];
exit("http://www.eggplant.com.au/uploads/banana/".str_replace(" ", "%20", $map).'.pk3');
?>

Would suffice.

Last edited by Purple Elephant1au; 12-17-2014 at 09:05 PM.

Purple's Playground OBJ : 125.63.51.32:12203 xfire: purpleelephant1auemail: purpleelephant1au@gmail.comskydrive: PurpleElephantSkydrive

Happy shooting - Kill em ALL and kill em again

 

 

Cheers

  Heatsinkbod

&nb

Login or register to post comments