Tremulous Forum
General => General Discussion => Topic started by: AzraelUK on December 09, 2006, 02:34:24 pm
-
I made a script to download all the 3rd party maps off of tremulous.info's servers into your base directory.
Instructions:
1. Copy+paste the code into a text document, and save it as 'tremmaps'.
2. Open up the console, and type in 'chmod u+x tremmaps'
3. Then type './tremmaps'. You no longer have to be root like in previous versions because David pointed out that tremulous reads from ~/.tremulous as well as /usr/local/share/games/tremulous.
Code:
#!/bin/sh
#!/bin/sh
clear
version="0.4"
currentdir=$PWD
BOLD="\033[1m"
END="\033[0m"
ERR="\033[31m"
cd ~/.tremulous/base
echo "Tremulous Map downloader v$version"
echo "Copyright 2006 Peter \"Azrael\" Bunyan"
echo
echo $BOLD">> Beginning File Download..."$END
wget -nv -rN -r -l1 -A "*.pk3" http://mercenariesguild.net/base/ -nd && echo $BOLD"-- Files downloaded."$END || echo $ERR"!! Files did not download properly!"$END
echo $BOLD"Done!"$END
cd $currentdir
exit 0
Edit: I should point out that this TremMaps thing is as much of a learning experience for me as it is a utility for you. As such, any constructive criticism will be welcomed. This version will be under development all the time, so I've added a version variable.
-
You have to be root?
No way I'm running that.
#!/bin/bash
cd ~/.tremulous/base
wget http://www.techmight.com/base/ -c -nv -np -r -l1 -nd -nH -A*.pk3
does exactly the same....
EDIT: Nice poll...
-
The second option should read "Hello NO!"
-
A) I doubt you have permission to leech off tremulous.info
B) Your script,poll, and ascii art suxorz.
C) David's script pwned yours. Does the same thing, gives you access to many many more maps, and is still fresh in the morning.
D) Your poll is stupid. I voted no.
Khalsa
-
A) I doubt you have permission to leech off tremulous.info
B) Your script,poll, and ascii art suxorz.
C) David's script pwned yours. Does the same thing, gives you access to many many more maps, and is still fresh in the morning.
D) Your poll is stupid. I voted no.
Khalsa
Thanks for that. I can learn a lot from what you just said.
As such, any constructive criticism will be welcomed.
Not sure you lot noticed the word 'CONSTRUCTIVE'. Jackass.
You have to be root?
No way I'm running that.
#!/bin/bash
cd ~/.tremulous/base
wget http://www.techmight.com/base/ -c -nv -np -r -l1 -nd -nH -A*.pk3
does exactly the same....
EDIT: Nice poll...
I use Ubuntu, so I'm used to using sudo. It doesn't like it without sudo.
I've never heard of techmight, I'll update it to use that if I can get permission from them.
-
First, the maps should go in the ~/.tremulous/base folder, of if not, it should let you run it as some other user account.
Lots of servers will have a trem account, and some not root access.
You can use test -w to check if you can write there.
Also, tremulous.info has before asked people not to take maps from there with scripts.
Also, remembering the folder isn't necessary, as unless you run it with . ./tremmaps, the change will not be remembered. (I used to make the same mistake).
Sorry my last post was so critical.
-
Thanks for the info David - do you know about techmight.com's policy on script downloading?
-
Khalsa just moved it all to http://mercenariesguild.net/base/
I think techmight is going to redirect to there.
afaik its free for all.
-
Not sure you lot noticed the word 'CONSTRUCTIVE'. Jackass.
What kahlsa did was constructive, but maybe you need a ubuntu-gui if you can not access the information directly :P
Anyhows, you introduced yourself quite nicely and made sure that you get loads less help after this.
As for your script... didn't it cross your mind that downloading without any checks can screw up your game to the point you have to reinstall?
Another thing...
echo "Copyright 2006 Peter \"Azrael\" Bunyan"
that line is totally inapropriate as you did not invent something new, granted it does boost one's ego to see a copyright with one's name in it, but that is all it does in this instance.
-
I was in the process of moving things from techmight to the main MG website when David posted this, this morning.
Everyone is welcome to use www.mercenariesguild.net/base for their scripts, in-game http downloads, or any other use you come up with.
Khalsa
-
Thanks Khalsa, highly appreciated. If the traffic gets too much, talk to me :)
-
Thanks Khalsa, highly appreciated. If the traffic gets too much, talk to me :)
No problem. If the traffic gets to be around 50-60gb per month for that directory + the main MG website(www.mercenariesguild.net (http://www.mercenariesguild.net) , check it out lot's of cool things :-P [shameless plug] ) I'll spread it around some other servers (like techmight), or I will definitely contact you.
Thanks for the offer of help!
Khalsa