Raised This Month: $51 Target: $400
 12% 

Download maps in background during play [read topic to understand]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tomslayer
Junior Member
Join Date: Nov 2009
Old 12-20-2009 , 14:25   Download maps in background during play [read topic to understand]
Reply With Quote #1

Hey guys!

Check out this idea for a plugin:

every time you put a new map on your server and change the map the users have to download it, and even with a 10mb connection 20 or 30 people will download a 4mb map pretty slowly.

So the idea would be to create a download manager which downloads maps from the maps directory(if the map doesn't exist in the user's maps folder) (maps that exist will be skipped) during the game.

Every time a map download starts or finishes the user is notified.

This way during a 20-40 minute game every user can have the map collection from the server and you can change to any map anytime without being worried that people will have to download the map for 1-10minutes.

I hope you understand what i'm talking about(things might sound gibberish, but i'm damn tired from snowboarding)

Modders: Please let me know if it's possible to do.

Users: If you think its a good idea feel free to share your opinion.

Thanks,
Tom
tomslayer is offline
dudeno
Member
Join Date: May 2007
Old 12-20-2009 , 14:34   Re: Download maps in background during play [read topic to understand]
Reply With Quote #2

I dont think your idea is possible, Because the server sends the file when the server map gets changed to that specific map?
dudeno is offline
tomslayer
Junior Member
Join Date: Nov 2009
Old 12-20-2009 , 14:38   Re: Download maps in background during play [read topic to understand]
Reply With Quote #3

Quote:
Originally Posted by dudeno View Post
I dont think your idea is possible, Because the server sends the file when the server map gets changed to that specific map?
this i know, basically i want the plugin to emulate this during the game

waiting for an answer from a modder
tomslayer is offline
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 12-20-2009 , 15:15   Re: Download maps in background during play [read topic to understand]
Reply With Quote #4

But it will generate lag on the server and the client :/

The server will send data to all the players and the client will recive that data..
Mxnn is offline
Battousai-sama
Veteran Member
Join Date: Jul 2007
Old 12-20-2009 , 15:26   Re: Download maps in background during play [read topic to understand]
Reply With Quote #5

there is a plugin that lets people dl maps while still playing, I've seen it in some servers and also seen it in this forum but forgot name search some keywords related to it xD
__________________
Battousai-sama is offline
Send a message via MSN to Battousai-sama
tomslayer
Junior Member
Join Date: Nov 2009
Old 12-20-2009 , 18:20   Re: Download maps in background during play [read topic to understand]
Reply With Quote #6

Quote:
Originally Posted by Battousai-sama View Post
there is a plugin that lets people dl maps while still playing, I've seen it in some servers and also seen it in this forum but forgot name search some keywords related to it xD
could you be a bit more specific?
tomslayer is offline
Battousai-sama
Veteran Member
Join Date: Jul 2007
Old 12-21-2009 , 02:22   Re: Download maps in background during play [read topic to understand]
Reply With Quote #7

Quote:
Originally Posted by tomslayer View Post
could you be a bit more specific?
its hard O.o i forgot name but its like u can download map from server via a list while still ingame on current map
__________________
Battousai-sama is offline
Send a message via MSN to Battousai-sama
fR4gn0tiX!
Senior Member
Join Date: Nov 2009
Location: Georgia, Tbilisi
Old 12-21-2009 , 08:34   Re: Download maps in background during play [read topic to understand]
Reply With Quote #8

PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Map download"
#define VERSION "1.0"
#define AUTHOR "fR4gn0tiX!"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /maps""cmd_maps")
}

public 
cmd_maps(id)
{
    new 
menu menu_create("\wChoose a map:""menu_handler")
    
menu_additem(menu"\wFirst Map Here""1")
    
menu_additem(menu"\wSecond Map Here""2")
    
menu_additem(menu"\wThird Map Here""3")
    
menu_setprop(menuMPROP_EXITMEIXT_ALL)
    
menu_display(idmenu0)
    return 
PLUGIN_HANDLED
}

public 
menu_handler(idmenuitem)
{
    if (
item == MENU_EXIT)
    {
        
menu_destroy(menu)
        return 
PLUGIN_HANDLED
    
}
    
    new 
data[6], iName[64]
    new 
accesscallback
    menu_item_getinfo
(menuitem ,accessdata5iName63callback)
    new 
key str_to_num(data)
    switch(
key)
    {
        case 
1:
        {
            
show_motd(id"http://your_link_to_first_map.zip""Map Name Here")
            
menu_destroy(menu)
            return 
PLUGIN_HANDLED
        
}
        case 
2:
        {
            
show_motd(id"http://your_link_to_second_map.zip""Map Name Here")
            
menu_destroy(menu)
            return 
PLUGIN_HANDLED
        
}
        case 
3:
        {
            
show_motd(id"http://your_link_to_third_map.zip""Map Name Here")
            
menu_destroy(menu)
            return 
PLUGIN_HANDLED
        
}
    }
    
menu_destroy(menu)
    return 
PLUGIN_HANDLED

__________________
fR4gn0tiX! is offline
Send a message via Skype™ to fR4gn0tiX!
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-21-2009 , 11:34   Re: Download maps in background during play [read topic to understand]
Reply With Quote #9

If the map is hosted on the sv_downloadurl then it should only take a minute or so to download on map start.

I would say it wouldn't be worth the lag that the client would experience. It's possible that not everybody will lag but most will and it's not worth it.
__________________
fysiks is offline
Kolia
BANNED
Join Date: Dec 2009
Location: Georgia
Old 12-21-2009 , 13:15   Re: Download maps in background during play [read topic to understand]
Reply With Quote #10

I think it will cause lag on the server, so it would be better idea to download maps while playing but from sv_downloadurl
Kolia is offline
Send a message via Skype™ to Kolia
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:12.


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