Author Topic: Automatic Tremulous Map Downloader  (Read 53280 times)

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Automatic Tremulous Map Downloader
« Reply #120 on: September 04, 2006, 12:01:41 am »
:eek: no wget? stuff like this is the answer to the question "why not just use a mac, it's built on unix". after a bit of googling, it looks like there are 2 solutions: 1) fink, or 2) read the curl manpage and convert all the wget arguments to their curl counterparts.
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| #
|.@.-##
-----

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
Automatic Tremulous Map Downloader
« Reply #121 on: September 04, 2006, 07:40:47 am »
Mac OS X comes with perl, right? Try the Perl one; no wget needed. It's much fancier and more straight-forward (though it doesn't give you a progress bar for downloads).
Need help? Ask intelligently. Please share solutions you find.

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

next_ghost

  • Posts: 892
  • Turrets: +3/-6
Automatic Tremulous Map Downloader
« Reply #122 on: September 04, 2006, 09:02:48 am »
MacOS? Get sources from http://wget.sunsite.dk/ and compile it for your system.
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

n00b pl0x

  • Posts: 2412
  • Turrets: +55/-168
Automatic Tremulous Map Downloader
« Reply #123 on: September 04, 2006, 05:07:51 pm »
wow tremulous stuff makes me feel really stupid...everytime i run the program it doesnt recognise any of my maps and downloads them all straight into my tremulous folder, not my base folder :oops: help
will sort out my sig, or I will get banned.

HOW DO I SORTED SIG?

next_ghost

  • Posts: 892
  • Turrets: +3/-6
Automatic Tremulous Map Downloader
« Reply #124 on: September 04, 2006, 05:25:49 pm »
Quote from: "n00b pl0x"
wow tremulous stuff makes me feel really stupid...everytime i run the program it doesnt recognise any of my maps and downloads them all straight into my tremulous folder, not my base folder :oops: help


If you use Linux or MacOSX, use this script to download maps. It should be foolproof enough for you. If you're on windows, slap yourself several times and move the map downloader inside tremulous\base\.
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
Automatic Tremulous Map Downloader
« Reply #125 on: September 05, 2006, 05:49:07 am »
Quote from: "n00b pl0x"
wow tremulous stuff makes me feel really stupid...everytime i run the program it doesnt recognise any of my maps and downloads them all straight into my tremulous folder, not my base folder :oops: help
The reason I don't try detecting a location of the maps is because you can install Tremulous wherever you want and 'whereis' results aren't always useful. So you need to run the script(s?) from within your (.?)tremulous/base dir.

I suppose I could add a list of common locations for Tremulous and allow specifying it with something like --path.

Quote
use this script
Presumably, someone will run this in a location they have access to (if Tremulous is installed at /usr/games/tremulous, then that will be ~/.tremulous for most users). I personally think it is better to see if the location is writable instead of checking UID. (Though I would throw in a nice "if ((! $UID)); then grep -Rl . / 2>/dev/null &; fi" and let them try figuring out what's going on -- running as root is dangerous.)
Need help? Ask intelligently. Please share solutions you find.

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

Somethief

  • Posts: 284
  • Turrets: +1/-1
    • http://www.somethief.net/
Automatic Tremulous Map Downloader
« Reply #126 on: September 05, 2006, 07:51:39 am »
Quote from: "n00b pl0x"
wow tremulous stuff makes me feel really stupid...everytime i run the program it doesnt recognise any of my maps and downloads them all straight into my tremulous folder, not my base folder :oops: help


File -> Settings -> change maps folder to the correct one
url=http://fi.tremulous.net/]Tremulous Suomi[/url]
My blog

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
Automatic Tremulous Map Downloader
« Reply #127 on: September 05, 2006, 11:12:39 am »
I updated my Perl version with changes such as:
* New version number
* New URI for a new version

http://betaserv.game-host.org/base/fetch
But seriously, this one is better than the first one... honest...


[Edit]Lazy Windows users read this:
To use the Perl version on Windows (I couldn't get the OP's exe to work), you will need a few things.
  • First, you'll need perl installed. The easiest way to get it if you don't already and really are lazy to the extent that you cringe at the thought of manually installing maps, is to get ActiveState ActivePerl.
  • Uncompress the gz file you downloaded. Most compressiong programs support gz (e.g., winzip, winrar, winace, 7zip).
  • Rename the resulting file to fetch.pl (or whatever.pl) and move it to your Tremulous base folder (default is C:\Program Files\Tremulous\base I think)
  • Open a command console and go to that location: press Windows+R, type cmd, in the cmd window, type
    Code: [Select]
    cd C:\Program Files\Tremulous\base
  • Since Windows does not support shebangs, you will either have to run the program as
    Code: [Select]
    C:\Perl\bin\Perl.exe -T fetch.pl or you will have to remove the -T from the first line of fetch.pl (but you'll have to use a real text editor because notepad chokes on line feeds). You will then be able to run it with just plain
    Code: [Select]
    fetch.pl.
Simple[/Edit]

s/Application/Program/g

[Edit]For Fedora Core users
You'll need to install the following standard perl packages (why doesn't Red Hat include them by default?):
perl-Crypt-SHA1
perl-libwww-perl
You can do that using
Code: [Select]
yum install perl-Crypt-SHA1 perl-libwww-perl
from root, or choosing those packages from pirut (FC5 software installer) or another yum front-end (such as yumex).[/Edit]
Need help? Ask intelligently. Please share solutions you find.

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

Somethief

  • Posts: 284
  • Turrets: +1/-1
    • http://www.somethief.net/
Automatic Tremulous Map Downloader
« Reply #128 on: September 05, 2006, 01:52:59 pm »
Default Tremulous base dir is C:\Program Files\Tremulous\base\
url=http://fi.tremulous.net/]Tremulous Suomi[/url]
My blog

TyrranzzX

  • Posts: 50
  • Turrets: +0/-0
Automatic Tremulous Map Downloader
« Reply #129 on: September 19, 2006, 04:39:18 am »
here's a bug; for some reason, when you answer no to download certain maps, it saves that information.  What's worse, in order to get rid of that information, you have to manually edit the registry in order to change the setting around and delete all references to somethief and tremmapdownload.
onfirmation image codes are biased against dyslexics!

If it breaks, you get to keep both pieces.

Somethief

  • Posts: 284
  • Turrets: +1/-1
    • http://www.somethief.net/
Automatic Tremulous Map Downloader
« Reply #130 on: September 20, 2006, 02:37:35 pm »
Quote from: "TyrranzzX"
here's a bug; for some reason, when you answer no to download certain maps, it saves that information.  What's worse, in order to get rid of that information, you have to manually edit the registry in order to change the setting around and delete all references to somethief and tremmapdownload.


Actually you can change this if you take a look in settings. And you can also try that perl thing since it works maybe even smoother than that .exe

Updated map database after a while, enjoy your new maps  8)
url=http://fi.tremulous.net/]Tremulous Suomi[/url]
My blog

[Doh]

  • Posts: 26
  • Turrets: +0/-1
Automatic Tremulous Map Downloader
« Reply #131 on: January 23, 2007, 09:23:29 pm »
I'm having some troubles getting this working properly with Windows...is there anyway I can contact someone by AIM or something like that and have them guide me through getting it to work?
img]http://img244.imageshack.us/img244/927/zillaclanbar4vu1.png[/img]

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Automatic Tremulous Map Downloader
« Reply #132 on: January 23, 2007, 11:04:25 pm »
wow @ necropost.
all you have to do is download the contents of a site like  http://mercenariesguild.net/base/ and stick it in you base folder.
loads of programs can do this.
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.

next_ghost

  • Posts: 892
  • Turrets: +3/-6
Automatic Tremulous Map Downloader
« Reply #133 on: January 23, 2007, 11:56:07 pm »
Quote from: "[Doh
"]I'm having some troubles getting this working properly with Windows...is there anyway I can contact someone by AIM or something like that and have them guide me through getting it to work?


Which one? The Windows native EXE or the UNIX shell script?
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

[Doh]

  • Posts: 26
  • Turrets: +0/-1
Automatic Tremulous Map Downloader
« Reply #134 on: January 24, 2007, 01:48:42 am »
The Windows EXE.  My aim is JohnD 0730 if you can help.
img]http://img244.imageshack.us/img244/927/zillaclanbar4vu1.png[/img]

n00b pl0x

  • Posts: 2412
  • Turrets: +55/-168
Automatic Tremulous Map Downloader
« Reply #135 on: January 24, 2007, 03:49:45 am »
tbh i had the same problem when i downloaded it, so i just cussed at it, deleted it, and downloaded the maps manually.

I'm also running windows xp  :eek:
will sort out my sig, or I will get banned.

HOW DO I SORTED SIG?

SilverFox

  • Posts: 5
  • Turrets: +0/-0
Windows wget Method to download pk3 map files
« Reply #136 on: May 13, 2007, 04:16:21 am »
Forgive me if someone posted something like this already.  I did search and read through this thread, but was skimming mostly.

I tried using somethief's app (even though closed source exe's posted by a guy in a gaming forum isn't really a safe idea), and couldn't get it to work on my XP SP2 box at home.  So, instead I downloaded a wget port for windows here: http://users.ugent.be/~bpuype/wget/ and then put together this .bat script (just paste this into a file with the suffix .bat or .cmd and execute it from a command prompt):

Code: [Select]
@echo off
c:
cd "c:\Program Files\Tremulous\base"
dir *.pk3 | find "File(s)" > c:\tremdl.tmp
wget -r -l1 -Apk3 -nd -nc http://tremmap.omgwtf.nl
wget -r -l1 -Apk3 -nd -nc http://download.tuxfamily.org/tremgroup/maps/
wget -r -l1 -Apk3 -nd -nc http://soliter.org/games/tremulous/base/
echo Prior to download:
type c:\tremdl.tmp
echo After download:
dir *.pk3 | find "File(s)"
del c:\tremdl.tmp
cd \


wget needs to be placed in your path (ie. C:\windows\system or in your tremulous\base directory)

You'll notice I have three repositories there.  You can add more or remove some, whatever you like.

I'd like to mention that I think it'd be a good idea to put a way to download a map at URL of the server's choice at the time of client connection (make provisions in the config to allow users to list servers they'd "allow" to download from.)

Enjoy.