Help with fast map downloading!

Discussion in 'Server Discussion' started by Vander, Apr 17, 2008.

  1. Vander

    Vander L8: Fancy Shmancy Member

    Messages:
    507
    Positive Ratings:
    110
    I have been trying to get fast map downloads working for the last few days on my clan's server. I am having no luck. I'm using mani admin with the CVAR that works for counter-strike source:

    //Downloadurl CVARS
    sv_downloadurl "http://www.ozclan.com/~tf2/tf/"
    sv_allowupload 1
    sv_allowdownload 1

    Here are my concerns:

    Is there anything different I need to do with my file path?

    How in the hell do i get files compressed with BZip2? I downloaded the program from their website but cannot get it to work.

    Help!
     
  2. Paria

    Paria L5: Dapper Member

    Messages:
    202
    Positive Ratings:
    31
    you can bz2 files with 7 zip - just change the extension in program,

    as for the file directory listing im using

    webaddress/tf/maps/ - ftp folder structure

    and then in the server.cfg


    sv_downloadurl "http://www.youraddress/tf"
     
    • Thanks Thanks x 1
    Last edited: Apr 17, 2008
  3. Pseudo

    Pseudo L6: Sharp Member

    Messages:
    319
    Positive Ratings:
    149
    sv_allowdownload controls allowing downloads from the game server. I think it should be set to 0 if you have a separate server for map downloads.
     
    • Thanks Thanks x 1
  4. DJive

    aa DJive Cake or Death?

    Messages:
    1,466
    Positive Ratings:
    736
    *gasp!*

    Vander its a few threads down in my tutorial =p

    http://forums.tf2maps.net/showthread.php?t=1551

    Heres the setup from the tf2maps.net server


    Like Paria said, 7zip works, just change the extension to bz2.
     
    • Thanks Thanks x 1
    Last edited: Apr 17, 2008
  5. Vander

    Vander L8: Fancy Shmancy Member

    Messages:
    507
    Positive Ratings:
    110
    7 zip is a godsend! One question though. When setting up the website download location I would still place maps in a folder called "maps", right?

    example: http://www.tf2maps.net/redirect/maps

    But I wouldnt need to signify this in my sv_download, right? just "http://www.tf2maps.net/redirect/" will suffice, correct?
     
  6. DJive

    aa DJive Cake or Death?

    Messages:
    1,466
    Positive Ratings:
    736
    correct, it will auto add the "maps" so you want to just give the path to the maps folder.
     
  7. Vander

    Vander L8: Fancy Shmancy Member

    Messages:
    507
    Positive Ratings:
    110
    It works, the server is redirecting the downloads now. Thanks to all, but I have more questions, yay!

    I want to compress these .bsp files as small as they will possibly go. Castle3 is a huge map at nearly 43MB, 7Zip gets its down to 23MB, but that still takes some time to download. Can I get these buggers any smaller? I have fiddled with settings compression level and dictionary size, but it keeps coming back compressed the same size.
     
  8. drp

    aa drp

    Messages:
    2,254
    Positive Ratings:
    2,553
    i think thats as small as you're gonna get it :(
     
  9. phatal

    phatal L6: Sharp Member

    Messages:
    259
    Positive Ratings:
    21
    I haven't used 7zip but I have used Winrar which can compress files with different compressions like low, good, normal, high, and best (you get the idea). You can try to compress it with the best setting if available and this will reduce the size, not a guarantee that it will be hugely significant but worth a try.
     
  10. Vander

    Vander L8: Fancy Shmancy Member

    Messages:
    507
    Positive Ratings:
    110
    So, it doesn't have to be in bz2 format?
     
  11. DJive

    aa DJive Cake or Death?

    Messages:
    1,466
    Positive Ratings:
    736
    to download from a server it HAS to be bz2.

    Phatals post was more so to answer your question about getting it smaller to distribute.
     
  12. Vander

    Vander L8: Fancy Shmancy Member

    Messages:
    507
    Positive Ratings:
    110
    Roger that. Thanks for all the help guys! I've got it up and running now!
     
  13. phatal

    phatal L6: Sharp Member

    Messages:
    259
    Positive Ratings:
    21
    7zip does have Ultra compression and I tried using it with 5 maps in 1 .7z file. The ultra does compress it more but only about 1-2%. I don't know if your results would be better or not.
     
    • Thanks Thanks x 1
  14. DmanWCG

    DmanWCG L1: Registered

    Messages:
    4
    Positive Ratings:
    0
    OK I have done all the above for what seems a ton of times. My game server provider says its windows based OS so is there a different rule? I have this in the server.cfg just as you see it in the bottom group.

    sv_allowupload "1"
    sv_allowdownload "0"
    sv_downloadurl "http://www.mysite.com/***/maps/"
    net_maxfilesize 64

    All I get is "dont have map" after it looks like it tries to download.
     
  15. Nineaxis

    aa Nineaxis Quack Doctor

    Messages:
    1,767
    Positive Ratings:
    1,404
    don't point to the maps folder itself, it automatically looks for a maps folder wherever you point to, so if you point to the folder with the maps, it'll be looking for a folder in there with the name "maps" which contains your maps instead of at the maps where you point.


    ...that probably makes no sense.
     
  16. Apex_

    Apex_ L3: Member

    Messages:
    122
    Positive Ratings:
    14
    To clarify that a bit, the fast download (aka redirect) isn't only used for maps. It's set up exactly like your copy on your hard drive, meaning it starts at /tf/ and from there has folders for maps, materials, sounds, and what have you.

    You could think of it as "where will the player download these files to?" as well. If the file on your website is in /tf/sound/ then that custom sound effect wav file will download to the player's sound folder.

    Here's an example:

    Code:
    <web root e.g. www.website.com>
    ---tf/
    -----sound/
    -----maps/
    --------mapname.bsp.bz2
    -----media/
    -----models/
    -----materials/
    
    Then your "sv_downloadurl" would be "http://www.website.com/tf/"

    Everything starts at the /tf/ folder, remember that. Once the game finds /tf/, it searches for the rest on its own.
     
  17. DmanWCG

    DmanWCG L1: Registered

    Messages:
    4
    Positive Ratings:
    0
    I did a quick test and YOHO!

    Thanks all.
     
  18. AWESOME-O

    AWESOME-O L10: Glamorous Member

    Messages:
    782
    Positive Ratings:
    66
    vander, use this for compressing, it compress multiple maps at one time.

    http://www.fpsbanana.com/tools/1495

    When you install it, there gets a folder called, zbzip on you're desktop, put you're stuff you want bzipped (Even sounds etc) in there, launch the program, it looks like theres nothing happening, but it does. Just wait till it says: Press a key to continue, and you're done :)
     
  19. DmanWCG

    DmanWCG L1: Registered

    Messages:
    4
    Positive Ratings:
    0
    This is frustrating. It worked for a bit then it stopped.

    When people connect the first time the say no map, but then they try to reconnect again and it downloads it....

    Could a slow loading website or a heavy load stop the map from trying to download off the website?
     
    Last edited: Sep 6, 2008
  20. AWESOME-O

    AWESOME-O L10: Glamorous Member

    Messages:
    782
    Positive Ratings:
    66
    It might be possible, i'm not sure though