Tremulous Forum

Community => Servers => Topic started by: tuple on March 08, 2007, 12:34:37 am

Title: HTTP Downloads for Servers
Post by: tuple on March 08, 2007, 12:34:37 am
Server Operators have two options of map download servers.
The }MG{MercenariesGuild (http://tremulous.net/forum/index.php?topic=3861.0#MGREPO) and
the Tremcentral.com (http://tremulous.net/forum/index.php?topic=3861.0#TCREPO) Map Repository

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

}MG{MercenariesGuild (http://downloads.mercenariesguild.net/maps/) 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 (#post_TCREPO) 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 (http://tremulous.net/forum/index.php?topic=6990.30) 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.
Title: HTTP Downloads for Servers
Post by: DoorKnob on March 08, 2007, 12:36:24 am
can u add the Balance mod?
Title: HTTP Downloads for Servers
Post by: tuple 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 :)
Title: HTTP Downloads for Servers
Post by: Odin 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.
Title: HTTP Downloads for Servers
Post by: tuple 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.
Title: HTTP Downloads for Servers
Post by: Xabiar on March 09, 2007, 02:11:22 am
Which of these files would some1 recommend?
Title: HTTP Downloads for Servers
Post by: Undeference on March 09, 2007, 04:52:11 am
My list is much sexier. The bandwidth is not :-/
Title: HTTP Downloads for Servers
Post by: tuple 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 (http://mercenariesguild.net/base/hamunaptra.pk3)
UTCSb2 (http://mercenariesguild.net/base/map-UTCSb2.pk3)
ancient_remains (http://mercenariesguild.net/base/map-ancient_remains-1.0.pk3)
atcszalpha (http://mercenariesguild.net/base/map-atcszalpha.pk3)
procyon (http://mercenariesguild.net/base/map-procyon.pk3)
pulse-beta3 (http://mercenariesguild.net/base/map-pulse-beta3-1.1.0.pk3)
sokolov (http://mercenariesguild.net/base/map-sokolov-1.1.pk3)
thermal  (http://mercenariesguild.net/base/map-thermal.pk3)
outpost_p4 (http://mercenariesguild.net/base/outpost_p4.pk3)
Gloom2Beta2 (http://mercenariesguild.net/base/map-gloom2beta2.pk3)

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 (http://mercenariesguild.net/base/map-metro-b1-1.pk3)

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 (http://mercenariesguild.net/base/MG-MapPack.zip).    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
Title: HTTP Downloads for Servers
Post by: DoorKnob 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 " "
Title: HTTP Downloads for Servers
Post by: tuple 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.
Title: HTTP Downloads for Servers
Post by: kevlarman 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)
Title: HTTP Downloads for Servers
Post by: DoorKnob on March 10, 2007, 07:02:25 pm
Works perfect now Thanks a lot. :D
Title: HTTP Downloads for Servers
Post by: khalsa on March 16, 2007, 05:42:59 am
I just increased the throughput cap on /base, everyone's downloads should be faster now. :-)


Khalsa
Title: HTTP Downloads for Servers
Post by: DoorKnob 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?
Title: HTTP Downloads for Servers
Post by: DoorKnob on April 06, 2007, 03:33:25 pm
Please add Domination Version 6 ;)
Title: HTTP Downloads for Servers
Post by: DoorKnob on April 10, 2007, 10:56:40 pm
Please add domination 7 and Relic Version 1 (http://www.v1.risujin.org/tremulous/#relic)
Title: HTTP Downloads for Servers
Post by: Killjoy#1 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?
Title: HTTP Downloads for Servers
Post by: Neo(F) on May 28, 2007, 08:01:01 pm
Is there a way to upload your own map? :)
Title: HTTP Downloads for Servers
Post by: David 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)
Title: HTTP Downloads for Servers
Post by: tuple 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.
Title: HTTP Downloads for Servers
Post by: Paradox on June 19, 2007, 08:54:03 pm
Wont this mess up the old way of it looking in the /base directory?
Title: HTTP Downloads for Servers
Post by: tuple 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.
Title: HTTP Downloads for Servers
Post by: David 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.
Title: HTTP Downloads for Servers
Post by: Paradox 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?
Title: HTTP Downloads for Servers
Post by: David 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
Title: HTTP Downloads for Servers
Post by: Paradox on June 20, 2007, 06:17:47 pm
ERROR: 403 forbidden, and 403 forbidden when attempting to use an error doc.
Title: HTTP Downloads for Servers
Post by: David on June 20, 2007, 06:51:03 pm
when and where?

and it now sorts by name...
Title: HTTP Downloads for Servers
Post by: tuple 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 )
Title: HTTP Downloads for Servers
Post by: darklurker 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
Title: HTTP Downloads for Servers
Post by: tuple 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 :)
Title: HTTP Downloads for Servers
Post by: Paradox on June 26, 2007, 04:54:22 am
What did you use to render the pages?
An apache hack?
Or a directory php script?
Title: HTTP Downloads for Servers
Post by: David on June 26, 2007, 03:22:25 pm
Its a simple php script I made.
Title: HTTP Downloads for Servers
Post by: KingHanco on June 28, 2007, 11:22:45 am
Is this right?

Code: [Select]
//Example Tremulous 1.1 decicated server config

set sv_pure 1

//passwords
set g_needpass 0
//set g_password password   //server password
//set rconPassword password //rcon password

//loading screen
set sv_hostname "Tremulous 1.1.0 Server"
set g_motd "http://tremulous.net/"

//disallow downloads from the server
set sv_allowdownload 0

//maximum number of clients
//greater than 24 is not recommended from a gameplay point of view
set sv_maxclients 24

//after 55 minutes, all build points are removed
set g_suddenDeathTime 55
//after 60 minutes, the game will end as a draw
set timelimit 60

//forces each team to have a similar number of players
set g_teamForceBalance 1

//following the first map, start this rotation
set g_initialMapRotation rotation1

//misc settings
set pmove_fixed     0
set sv_minRate      5000
set sv_maxRate      15000
set sv_minSnaps     10

//start this map first
map niveus

//added
set sv_wwwDownload 1
sets sv_wwwBaseURL "http://downloads.mercenariesguild.net"
sets sv_dlURL "http://downloads.mercenariesguild.net"


I'm new to ubuntu Linux. I don't know how this works. Server having a problem checking,
Title: Re: HTTP Downloads for Servers
Post by: Paradox on December 25, 2007, 07:11:47 pm
Should we add information for TremCentral?
Title: Re: HTTP Downloads for Servers
Post by: khalsa on December 26, 2007, 05:11:47 am
Should we add information for TremCentral?

Well -

1. As is with most of your and confess' ventures I'd probably wait a few months to see if it survives, you guys seem to start/stop projects randomly   and/or with little reliability

2. For me at least (from 4 different locations) your downloads are slow as hell compared to MG's.

3. I dont think there are any files in your repo not in the MG one, probably should add Bricosoft to the post though.

4.
Quote from: tremcentral.com
We reserve the right to adjust this ToS without prior notice. You will comply with this ToS even after agreeing, or not agreeing, or simply just browsing or using this site.

No


Khalsa
Title: Re: HTTP Downloads for Servers
Post by: Eternity on February 01, 2008, 01:32:38 am
Hello :)

Quote from: khalsa
3. I dont think there are any files in your repo not in the MG one, probably should add Bricosoft to the post though.
+1, they have a lot of maps !

Code: [Select]
set sv_wwwDownload 1
sets sv_dlURL "http://tremulous.bricosoft.com"
set sv_wwwBaseURL "http://tremulous.bricosoft.com"
I think that's the good code.

Cheers
Title: Re: HTTP Downloads for Servers
Post by: Paradox on April 06, 2008, 05:13:33 am
Hey david. You know how you use a php script? You don't need to. Apache can make stylish listings just fine, check out mine (http://paradoxdgn.com/junk).

I wrote a little how-to, its pretty basic, but it shows the essentials: how-to (http://paradoxdgn.com/archives/18)
Title: Re: HTTP Downloads for Servers
Post by: khalsa on April 06, 2008, 05:33:23 am
Last I checked his little php script did a lot more (http://www.mercenariesguild.net/component/option,com_myblog/show,downloads.mercenariesguild.net.html/Itemid,18/lang,en/) than made it pretty >.< We did do fancyindexing for a while before we did that though.


Khalsa
Title: Re: HTTP Downloads for Servers
Post by: ghostisback on April 14, 2008, 09:35:07 am
hi all !!!
I'm trying to put autodownload on a TremX server ... which differences have from a standard server?? I write the standard lines in server.cfg but it doesnt works.. the download always points to my IP and not to "http://downloads.mercenariesguild.net" .. any suggestion ??

Thanks All !!!
Title: Re: HTTP Downloads for Servers
Post by: Divmax on April 14, 2008, 10:00:37 am
Code: [Select]
set cl_allowDownload 1
set cl_wwwDownload 1
set sv_wwwBaseURL "http://downloads.mercenariesguild.net/"
set sv_dlURL "http://downloads.mercenariesguild.net/"
That worked for me. But when you say TremX server, sorry, MG doesn't host TremX.
Code: [Select]
tremx 0 Files
Title: Re: HTTP Downloads for Servers
Post by: David on April 14, 2008, 01:07:56 pm
TremX should be fine for maps etc off MG.
We don't have the mod, but if someone gets me a link I'll upload it.
Title: Re: HTTP Downloads for Servers
Post by: Divmax on April 18, 2008, 03:35:44 pm
http://tremulous.bricosoft.com/base/tremx/
I created a mirror :
http://funserver.zxq.net/trem/index.php?dir=tremx/
Title: Re: HTTP Downloads for Servers
Post by: ghostisback on April 18, 2008, 07:24:49 pm
http://tremulous.bricosoft.com/base/tremx/

This is to download the patch of tremX.. but to download the maps with Http??
Title: Re: HTTP Downloads for Servers
Post by: David on April 18, 2008, 08:41:22 pm
For tremx downloads point at mg the same as for normal servers.
Title: Re: HTTP Downloads for Servers
Post by: David on May 10, 2008, 08:04:47 pm
NOTE:
Some time next week, the www.mercenariesguild.net/base symlink will be deleted.  You all have had well over 6 months, so have no excuse for not doing it right.
However, the following servers still fail:

216.224.117.114:30720       `'|c|BTSiPM'`
80.86.200.120:30720           | noobrain's TremX #2
80.86.200.120:30721           | noobrain's #2
205.234.142.225:30720         Z|R

If people know who runs them, point them here so they can read the first post and fix the URL to point to downloads.mercenariesguild.net.
Title: Re: HTTP Downloads for Servers
Post by: Death On Ice on May 11, 2008, 07:44:03 pm
Dragula runs `'|c|BTSiPM'`
Title: Re: HTTP Downloads for Servers
Post by: Shuriken on May 29, 2008, 05:45:22 am
... 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...
Could you upload final release of my map on Mercenaries Guild repository? Link here: http://files.filefront.com/map+stamina+110pk3/;8493408;/fileinfo.html
Title: Re: HTTP Downloads for Servers
Post by: Lakitu7 on December 01, 2008, 03:42:50 am
... 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...
Could you upload final release of my map on Mercenaries Guild repository? Link here: http://files.filefront.com/map+stamina+110pk3/;8493408;/fileinfo.html

This is done, by the way.

Also I've gone ahead and wgetted quite a few more maps this evening. As always, if there is a map you would like to see on the repo, please contact any of us in any of the many ways we are available (though IRC is almost the fastest). Enjoy. :)
Title: Re: HTTP Downloads for Servers
Post by: ixbidie on May 27, 2009, 08:18:25 pm
Heyho, i'm not the developer, but could u add tremx-kor?

can be found on: http://64.92.167.138/maps/tremx-kor/

thanks!