Raised This Month: $32 Target: $400
 8% 

Country Multi Download URL


Post New Thread Reply   
 
Thread Tools Display Modes
Author
k725
Junior Member
Join Date: Apr 2014
Location: Japan
Plugin ID:
4318
Plugin Version:
0.1
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Country switch the "sv_downloadurl"
    Old 08-18-2014 , 01:23   Country Multi Download URL
    Reply With Quote #1

    Hi there.
    I tried to make a plug-in to switch the "sv_downloadurl" by country.
    The server where the foreigners come, this plugin is very convenient.

    Idea : Multi Sv_downloadurl v1.1
    Github Repository : Country-Multi-Download-URL

    I've tested with CSGO.
    example country_multi_download_url.cfg
    Add country? support ISO-3166 alpha3.

    PHP Code:
    "Multi Download URL"
    {
        
    "USA"
        
    {
            
    "url"    "http://example.us/srcds"
        
    }
        
    "CAN"
        
    {
            
    "url"    "http://example.ca/srcds"
        
    }
        
    "JPN"
        
    {
            
    "url"    "http://example.jp/srcds"
        
    }
        
    // Default
        // * Not delete!! *
        
    "DEF"
        
    {
            
    "url"    "http://example.com/srcds"
        
    }

    Please do not annoy the hosting provider. (high-traffic.. etc...)

    Newbie english sorry.
    Attached Files
    File Type: zip Country-Multi-Download-URL.zip (6.3 KB, 405 views)
    __________________
    AboutMe : hoshinoa.me
    k725 is offline
    bat
    Veteran Member
    Join Date: Jul 2012
    Old 08-18-2014 , 01:54   Re: Country Multi Download URL
    Reply With Quote #2

    I like idea. GJ
    __________________
    bat is offline
    Send a message via Skype™ to bat
    k725
    Junior Member
    Join Date: Apr 2014
    Location: Japan
    Old 08-18-2014 , 03:47   Re: Country Multi Download URL
    Reply With Quote #3

    Quote:
    Originally Posted by bat View Post
    I like idea. GJ
    thank you.
    __________________
    AboutMe : hoshinoa.me
    k725 is offline
    Rd1981
    Senior Member
    Join Date: Apr 2011
    Old 08-22-2014 , 03:16   Re: Country Multi Download URL
    Reply With Quote #4

    So if the file happens to not be on one of the other download servers does it revert to the default one or fail to download to ones with different countries set ?
    Rd1981 is offline
    VegetaVision
    Junior Member
    Join Date: Jul 2013
    Old 08-26-2014 , 15:55   Re: Country Multi Download URL
    Reply With Quote #5

    wouldn't cost more for the server provider?
    VegetaVision is offline
    Rd1981
    Senior Member
    Join Date: Apr 2011
    Old 08-29-2014 , 04:26   Re: Country Multi Download URL
    Reply With Quote #6

    This plugin doesnt work on TF2 it doesnt switch urls at all.
    Rd1981 is offline
    k725
    Junior Member
    Join Date: Apr 2014
    Location: Japan
    Old 09-04-2014 , 10:48   Re: Country Multi Download URL
    Reply With Quote #7

    Quote:
    Originally Posted by Rd1981 View Post
    So if the file happens to not be on one of the other download servers does it revert to the default one or fail to download to ones with different countries set ?
    Not been described basically, will be in default all.
    Do not recommend setting unintended.

    Quote:
    Originally Posted by VegetaVision View Post
    wouldn't cost more for the server provider?
    It depends
    A single http server? Country other than your own, recommend CloudFlare(CDN).

    Quote:
    Originally Posted by Rd1981 View Post
    This plugin doesnt work on TF2 it doesnt switch urls at all.
    hmm... CountryCode Miss..? CountryCode is uppercase? Http server is alive?


    Sorry my english.
    __________________
    AboutMe : hoshinoa.me
    k725 is offline
    Rd1981
    Senior Member
    Join Date: Apr 2011
    Old 09-05-2014 , 11:18   Re: Country Multi Download URL
    Reply With Quote #8

    I set it to UK so they would download from the EU server when I had them type sv_downloadurl it was still showing the default download site.
    Rd1981 is offline
    k725
    Junior Member
    Join Date: Apr 2014
    Location: Japan
    Old 09-08-2014 , 23:42   Re: Country Multi Download URL
    Reply With Quote #9

    Quote:
    Originally Posted by Rd1981 View Post
    I set it to UK so they would download from the EU server when I had them type sv_downloadurl it was still showing the default download site.
    This plugin use GeoIP module.
    GeoIP will fail to identify the country sometimes. Use in consideration of it.
    __________________
    AboutMe : hoshinoa.me
    k725 is offline
    Lubricant Jam
    AlliedModders Donor
    Join Date: Oct 2016
    Location: United Kingdom
    Old 02-23-2020 , 10:50   Re: Country Multi Download URL
    Reply With Quote #10

    Or just use Cloudflare, free CDN and multiple regions and locations.
    __________________
    Lubricant Jam is offline
    Reply


    Thread Tools
    Display Modes

    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 18:50.


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