Addon Details

Watch - Add Favorite


0
w00ts
w00t!

es_AddMap - Version 0.4aBETA

posted on 2008-03-22 10:18:40
by JoeyT2006



Description

Code:
   #  #                                               #   #
   #  #            ########################           #   #
   #  #            #  es_AddMap 0.4aBETA  #           #   #
   #  #            # Created by JoeyT2008 #           #   #
   #  #            ########################           #   #
   #  #                                               #   #
##############################################################
# Description: es_AddMap allows you to easily download maps  #
# from the net onto your server, and also your FTP if fast-  #
# download is enabled. It checks given web index's for the   #
# map you want to download, and if it finds it, it will      #
# retrieve the file, store it, unzip/unbzip/bzip and shove   #
# it in your maps folder. All within about 10 seconds after  #
# initial buffer. If es_AddMap does not find the map, theres #
# always the option to check FPSbanana for it! And if found  #
# there, the same procedure is repeated. Perfect.            #
##############################################################
   #  #                                               #   #
##############################################################
# Credits: Errant - Lots of help and ideas. He showed me how #
#                   ZipFile works, giving examples when I    #
#                   was stuck, he helped me understand a lot #
#                   about gamethread and the queue() command #
#                   and is just absolutely amazing. Congratz #
#                   on moderator status. ;D                  #
#          GODJonez - Help with binary file write, and also  #
#                     helping with unrar.exe issues. Thx.    #
#                     He is also the one who found out why   #
#                     es_AddMap wasn't running on Linux and  #
#                     also supplied to the fix. Thanks GJ!   #
#          TnB|Porsche911 - Reminding me of everything that  #
#                           needs to be done. xD             #
##############################################################
   #  #                                               #   #
##############################################################
# Bugs: From extensive testing, I have found no bugs. But if #
# YOU find bugs, please reply in the es_AddMap thread on     #
# mattie.info. Thanks.                                       #
##############################################################
   #  #                                               #   #
##############################################################
# UNRAR: To be able to unrar maps, python needs to have the  #
# winrar unrar file to work with. If you would like to use   #
# this feature, please extract UnRAR.exe (Windows) or unrar  #
# (Linux) from the winrar archive (http://www.rarlab.com)    #
# and place it in the es_AddMap folder. Untested on Linux.   #
##############################################################
             # Thankyou for reading. JoeyT2008 #
             ###################################


Tests:
Test 1: Adding aim_ag_texture2 from FPSbanana with FastDownload on.
Code:
] AddMap aim_ag_texture2
[AddMap] Creating list of available maps...
[AddMap] aim_ag_texture2 is not in the maplist!
[AddMap] Checking FPSbanana for aim_ag_texture2!
[AddMap] Retrieving FPSbanana search results...
[AddMap] aim_ag_texture2 was found on FPSbanana!
[AddMap] Retrieving download page...
[AddMap] Found a download link for aim_ag_texture2!
[AddMap] Downloading aim_ag_texture2...
[AddMap] aim_ag_texture2 was downloaded successfully!
[AddMap] Opening connection to FTP...
[AddMap] Connecting to ftp.servage.net:21...
[AddMap] Logging in as joeyt2008...
[AddMap] Uploading aim_ag_texture2 to FTP...
[AddMap] aim_ag_texture2 was uploaded to the FTP successfully!
[AddMap] aim_ag_texture2 has been added to the server and is ready to be run!

Test2: Adding fy_iceworld to the server with FastDownload off.
Code:
] es_AddMap fy_iceworld 1 1
[AddMap] Creating list of available maps...
[AddMap] fy_iceworld is not in the maplist!
[AddMap] Checking FPSbanana for fy_iceworld!
[AddMap] Retrieving FPSbanana search results...
[AddMap] fy_iceworld was found on FPSbanana!
[AddMap] Retrieving download page...
[AddMap] Found a download link for fy_iceworld!
[AddMap] Downloading fy_iceworld...
[AddMap] fy_iceworld was downloaded successfully!
[AddMap] fy_iceworld has been added to the server and is ready to be run!

Test3: Adding aim_shotgun3 to the server with FastDownlod off and aim_shotgun3 on one of the web index's.
Code:
] es_AddMap aim_shotgun3
[AddMap] Creating list of available maps...
[AddMap] Map located in maplist!
[AddMap] Downloading aim_shotgun3...
[AddMap] aim_shotgun3 was downloaded successfully!
[AddMap] aim_shotgun3 has been added to the server and is ready to be run!


FYI: A web index is a page that shows a list of files in a directory. An example of one is this:
[url]http://download.spcnet.cz/Zábava/Counter-Strike/counter-strike source maps/[/url]

Please post any questions regarding es_AddMap here and also any bugs too. Thanks.

Notice: Please share your web index's with others, or share the temp maplist located in the es_AddMap folder. What the temp maplist does is store maps found on the map index's when you search for a map, which allows es_AddMap to download some other maps without searching through all the index's again.

ESAM: http://addons.eventscripts.com/addons/view/es_addmap

How to Unrar:
WINDOWS:
1. Download unrarWIN.zip from the bottom of the post.
2. Extract it to the cstrike/addons/eventscripts/es_AddMap folder.

LINUX (UNTESTED):
1. Download unrarLINUX.zip from the bottom of the post.
2. Extract it to the cstrike/addons/eventscripts/es_AddMap folder.

Greetz to Roach and Cheezus.

Installation

Extract to your cstrike folder.
Add "es_load es_addmap" to your autoexec.cfg.
Restart your server.

Version Notes For 0.4aBETA

Updated on: 2008-03-26 09:02:05 EST by JoeyT2006 (View Zip Contents)
Version Notes:
v0.1:
[+] Initial release.
v0.2:
[+] Added unrar capabiltiy. (Optional)
v0.3:
[+] Added client command for AddMap, same command but steamids defined in addmap_admins will be able to use AddMap without rcon.
[@] Changed command es_AddMap to AddMap.
[?] Fixed small maplist bug in games other than CS:S.
v0.3a:
[?] Various little fixes and changes.
[+] Linux BZ2 to fix the not-loading problem.
v0.4:
[@] Changed !maps popup menu a bit.
[+] Added top 10 maps and latest maps.
[?] Fixed !maps function!
v0.4a:
[@] Change FPSbanana class to maybe fix the problem with the download not finishing nor starting.

( Previous Versions )