Results 1 to 15 of 17

Thread: script I came up with to download and convert all maps

Hybrid View

  1. #1
    Registered User
    Join Date
    Jun 2003
    Posts
    550

    script I came up with to download and convert all maps

    This uses the "mapconvert" script that is stickied in this forum section.

    have a copy of mapconvert in your home folder that you launch SEQ from along with the contents of this script (named whatever you wish it)

    Code:
    #!/bin/bash
    
    wget http://www.mapfiend.net/fetchpack/ALL
    
    mkdir tmpmaps
    mv ALL tmpmaps/all.zip
    cd tmpmaps
    
    unzip all.zip
    
    rm all.zip
    rm *_2.txt
    
    ../mapconvert
    
    mv *.map $HOME/.showeq/maps
    rm *.txt
    cd ..
    rmdir tmpmaps
    I delete the _2's since I don't want the text that shows up in the 2nd layer (comes in handy in game, but not here). The mapconvert script is smart enough to handle the missing _2 files.

    Depending on how you have your permissions set up, you may need to sudo to run it to overwrite any old maps.

    It took about 50 minutes to run the script on my linux box.

    In case anyone's interested. Enjoy.
    Last edited by uRit1u2CBBA=; 01-29-2009 at 11:47 PM.

  2. #2
    Developer
    Join Date
    Jun 2003
    Posts
    446

    Re: script I came up with to download and convert all maps

    Nice, thanks

  3. #3
    Registered User
    Join Date
    Jun 2003
    Posts
    550

    Re: script I came up with to download and convert all maps

    Glad someone else will take advantage of it.

    His "mapconvert" script has been there for over a year, and I never even tried to use it until now. When I saw how slick it was, I had to find a way to automate the download process and copy process to go with it.

    Sure beats the alternative, which was to load each _1.txt file in seq, save it as a .map file, then run my "recolor" script one at a time which changes all of the blacks to white (I think I did manage to write a script to do many _1.map files at once and result in a .map file, but don't need that anymore )

    Now the only thing left to do is to put it into cron, and it will keep maps up to date for me without me needing to do anything

  4. #4
    Developer
    Join Date
    Nov 2007
    Posts
    539

    Re: script I came up with to download and convert all maps

    Very nice.

  5. #5
    Registered User
    Join Date
    Jul 2004
    Posts
    329

    Re: script I came up with to download and convert all maps

    Can you post a zip or tar so I can download it and get the latest maps into the ubuntu package?

  6. #6
    Developer
    Join Date
    Nov 2007
    Posts
    539

    Re: script I came up with to download and convert all maps

    I will put together a new map pack. I have been meaning to update mine. Going through the maps now, making sure everything is clean.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

You may post new threads
You may post replies
You may post attachments
You may edit your posts
HTML code is Off
vB code is On
Smilies are On
[IMG] code is On