Insurgency

Insurgency

View Stats:
This topic has been locked
G.Pyle Apr 26, 2014 @ 11:08am
sv_downloadurl using Google Drive
[Edit - These instructions no longer work. Will update if something changes, although it's not expected to. -gPyle]

-----------------------

Finally got this to work. Thought others might be interested.

I'm using Google Drive as my download server because I'm running my Insurgency server on an extra PC I had lying around. If I was having it hosted by a game server company, they would most likely include web downloading with the service.

...AND... because I couldn't get Dropbox to work.

These instructions assume you already have a Gmail account and have Google Drive activated.

Here's the run-down for you experienced types:
  • Create a folder on your Google Drive called insurgency.
  • Create a sub-folder of insurgency called maps.
  • Share the insurgency folder to the Public.
  • Find the HOSTING URL for the insurgency folder on the Details tab
  • Copy and paste that URL to the sv_downloadurl cvar in your server.cfg file.
  • Remove the "s" in "https://" from the URL.
  • When finished, the cvar should look something like this:
     
  • Save your server.cfg file.
  • Upload custom maps to the maps folder on Google Drive.
  • Start your server and you're ready to go. Players will now automatically download new maps from Google Drive.


And here are detailed instructions:

Create the Folders:
  • Go to your Google Drive.
  • Create a new folder and name it "insurgency". It can be a sub-folder of another folder. Doesn't matter. I put mine in a sub-folder called "Games".
  • Create a sub-folder in the "insurgency" folder and name it "maps".

Share the Folders for Public access:
  • Select the insurgency folder and click the pull-down arrow to the right. Choose Share.
  • Under "Who has access" , click "Change..."
  • Select "Public on the Web"
  • Verify Access is set to "Can View", not "Can Edit".
  • Save it.

Ignore the "Link to Share" URL displayed in the next window. It's not the URL you're looking for. ;)


Get the URL needed for the sv_downloarurl cvar:
  • Select the insurgency folder, then choose the Details tab on the right.
  • Copy and paste the URL displayed under the HOSTING section into your server.cfg file.
  • Remove the "s" from "https://". (I don't think the client supports https.)
  • Save the server.cfg file.

When finished, the cvar should look something like this:
sv_downloadurl "http://googledrive.com/host/0ByLo4ex8zQrf5e2xxx" sv_allowdownload 1 sv_allowupload 1

Don't select the maps folder in this step. The client appends "/maps" to this URL when it tries to download a map. If you choose the maps folder, the client will search in "insurgency/maps/maps", which doesn't exists, so it'ill fail. And that would be bad.


Compress (or don't):
So here's the deal, you CAN'T just upload the entire custom map .zip file to your maps folder. You need to decompress it, and then either, upload the files as they are ...OR... re-compress the individual files into the bzip2 (.bz2) format. It's not a requirement that you compress the maps before you upload them. The client automatically searches for the map name with a bz2 extension first, and if not found, it will search for the original map name. As an example, first it will search for jack_hammer_coop.bsp.bz2, then jack_hammer_coop.bsp.

Now, that being said... It's still a good idea to compress them because it'll speed things up on the client side when they're pulling the files from your server.

Decompress/Unzip the original custom map file. You'll find several other files contained within. Normally, there are 3 files in a custom COOP map archive. Some may have more. I'm not sure. If there are more, compress those too. There's a map file (.bsp), a nav file and a text file. Compress each file using your bzip2[www.bzip.org] encoder of choice. I personally use 7-zip[www.7-zip.org].

bzip2 only supports a single file in the archive, so don't try to put them all back into one big .bz2 file. It won't work. Also, you're not obligated to compress all of them. You can just do the larger files.

Upload the files:
  • Open your Google Drive in a web browser.
  • Select maps
  • Drag and drop ALL of the custom map files, compressed or not, to the maps folder.

Start your server.

That's it.


Also: I spent a lot of time trying to get Dropbox to work with sv_downloadurl, without success. If someone has been able to get that to work, I'd like to know. I'm sure others would as well. There's a general consensus out there that Dropbox has disabled this functionality.
Last edited by G.Pyle; Oct 8, 2015 @ 7:17am
< >
Showing 1-15 of 15 comments
Arc Apr 26, 2014 @ 12:16pm 
i thought that adding downloadurl as google drive is easy as it can be :D never tried dropbox, i'll try it later today :)

so far, not so good with dropbox :/
Last edited by Arc; Apr 27, 2014 @ 9:15am
Thanks ! exatly what i need !
G.Pyle Apr 27, 2014 @ 8:27am 
Originally posted by G4RY BoURB!3R:
Thanks ! exatly what i need !

Thanks G4RY. Glad to hear it. :)
SeeEmilyPlay May 15, 2014 @ 7:58pm 
This works perfectly. Thanks so much for sharing!
KD Jun 7, 2014 @ 1:28pm 
Works great thanks G. Pyle
2002 GMC SIERRA Jul 14, 2014 @ 10:05am 
Thanks man, it really worked. :sentry:
G.Pyle Jul 18, 2014 @ 6:55pm 
Awesome! Glad it's useful to people. :)
is this working now?
Arc Nov 27, 2014 @ 3:02am 
Originally posted by Fifflaren . XinSheng:
is this working now?
sv_downloadurl is working, google drive is not.
Last edited by Arc; Feb 7, 2015 @ 9:28pm
Originally posted by Arc:
Originally posted by Fifflaren . XinSheng:
is this working now?
sv:downloadurl is working, google drive is not.
oh thanks,I was thinking where is hosting URL
and now any other Website can used as fastDownload?
where is the server.cfg file, i looked for it, and i dont know what it is called!!.... is it the command prompt?
Originally posted by obertone3:
where is the server.cfg file, i looked for it, and i dont know what it is called!!.... is it the command prompt?
plz help!
frombehind Oct 11, 2015 @ 6:18am 
yea, this dont work with gdrive so....

it is called server.cfg unless you made the server use a custom .cfg in the command line.

cfg files live in the cfg folder.
Maverick Mar 21, 2016 @ 4:09pm 
Last edited by Maverick; Mar 21, 2016 @ 4:11pm
Arc Mar 21, 2016 @ 4:15pm 
Gdrive won't work for large files, and you do not have to spam every single tag on your guide. Also, locked due to necro.
< >
Showing 1-15 of 15 comments
Per page: 1530 50

Date Posted: Apr 26, 2014 @ 11:08am
Posts: 15