Author Topic: HTTP Downloads for Servers  (Read 78231 times)

tuple

  • Posts: 833
  • Turrets: +97/-80
HTTP Downloads for Servers
« on: March 08, 2007, 12:34:37 am »
Server Operators have two options of map download servers.
The }MG{MercenariesGuild and
the Tremcentral.com Map Repository

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

}MG{MercenariesGuild Map Repo Directions
Khalsa, the Operator of MercenariesGuild.net has said a number of times that server operators are welcome to point their tremulous server http downloads at http://downloads.mercenariesguild.net (Which TJW's client would automatically point to http://downloads.mercenariesguild.net/base)
If you run a mod server that doesn't run out of "base", then chances are it will still work as the web server accepts requests for most mod directories.  If for some reason yours does not, let us know and we'll add that directory name.

If you want to view the maps in the repository, go to http://downloads.mercenariesguild.net/maps/

If any server operators or mappers have maps they'd like to have in the repository please let me know.  If you notice any actual tremulous maps that are missing, let me know.  Please restrict your requests to maps that have nodes/eggs in them and can actually be played in tremulous.

I can often be found on IRC, you can contact me through the mercenariesguild.net site or you can PM me through tremulous.net, or you can post in this thread :)

I'd also like to add that David of }MG{ has a script that downloads all of the maps for you linux users which I've included at the end of this post.

To take advantage of the }MG{MercenariesGuild map repository on your server, add the following code to your server.cfg:
Code: [Select]
set sv_wwwDownload 1
sets sv_wwwBaseURL "http://downloads.mercenariesguild.net"
sets sv_dlURL "http://downloads.mercenariesguild.net"
and make sure to remove any other references to sv_wwwDownload, sv_wwwBaseURL, and sv_dlURL.
*Thanks Kevlarman for the clarification :)

And here we have Davids script:

Code: [Select]
#!/bin/bash
cd ~/.tremulous/base
wget http://mercenariesguild.net/base/ -c -nv -np -r -l1 -nd -nH -A*.pk3
wget http://mercenariesguild.net/base/md5.list &>/dev/null
md5sum -c ./md5.list


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

Tremcentral.com Map Repository Instructions

Just adding this (yes, I am a victim of interminable laziness! :P ) and I don't yet have explicit instructions in the format that the tremcentral folks want (haven't asked yet :) ) but for today, here is a link to the thread that announced the creation of the repo.

To take advantage of the Tremcentral.com map repo on your server, add the following code to your server.cfg:
Code: [Select]
set cl_allowDownload 1
set cl_wwwDownload 1
set sv_wwwBaseURL "http://tremcentral.com"
set fs_game "base"
set sv_dlURL "http://tremcentral.com"
and make sure to remove any other references to sv_wwwDownload, sv_wwwBaseURL, and sv_dlURL.
« Last Edit: January 15, 2008, 02:45:26 pm by tuple »

DoorKnob

  • Posts: 88
  • Turrets: +0/-0
    • http://noobs4boobs.free.fr
HTTP Downloads for Servers
« Reply #1 on: March 08, 2007, 12:36:24 am »
can u add the Balance mod?
roud Ex-Leader of the Mighty UVache!

tuple

  • Posts: 833
  • Turrets: +97/-80
HTTP Downloads for Servers
« Reply #2 on: March 08, 2007, 01:19:25 am »
balance-879-16.pk3  added
We've also linked /balance to /base so it should still be http downloadable from balance servers.  Let me know it anyone tries it :)

Odin

  • Spam Killer
  • *
  • Posts: 1767
  • Turrets: +113/-204
    • My Website
HTTP Downloads for Servers
« Reply #3 on: March 08, 2007, 03:14:25 am »
Please remove data-1.1.0.pk3, as it is an unneeded download with the script, or someone tell me how to exclude it with the script.

Oh, that and all the default maps. They just don't need to be up there. We already have them.

tuple

  • Posts: 833
  • Turrets: +97/-80
HTTP Downloads for Servers
« Reply #4 on: March 08, 2007, 03:46:42 am »
Data file gone.

Default maps can be useful for testing http download configs for servers :) though you are right, I should probably remove them.

Xabiar

  • Posts: 34
  • Turrets: +1/-0
HTTP Downloads for Servers
« Reply #5 on: March 09, 2007, 02:11:22 am »
Which of these files would some1 recommend?

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
HTTP Downloads for Servers
« Reply #6 on: March 09, 2007, 04:52:11 am »
My list is much sexier. The bandwidth is not :-/
Need help? Ask intelligently. Please share solutions you find.

Thats what we need, helpful players, not more powerful admins.

tuple

  • Posts: 833
  • Turrets: +97/-80
HTTP Downloads for Servers
« Reply #7 on: March 09, 2007, 04:53:25 am »
Hard to say actually, depends on what you want with them.  Start your own server, play on servers or just explore.

I'll base my recommendations on someone who wants to play on servers that play some of these maps and would like to have them downloaded ahead of time.  This is really based solely on maps I've seen played in public servers, YRMV.

hamunaptra
UTCSb2
ancient_remains
atcszalpha
procyon
pulse-beta3
sokolov
thermal
outpost_p4
Gloom2Beta2

This map is brand spankin new, and I've seen lots of compliments about it, so I thought I'd mention it :D
Metro-b1-1

There are probably others that I'm forgetting.  There are definitely maps that are worth checking out and can make for some really fun matches, but there is a really huge list up top so I tried to keep this one a little short and restrict it just to what I've seen played to help our new players get up and running.

If you want to get LOTS of maps (most of them listed above) you should get the MG-MapPack.    It's pretty well updated and doesn't include all versions of all maps, just the most recent version.  I'm a map or two behind at times (Darn those prolific mappers! :P ) but I'm usually only missing by a day or two.

edit:Updated Metro map link to reflect new version

DoorKnob

  • Posts: 88
  • Turrets: +0/-0
    • http://noobs4boobs.free.fr
HTTP Downloads for Servers
« Reply #8 on: March 10, 2007, 01:58:56 pm »
so should my HTTP thing look like this?
Code: [Select]
set sv_wwwDownload "1"
set sv_dlURL "1"
set sv_wwwBaseURL "http://www.mercenariesguild.net/"
set sv_dlURL "http://www.mercenariesguild.net/"
set sv_wwwCheckPath ""
set sv_wwwDLDisconnected "1"
set sv_wwwFallbackURL " "
roud Ex-Leader of the Mighty UVache!

tuple

  • Posts: 833
  • Turrets: +97/-80
HTTP Downloads for Servers
« Reply #9 on: March 10, 2007, 04:50:08 pm »
I just have
Code: [Select]
set sv_wwwDownload 1
set sv_wwwBaseURL "http://www.mercenariesguild.net"
set sv_dlURL "www.mercenariesguild.net"

and it works for me personally.  Or I should say noone has complained that it doesn't work :P
I don't think you should have the trailing "/" on the url's.
A good way to test is to move whatever map file is playing on your server out of your tremulous clients base directory.  Not the servers base directory (just so there's no confusion :) )  This is why I have default maps in the repository, for testing.
Then connect to your server and see how it downloads.  You can start tremulous from the command line and that will let you look at it's output.  Although, even if you get an error window in tremulous, you can still open up the console and scroll up to see the error that http download gave you.

Not sure what these are:
Code: [Select]

set sv_dlURL "1"
set sv_wwwCheckPath ""
set sv_wwwDLDisconnected "1"
set sv_wwwFallbackURL " "

But then server variables have popped up like mushrooms so I'm not surprised I haven't heard and/or seen em before.  I'd love to know though.

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
HTTP Downloads for Servers
« Reply #10 on: March 10, 2007, 05:42:25 pm »
Code: [Select]
set sv_wwwDownload 1
sets sv_wwwBaseURL "http://www.mercenariesguild.net"
sets sv_dlURL "http://www.mercenariesguild.net"

technically it should just be sv_wwwBaseURL, but a certain balance mod writer who shall remain nameless decided to compile a client that uses sv_dlURL instead of sv_wwwBaseURL to look for downloads, so now you have to set both of them and make sure both are in the serverinfo (so use sets instead of set)
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

DoorKnob

  • Posts: 88
  • Turrets: +0/-0
    • http://noobs4boobs.free.fr
HTTP Downloads for Servers
« Reply #11 on: March 10, 2007, 07:02:25 pm »
Works perfect now Thanks a lot. :D
roud Ex-Leader of the Mighty UVache!

khalsa

  • Administrator
  • Posts: 597
  • Turrets: +187/-132
    • http://www.mercenariesguild.net
HTTP Downloads for Servers
« Reply #12 on: March 16, 2007, 05:42:59 am »
I just increased the throughput cap on /base, everyone's downloads should be faster now. :-)


Khalsa
}MG{ Mercenariesguild
ਮਨੁ ਜੀਤੇ ਜਗੁ ਜੀਤਿਆ

DoorKnob

  • Posts: 88
  • Turrets: +0/-0
    • http://noobs4boobs.free.fr
HTTP Downloads for Servers
« Reply #13 on: March 31, 2007, 01:14:02 pm »
Please add the Domination version 5 ;)
Also when you run Domination, do players have to download TJWs updates on Dom, or are they all in 1 download?
roud Ex-Leader of the Mighty UVache!

DoorKnob

  • Posts: 88
  • Turrets: +0/-0
    • http://noobs4boobs.free.fr
HTTP Downloads for Servers
« Reply #14 on: April 06, 2007, 03:33:25 pm »
Please add Domination Version 6 ;)
roud Ex-Leader of the Mighty UVache!

DoorKnob

  • Posts: 88
  • Turrets: +0/-0
    • http://noobs4boobs.free.fr
HTTP Downloads for Servers
« Reply #15 on: April 10, 2007, 10:56:40 pm »
Please add domination 7 and Relic Version 1 (http://www.v1.risujin.org/tremulous/#relic)
roud Ex-Leader of the Mighty UVache!

Killjoy#1

  • Guest
HTTP Downloads for Servers
« Reply #16 on: May 09, 2007, 05:29:26 pm »
If you want a different website for the download to you just put that site wher mg.net is?

Neo(F)

  • Posts: 34
  • Turrets: +2/-0
HTTP Downloads for Servers
« Reply #17 on: May 28, 2007, 08:01:01 pm »
Is there a way to upload your own map? :)

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
HTTP Downloads for Servers
« Reply #18 on: May 28, 2007, 08:03:20 pm »
email tuple and say where it is.
that or go the mg irc chan and find someone who can upload it there.

Should probably make a nice little upload form and all, but I cant be bothered...   SOON(TM)
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

tuple

  • Posts: 833
  • Turrets: +97/-80
HTTP Downloads for Servers
« Reply #19 on: June 19, 2007, 03:48:11 am »
Attention Server Operators

The location of the map repository has changed!  The new location that your servers should point to is:
http://downloads.mercenariesguild.net

If you want to view what is in the Repo, go to
http://downloads.mercenariesguild.net/maps/

The previous http://mercenariesguild.net/ repository URL will continue to work for the time being, but MAY at any time stop working.

I've updated the code that should be added to your server.cfg (in the initial post) to reflect this change.  I have successfully tested this change on the }MG{MercenariesGuild server.  This does not have to require a server restart.  You can try this at the console:
Code: [Select]

rcon <Password> sv_wwwBaseURL "http://downloads.mercenariesguild.net"
rcon <Password> sv_dlURL "http://downloads.mercenariesguild.net"

This will change the URL's your server passes to your clients for maps without the need of restarting the server.

You can also change your server.cfg as listed, and at the console, run
Code: [Select]

rcon <Password> exec server.cfg

This may reset your map rotation back to the start though.  Not sure, I haven't tested it.  However, you would not need to restart the server with this method either.

Paradox

  • Posts: 2612
  • Turrets: +253/-250
    • Paradox Designs
HTTP Downloads for Servers
« Reply #20 on: June 19, 2007, 08:54:03 pm »
Wont this mess up the old way of it looking in the /base directory?

∧OMG ENTROPY∧

tuple

  • Posts: 833
  • Turrets: +97/-80
HTTP Downloads for Servers
« Reply #21 on: June 19, 2007, 09:08:43 pm »
Maybe :P

If you are used to looking into http://mercenariesguild.net/base for maps you may want to put into rotation, then yes.  Checking in http://downloads.mercenariesguild.net/base doesn't show a file list at the present time.  You can still look in the MG/base directory, you can also look into http://downloads.mercenariesguild.net/maps/  Sadly, the maps page does not sort them so it's ugly to search through (manually anyways ;) ) but that should be fixed before too long.  Both sites show the same physical OS level directory so looking at one is the same as looking at the other.

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
HTTP Downloads for Servers
« Reply #22 on: June 19, 2007, 10:22:03 pm »
For servers looking in base, .htaccess magic makes all request to base go to maps.
More info here: http://mercenariesguild.net/index.php?option=com_myblog&Itemid=64
Its ugly as sin, but sort of explains it.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

Paradox

  • Posts: 2612
  • Turrets: +253/-250
    • Paradox Designs
HTTP Downloads for Servers
« Reply #23 on: June 20, 2007, 02:27:08 am »
So i should set the download url to downloads.mercenariesguild.net/maps/?

Wouldn't this just look in /maps/base?

∧OMG ENTROPY∧

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
HTTP Downloads for Servers
« Reply #24 on: June 20, 2007, 03:07:38 am »
Just set it to downloads.mercenariesguild.net
It will then look in downloads.mercenariesguild.net/base which is rewritten to downloads.mercenariesguild.net/maps

downloads.mercenariesguild.net/anyrandommod goes to /maps
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

Paradox

  • Posts: 2612
  • Turrets: +253/-250
    • Paradox Designs
HTTP Downloads for Servers
« Reply #25 on: June 20, 2007, 06:17:47 pm »
ERROR: 403 forbidden, and 403 forbidden when attempting to use an error doc.

∧OMG ENTROPY∧

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
HTTP Downloads for Servers
« Reply #26 on: June 20, 2007, 06:51:03 pm »
when and where?

and it now sorts by name...
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

tuple

  • Posts: 833
  • Turrets: +97/-80
HTTP Downloads for Servers
« Reply #27 on: June 20, 2007, 09:36:35 pm »
/maps shows the map list, trying to go to /base will give a 403 error.  If you go to http://downloads.mercenariesguild.net/base/map-atcs-1.1.0.pk3 the map download will work.  Directory indexes are forbidden at this time.  I have no idea if that will change.  Whether or not it down, looking at /maps to check what maps are in base is the same thing.

When downloading from the tremulous client (as directed by the server, it works without a hitch (or a 403 error :-P )

darklurker

  • Posts: 23
  • Turrets: +0/-0
HTTP Downloads for Servers
« Reply #28 on: June 26, 2007, 12:34:45 am »
Wow, I wish the Lair had an OC-192 Internet connection like MG... ;)

Thank you Khalsa and tuple.

DL

tuple

  • Posts: 833
  • Turrets: +97/-80
HTTP Downloads for Servers
« Reply #29 on: June 26, 2007, 01:59:33 am »
I wish!  It's a measly OC-96 :(

Just kidding.  Don't know what the connection is personally :)