.bz2 files HELP!

Discussion in 'Mapping Questions & Discussion' started by -_Cls-_-Spike_-, Mar 18, 2013.

  1. -_Cls-_-Spike_-

    -_Cls-_-Spike_- L1: Registered

    Messages:
    26
    Positive Ratings:
    1
    Okay so i currently am trying to decrease the long download time and increase players not compiling on the download. So i read about 7zip and compressed the .bsp to a .bsp.bz2 but tf2 dosent read it and I have no clue where to go from here. Please help
     
  2. Volcomator

    Volcomator L1: Registered

    Messages:
    24
    Positive Ratings:
    33
    Did you set a sv_downloadurl in the server's config file?
     
  3. -_Cls-_-Spike_-

    -_Cls-_-Spike_- L1: Registered

    Messages:
    26
    Positive Ratings:
    1
    • Thanks Thanks x 1
    Last edited: Mar 18, 2013
  4. Volcomator

    Volcomator L1: Registered

    Messages:
    24
    Positive Ratings:
    33
    Try setting the sv_downloadurl to the root directory where the .bz2's are stored rather than the link to the actual file

    In this case it would be:
    sv_downloadurl "https://www.dropbox.com/s/15bnaktl0rboez7"

    Also, you need to set up the folder in your dropbox, so that it mirrors your team fortress 2/tf folder. There should be a folder for maps/, one for models/ etc. You don't have to make the folder unless you have custom content that should go there.

    For your dropbox link, it would need to look like this,

    "https://www.dropbox.com/s/15bnaktl0rboez7/maps/" <--- Put the .bz2's in there

    or if you had a model to upload

    "https://www.dropbox.com/s/15bnaktl0rboez7/models/" <---- Put models and all subfolders in there

    and so on.

    If you plan to upload anymore .BZ2's, make sure you also put them in the "https://www.dropbox.com/s/15bnaktl0rboez7/maps" directory since the server will now be reading from it
     
    Last edited: Mar 18, 2013
  5. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,538
    You need to use the public folder in dropbox that lets you use "raw" urls. The sharing links will not function for what you want.

    Public are available for any file within the "Public" folder in your main dropbox folder. The URL leads directly to the file since it is for public access.
    [noparse]https://www.dropbox.com/[/noparse]u/<user ID number>/pathto/file.txt
    e.g. https://www.dropbox.com/u/98931/maps/TLO/01_The_Lonliest_Outpost.jpg

    Share links are for any file that is not in public, and each file has a unique key in the URL that leads to a page for viewing, because they are not supposed to be easily accessed by the public.
    [noparse]https://www.dropbox.com/[/noparse]s/<unique key>/filenamewithoutpathinfo.jpg
    e.g. https://www.dropbox.com/s/ogmxes2y1xh78z8/015-stairs.jpg
    and https://www.dropbox.com/s/iwb31wznedkw2ed/025-mainframe.jpg

    If you don't have or deleted your public folder, just remake it and dropbox will recognize the name.
    Inside the public folder you would want to follow the structure Volcomator described. sv_downloadurl expects to be pointed towards a TF root folder.

    So If you have your map at C:\Bob\My Dropbox\Public\fastdownload\maps\2fort.bsp.bz2
    then sv_downloadurl should be [noparse]https://www.dropbox.com/[/noparse]u/<userid>/fastdownload

    Also note, you might want/need to use http and not https since I'm not sure if Source will work with a secure connection.

    And last, just make sure you're doing this for friends or a low-traffic server, because it would be possible to use too much bandwidth and have your dropbox public access suspended for the month.
     
    Last edited: Mar 18, 2013
  6. ics

    aa ics http://ics-base.net

    Messages:
    736
    Positive Ratings:
    444
    Also it's a worth noting that while you bzip2 that map, you need to use the normal compression instead of ultra or the one between these 2 options. Otherwise TF2 is unable to decompress the file.
     
  7. Faux Rhinoceros

    aa Faux Rhinoceros Also known as Dr. Element

    Messages:
    1,481
    Positive Ratings:
    1,583
    oh
     
    • Thanks Thanks x 1
  8. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,538
    I've always used the highest compression with no issue...
     
  9. Micnax

    aa Micnax I maek map

    Messages:
    2,065
    Positive Ratings:
    1,522
    Yeah same here, never had a problem with it...
     
  10. ics

    aa ics http://ics-base.net

    Messages:
    736
    Positive Ratings:
    444
    Well i have had issues. Maps simply wouldn't dowload to players properly. Though this was ~2-3 years ago, might have been changed since. I have not tested this after that.