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

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Automatic Tremulous Map Downloader
« Reply #60 on: August 16, 2006, 12:22:53 am »
love to see you do that on vista.

ubuntu plays trem at at 30-40 fps,
xp can only manage 25-35 (same settings)
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.

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Automatic Tremulous Map Downloader
« Reply #61 on: August 16, 2006, 12:35:03 am »
Quote from: "David"
love to see you do that on vista.
it's possible...
wait, you meant without a quad-core cpu and quad-sli? never mind then.
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| #
|.@.-##
-----

Thorn

  • Guest
Automatic Tremulous Map Downloader
« Reply #62 on: August 16, 2006, 12:35:24 am »
ok You are Both correct. Trem does play better on Linux but HEAVY ammounts of poly;s like COD2 and such do run better on windows. This is because Linux still is lacking slightly in the 3D drivers buisness. Dont worry , in another year or 2 linux will be kicking Windows small smeggy ass!

Jaradcel

  • Posts: 147
  • Turrets: +1/-0
Automatic Tremulous Map Downloader
« Reply #63 on: August 16, 2006, 02:32:24 am »
Arrr~~~

I seem to be missing quite a few maps.

Thankess~
TOP DRETCHING THE ENGINEER!!!! =(
And fer christsake, DON'T BUILD IF YOU DON'T HAVE A CLUE!

yetshi

  • Posts: 189
  • Turrets: +4/-6
Automatic Tremulous Map Downloader
« Reply #64 on: August 16, 2006, 05:01:42 am »
Tremmapdownload v.0.2 (Beta)
Copyright: Somethief 2006

Downloading tremmapdownload.php
Downloaded tremmapdownload.php

New maps found: 20
Downloading map-gloom_b1.pk3
Error downloading map-gloom_b1.pk3!
Downloading dark.pk3
Error downloading dark.pk3!
Downloading map_powergrid_b25.pk3
Error downloading map_powergrid_b25.pk3!
Downloading map-arachnid2-1.1.0.pk3
Error downloading map-arachnid2-1.1.0.pk3!
Downloading map-atcs-1.1.0.pk3
Error downloading map-atcs-1.1.0.pk3!
Downloading map-derelictb-beta03.pk3
Error downloading map-derelictb-beta03.pk3!
Downloading map-gloom2beta2.pk3
Error downloading map-gloom2beta2.pk3!
Downloading map-battlezone_b2.pk3
Error downloading map-battlezone_b2.pk3!
Downloading highrise1.pk3
Error downloading highrise1.pk3!
Downloading map-gloom3t.pk3
Error downloading map-gloom3t.pk3!
Downloading map-karith-1.1.0.pk3
Error downloading map-karith-1.1.0.pk3!
Downloading map-marsbase_b2.pk3
Error downloading map-marsbase_b2.pk3!
Downloading map-meep_b2.pk3
Error downloading map-meep_b2.pk3!
Downloading map-nexus6-1.1.0.pk3
Error downloading map-nexus6-1.1.0.pk3!
Downloading map-niveus-1.1.0.pk3
Error downloading map-niveus-1.1.0.pk3!
Downloading map-pulse-beta3-1.1.0.pk3
Error downloading map-pulse-beta3-1.1.0.pk3!
Downloading map-transit-1.1.0.pk3
Error downloading map-transit-1.1.0.pk3!
Downloading map-tremor-1.1.0.pk3
Error downloading map-tremor-1.1.0.pk3!
Downloading map-UTCSb2.pk3
Error downloading map-UTCSb2.pk3!
Downloading map-uncreation-1.1.0.pk3
Error downloading map-uncreation-1.1.0.pk3!
Done.


great program.

anybody know where i can actualy get the maps i actually dont have?

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Automatic Tremulous Map Downloader
« Reply #65 on: August 16, 2006, 05:19:54 am »
Quote from: "yetshi"
Tremmapdownload v.0.2 (Beta)
Copyright: Somethief 2006

Downloading tremmapdownload.php
Downloaded tremmapdownload.php

New maps found: 20
Downloading map-gloom_b1.pk3
Error downloading map-gloom_b1.pk3!
Downloading dark.pk3
Error downloading dark.pk3!
Downloading map_powergrid_b25.pk3
Error downloading map_powergrid_b25.pk3!
Downloading map-arachnid2-1.1.0.pk3
Error downloading map-arachnid2-1.1.0.pk3!
Downloading map-atcs-1.1.0.pk3
Error downloading map-atcs-1.1.0.pk3!
Downloading map-derelictb-beta03.pk3
Error downloading map-derelictb-beta03.pk3!
Downloading map-gloom2beta2.pk3
Error downloading map-gloom2beta2.pk3!
Downloading map-battlezone_b2.pk3
Error downloading map-battlezone_b2.pk3!
Downloading highrise1.pk3
Error downloading highrise1.pk3!
Downloading map-gloom3t.pk3
Error downloading map-gloom3t.pk3!
Downloading map-karith-1.1.0.pk3
Error downloading map-karith-1.1.0.pk3!
Downloading map-marsbase_b2.pk3
Error downloading map-marsbase_b2.pk3!
Downloading map-meep_b2.pk3
Error downloading map-meep_b2.pk3!
Downloading map-nexus6-1.1.0.pk3
Error downloading map-nexus6-1.1.0.pk3!
Downloading map-niveus-1.1.0.pk3
Error downloading map-niveus-1.1.0.pk3!
Downloading map-pulse-beta3-1.1.0.pk3
Error downloading map-pulse-beta3-1.1.0.pk3!
Downloading map-transit-1.1.0.pk3
Error downloading map-transit-1.1.0.pk3!
Downloading map-tremor-1.1.0.pk3
Error downloading map-tremor-1.1.0.pk3!
Downloading map-UTCSb2.pk3
Error downloading map-UTCSb2.pk3!
Downloading map-uncreation-1.1.0.pk3
Error downloading map-uncreation-1.1.0.pk3!
Done.


great program.

anybody know where i can actualy get the maps i actually dont have?
let me guess, you put the script into $prefix/tremulous/base, then ran it as a user. if you want it to download files to that folder, then it needs permision to write to that folder, which means either running it as root (the hackish way), or making sure your user has permision to write to that folder(and since chmoding that folder 777 is just as hackish, you need to create a new group to own that folder and chmod it 775).
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| #
|.@.-##
-----

yetshi

  • Posts: 189
  • Turrets: +4/-6
Automatic Tremulous Map Downloader
« Reply #66 on: August 16, 2006, 08:47:18 am »
useless response since this is on a win boxen and its admin by default (stupid idea for MS to do that)

[db@]Megabite

  • Posts: 613
  • Turrets: +3/-0
    • http://www.tremulous.info
Automatic Tremulous Map Downloader
« Reply #67 on: August 16, 2006, 08:51:32 am »
Quote from: "yetshi"
anybody know where i can actualy get the maps i actually dont have?


Try http://www.tremulous.info ;)

Danny
url=http://www.tremulous.info][/url]


yetshi

  • Posts: 189
  • Turrets: +4/-6
Automatic Tremulous Map Downloader
« Reply #68 on: August 16, 2006, 08:54:28 am »
yea i got it.

now to stop this thing fo recreating tremulous/base1 thru tremulous/base20 and putting the 0 length pk3 files back in it every single fucking time i try to play it will be all good.

Odin

  • Spam Killer
  • *
  • Posts: 1767
  • Turrets: +113/-204
    • My Website
Automatic Tremulous Map Downloader
« Reply #69 on: August 16, 2006, 09:52:34 am »
Heh, amazing how a simple bash script seems to work better than the originally-intended-for-use application.

Anyway, the only gripe I have about it is this:
Quote
--04:49:05--  http://tremmap.omgwtf.nl/map-pulse-beta3-1.1.0.pk3
           => `map-pulse-beta3-1.1.0.pk3'
Connecting to tremmap.omgwtf.nl|62.163.191.140|:80... connected.
HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable

    The file is already fully retrieved; nothing to do.

I'd rather it have a less cryptic message when it doesn't download because I already have the file. Eh, it doesn't matter though.

Somethief

  • Posts: 284
  • Turrets: +1/-1
    • http://www.somethief.net/
Automatic Tremulous Map Downloader
« Reply #70 on: August 16, 2006, 09:55:59 am »
Quote from: "yetshi"
Tremmapdownload v.0.2 (Beta)
Copyright: Somethief 2006

Downloading tremmapdownload.php
Downloaded tremmapdownload.php

New maps found: 20
Downloading map-gloom_b1.pk3
Error downloading map-gloom_b1.pk3!
Downloading dark.pk3
Error downloading dark.pk3!
Downloading map_powergrid_b25.pk3
Error downloading map_powergrid_b25.pk3!
Downloading map-arachnid2-1.1.0.pk3
Error downloading map-arachnid2-1.1.0.pk3!
Downloading map-atcs-1.1.0.pk3
Error downloading map-atcs-1.1.0.pk3!
Downloading map-derelictb-beta03.pk3
Error downloading map-derelictb-beta03.pk3!
Downloading map-gloom2beta2.pk3
Error downloading map-gloom2beta2.pk3!
Downloading map-battlezone_b2.pk3
Error downloading map-battlezone_b2.pk3!
Downloading highrise1.pk3
Error downloading highrise1.pk3!
Downloading map-gloom3t.pk3
Error downloading map-gloom3t.pk3!
Downloading map-karith-1.1.0.pk3
Error downloading map-karith-1.1.0.pk3!
Downloading map-marsbase_b2.pk3
Error downloading map-marsbase_b2.pk3!
Downloading map-meep_b2.pk3
Error downloading map-meep_b2.pk3!
Downloading map-nexus6-1.1.0.pk3
Error downloading map-nexus6-1.1.0.pk3!
Downloading map-niveus-1.1.0.pk3
Error downloading map-niveus-1.1.0.pk3!
Downloading map-pulse-beta3-1.1.0.pk3
Error downloading map-pulse-beta3-1.1.0.pk3!
Downloading map-transit-1.1.0.pk3
Error downloading map-transit-1.1.0.pk3!
Downloading map-tremor-1.1.0.pk3
Error downloading map-tremor-1.1.0.pk3!
Downloading map-UTCSb2.pk3
Error downloading map-UTCSb2.pk3!
Downloading map-uncreation-1.1.0.pk3
Error downloading map-uncreation-1.1.0.pk3!
Done.


great program.

anybody know where i can actualy get the maps i actually dont have?


Try this: enter your tremulous directory with explorer (by clicking my computer and so on), and run tremmapdownload.exe by clicking it in tremulous dir.
url=http://fi.tremulous.net/]Tremulous Suomi[/url]
My blog

yetshi

  • Posts: 189
  • Turrets: +4/-6
Automatic Tremulous Map Downloader
« Reply #71 on: August 16, 2006, 10:26:09 am »
ran it that way since i dont like a cluttered desktop.

base1 to base20 each with a single 0 length .pk3 file, one for each map.

i remove them, the next time i load the game up they get recreated.

MadMan2k

  • Posts: 58
  • Turrets: +0/-0
Automatic Tremulous Map Downloader
« Reply #72 on: August 16, 2006, 01:32:18 pm »
I dont want do dispraise your work, but whats wrong with rsync/zsync?

Somethief

  • Posts: 284
  • Turrets: +1/-1
    • http://www.somethief.net/
Automatic Tremulous Map Downloader
« Reply #73 on: August 17, 2006, 11:34:34 am »
Ok, i finished the update of tremmapdownload, you can get v. 0.3 here

Changes:
- Fixed that bug with shotcuts
- Automatic updates
- More settings
etc small crap..
url=http://fi.tremulous.net/]Tremulous Suomi[/url]
My blog

Glunnator

  • Posts: 865
  • Turrets: +5/-6
Automatic Tremulous Map Downloader
« Reply #74 on: August 17, 2006, 01:28:56 pm »
Aw the "available for mac" isn't in the changes list :(

Quote from: (Cebt)Glunnator
HAVE FUN PPL, IT'S THE MEANING OF LIFE TO LOOK AT THE BRIGHT SIDE OF IT! ;)

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Automatic Tremulous Map Downloader
« Reply #75 on: August 17, 2006, 06:25:18 pm »
Quote from: "Glunnator"
Aw the "available for mac" isn't in the changes list :(
macs have bash, grab david's script and stick it in one of the base folders (unless you're using classic, but then you have bigger problems than an automatic downloader).
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| #
|.@.-##
-----

Mwa

  • Posts: 117
  • Turrets: +0/-0
    • http://www.mwaness.com
Automatic Tremulous Map Downloader
« Reply #76 on: August 18, 2006, 07:47:07 pm »
Quote from: "David"
the $[ ] has been deprecated and is going to be removed, so for future proofing

Code: [Select]
#!/bin/bash

#get the raw file list
Files=`wget http://tremmap.omgwtf.nl/tremmapdownload.php -q -O -`

#line count
Lines=`echo -e "$Files" | wc -l`

#download the files (skip the first 3 lines, they are a header)
echo -e "$Files" | tail --lines=$(($Lines - 3)) - | wget -i - -c -B http://tremmap.omgwtf.nl/


i also added the -c

Out of interest, how does it know to shove the files in ~/tremulous/base?
Or do you put the script in ~/tremulous/base?
awr.

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Automatic Tremulous Map Downloader
« Reply #77 on: August 18, 2006, 08:03:13 pm »
it uses the surrent directory.

stick a cd ~/.tremulous/base at the top.

should prob also do DIRTMP=`pwd` at the top and cd $DIRTMP at the bottom so it leaves you where it found you.
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.

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Automatic Tremulous Map Downloader
« Reply #78 on: August 19, 2006, 07:03:19 am »
Quote from: "David"
it uses the surrent directory.

stick a cd ~/.tremulous/base at the top.

should prob also do DIRTMP=`pwd` at the top and cd $DIRTMP at the bottom so it leaves you where it found you.
why? i don't think many people will run it as
Code: [Select]
$ . ./updatemaps without the leading '.', it is executed in a new shell, and cd has no affect on the parent shell
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| #
|.@.-##
-----

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Automatic Tremulous Map Downloader
« Reply #79 on: August 19, 2006, 10:42:56 am »
Quote from: "kevlarman"
Quote from: "David"
it uses the surrent directory.

stick a cd ~/.tremulous/base at the top.

should prob also do DIRTMP=`pwd` at the top and cd $DIRTMP at the bottom so it leaves you where it found you.
why? i don't think many people will run it as
Code: [Select]
$ . ./updatemaps without the leading '.', it is executed in a new shell, and cd has no affect on the parent shell


thanks, i always wondered what that dot did.
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.

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Automatic Tremulous Map Downloader
« Reply #80 on: August 19, 2006, 04:41:56 pm »
i found that out because at school, the macs refused to run ~/.bashrc when you start a terminal, so i had to either 'exec bash' (which somehow fixed it?!) or '. ~/.bashrc'
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| #
|.@.-##
-----

Odin

  • Spam Killer
  • *
  • Posts: 1767
  • Turrets: +113/-204
    • My Website
Automatic Tremulous Map Downloader
« Reply #81 on: August 20, 2006, 03:58:34 am »
Is it just me, or has the site been thoroughly ddosed by this?

Anyway, I'd like to be able to set up my own map repository on my site, since I have unlimited bandwidth anyway.

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
Automatic Tremulous Map Downloader
« Reply #82 on: August 20, 2006, 10:00:21 am »
Quote
Code: [Select]
#!/bin/bash

#get the raw file list
Files=`wget http://tremmap.omgwtf.nl/tremmapdownload.php -q -O -`

#line count
Lines=`echo -e "$Files" | wc -l`

#download the files (skip the first 3 lines, they are a header)
echo -e "$Files" | tail --lines=$(($Lines - 3)) - | wget -i - -c -B http://tremmap.omgwtf.nl/

A little known feature of tail allows skipping certain lines. So here's my version:

Code: [Select]
#!/bin/bash
wget http://tremmap.omgwtf.nl/tremmapdownload.php -q -O - | tail -n+4 | wget -i - -c -B http://tremmap.omgwtf.nl/


Look, Ma, no semicolons!
(A new version could use checksums, mirrors, and multiple concurrent downloads.)
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 #83 on: August 20, 2006, 12:04:32 pm »
Quote from: "Odin"
Is it just me, or has the site been thoroughly ddosed by this?

Anyway, I'd like to be able to set up my own map repository on my site, since I have unlimited bandwidth anyway.


I have too and the server has too :)
The traffic is very heavy, site shared 20gb of new maps in first 3days..
url=http://fi.tremulous.net/]Tremulous Suomi[/url]
My blog

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Automatic Tremulous Map Downloader
« Reply #84 on: August 20, 2006, 03:28:00 pm »
is that a problem?

maby we could make the script use a random mirror.
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.

Odin

  • Spam Killer
  • *
  • Posts: 1767
  • Turrets: +113/-204
    • My Website
Automatic Tremulous Map Downloader
« Reply #85 on: August 20, 2006, 04:13:02 pm »
Quote from: "Undeference"
A new version could use checksums, mirrors, and multiple concurrent downloads.
And bittorrent.

Somethief

  • Posts: 284
  • Turrets: +1/-1
    • http://www.somethief.net/
Automatic Tremulous Map Downloader
« Reply #86 on: August 20, 2006, 04:13:48 pm »
Quote from: "David"
is that a problem?

maby we could make the script use a random mirror.


Not problem to me
url=http://fi.tremulous.net/]Tremulous Suomi[/url]
My blog

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Automatic Tremulous Map Downloader
« Reply #87 on: August 20, 2006, 06:07:37 pm »
Quote from: "Odin"
Quote from: "Undeference"
A new version could use checksums, mirrors, and multiple concurrent downloads.
And bittorrent.


need a few more pwople for bit torrent to work.
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.

Aninhumer

  • Posts: 116
  • Turrets: +0/-0
Automatic Tremulous Map Downloader
« Reply #88 on: August 20, 2006, 06:57:06 pm »
It might be worth putting all the beta maps into a .torrent?
(EDIT: This could be updated by RSS, making it a much easier way to keep your maps current. And take at least some strain off the server)

I might do that if people think it's a good idea? (EDIT: Although I don't know if I could keep an RSS up to date)

Although perhaps there aren't enough users.

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Automatic Tremulous Map Downloader
« Reply #89 on: August 20, 2006, 07:04:52 pm »
when there is a new map we are all downloading, it could work.
other times i doubt there are enough people downloading concurrently for it to work. also, we would need a permanent seed.
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.