AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   In-Game Map Downloader and FastDL Uploader (GameBanana, Custom List, URL) (https://forums.alliedmods.net/showthread.php?t=190274)

dordnung 07-16-2012 16:52

In-Game Map Downloader and FastDL Uploader (GameBanana, Custom List, URL)
 
19 Attachment(s)
http://dordnung.de/sourcemod/mapdl/stats/


Bored of going always out of game to download and upload a new map to your server?
With this plugin you can download maps directly ingame from the huge database of gamebanana, from your own URL with maps or just from any URL.
The plugin can even upload it afterwards bz2 compressed to your fastdownload server




Features:
  • Access to all maps of the huge database of gamebanana while being ingame
  • Sorted after the most viewed, the most downloaded, the best rated or just the newest maps
  • Show information about a map after choosing it: See views, downloads, votes, rating, creation date, the last modification date, pictures and information in the MOTD window
  • Search for a specific map by just enter a search mask
  • The downloaded map can be automatically uploaded to your fastdownload server, even bz2 compressed!
  • You can also create a list with your own custom URL's with maps and download from there.
  • Or just download a map directly from an given URL
  • Black and Whitelist a bunch of map categories or maps
  • Queue up to 20 downloads
  • Intern downloadlist for custom map files which players will download
  • Automatic plugin updater
  • Automatic installing, downloading and updating of the gamebanana database
    • Will be updated every day and downloaded at server start



Supported Games with Pictures:

Installation:
  • You need the System2 Extension (> v3.0)
    • Be sure to give sourcemod/data/system2/linux/i386/7z (32-Bit linux server) or sourcemod/data/system2/linux/amd64/7z (64-Bit linux server)
      or sourcemod/data/system2/win/7z.exe execution rights (Linux: 744), so file compression will work
  • If you like to use a black, white or customlist, open sourcemod/configs/mapdownload_lists.cfg and configurate the lists.
    • How to set up the lists you can take out of the file.
  • Now upload everything to your server.
  • Restart your server, change the map or load mapdownload via console.
  • Open the created cfg/sourcemod/plugin.mapdownload.cfg file and configurate your settings.


Known Issues:
  • After downloading the file, it will not be extracted
    1. This error can appear because the system2 7z isn't uploaded as a binary file.
    2. Change the FTP transfer type from automatic to binary.
  • Couldn't find a valid Map file
    1. Forgot to give 7z or 7z.exe execution rights.
    2. The downloaded file is corrupt or invalid (retry).
    3. The mapper forgot to upload a .bsp file (really? :D).
    4. The archive is compressed more than once.
    5. Take a look at the sourcemod/data/mapdownload/temp folder and search for the error.
    6. Take a look at Issue 1.
  • Database disk image is malformed
    1. This error can appear after server start when the database got updated.
    2. Increase the number of retries in the config,
    3. Or just restart your server again and it should work again.



Additional notes:
  • You can also make your own database. Just download the Maplister Binarys and create a maplist.
    • You also can run the programm with the game number as parameter, to start collecting instantly.
    • When finished (All Maps: ~ 1 day), copy the created gamebanana.sq3 to the sourcemod/data/sqlite/ folder
    • If you enable mapdownload_update_database (default: enabled), you don't have to care about creating the database by yourself.


Changelog:

Quote:

  • 2.4.0 (2018/06/25)
    • Removed the limit of 64 maps at a max in custom urls
    • Ignoring MAXOSX folders, as this plugin does not support OSX servers, anyway
  • 2.3.0 (2018/02/03)
    • Using the new System2 API (update to the newest System2 extension needed!)
    • Adding maps now alphabetically to the mapcycle file
    • Using VGUI URL Cache Buster for correct MOTD in CSGO
    • Using correct line endings on Windows for mapcycle
    • Also adding map preview image to the maps folder
    • Reformatted hud text for CSGO
    • Testing if 7-ZIP is executable
    • Using new Sourcemod API
  • 2.2.2 (2017/10/29)
    • Allowing to download just .bsp files
    • Downloading gamebanana database again on error -> No server reboot necessary on error
  • 2.2.1 (2014/10/11 )
    • Fixed that only one whitelist option could be set
  • 2.2.0 (2014/10/03)
    • Added more information about maps: Votes, Downloads, Views, Rating, Creation Date, Modification Date
    • Added options to sort the maps by the new information
    • Added command to download a map directly from a given URL
    • Added menu items to show the best voted-, downloaded-, ... maps
    • Added convar to set color of hudtext
    • Removed unnecessary files of the download (Readme and so on)
    • Added logging
    • Added convar to set number of retries to connect to the database
    • Fixed bugs
  • 2.1.1 (2013/05/08)
    • Fixed missing file extension
  • 2.1.0 (2013/05/08 )
    • Fixed bug that admins with only z flag didn't see downloadtext
    • Added support for custom url list
    • Added FTP ingame login
  • 2.0.0 (2013/05/05)
    • Plugin completely rewritten
  • Up to 2.0.0
    • Forgot the old one, the new one is much better! :up:


Maxunit 07-16-2012 18:08

Re: [Any] Ingame Map Downloader
 
Woot, this is awesome! Then I can pre-view Left 4 Dead 2 Maps and Campaigns inside the game and download them directly to the Server.

This really helps a lot, if someone suggests a custom map for L4D2, which is not on the Server.

EDIT: I dunno if I did something wrong, re-following the instructions, but the plugin FAILED to load on my L4D2 server so far.

EDIT 2: Left 4 Dead 2 sadly is not supported, because system2 is not working with it :(

dordnung 07-16-2012 18:37

Re: [Any] Ingame Map Downloader
 
Errormessage?

Maxunit 07-16-2012 18:46

Re: [Any] Ingame Map Downloader
 
Error Message was posted in the System2 Topic as well, which is:

Code:

[SM] Unable to load extension "system2.ext": /home/l4d2/left4dead2/left4dead2/addons/sourcemod/extensions/system2.ext.so: undefined symbol: _SpewInfo

dordnung 07-16-2012 18:51

Re: [Any] Ingame Map Downloader
 
ah ok, but system2 should be independent too.

Rootserver or simple server?

Maxunit 07-16-2012 19:01

Re: [Any] Ingame Map Downloader
 
I have a Linux Root Server with Debian x64 running.

If I want to load the MapDL Plugin, it tells me, that System2.ext is not loaded and if I want to load System2.ext, it throws the error i posted.

minimoney1 07-16-2012 22:43

Re: [Any] Ingame Map Downloader
 
Hooly...
Great job man, this type of plugin (AddMap) was the only reason I would ever run Eventscripts, and I would've never thought it'd be up for SM.
For FTP support and bz2 you could look into tEasyFTP and the bzip compression extension.

mica2611 07-18-2012 08:27

Re: [Any] Ingame Map Downloader
 
+1 mini !

waiting the rar support :) !!!!! THANKS for the great work

C0nw0nk 07-18-2012 12:44

Re: [Any] Ingame Map Downloader
 
What would be good and a idea is that the server tells the client to automaticly download the nextmap in advance so upon a map change it has a quicker connect for clients.

Powerlord 07-18-2012 12:56

Re: [Any] Ingame Map Downloader
 
Quote:

Originally Posted by C0nw0nk (Post 1753110)
What would be good and a idea is that the server tells the client to automaticly download the nextmap in advance so upon a map change it has a quicker connect for clients.

Plugins can change the nextmap at any time.

Heck, on TF2, the default configuration (without SourceMod or other addons present) will bring up a vote menu consisting of the 5 least played maps since the last server restart.


All times are GMT -4. The time now is 10:05.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.