Page 1 of 4 123 ... LastLast
Results 1 to 15 of 46

Thread: Converting SOE maps to SEQ maps

  1. #1
    Registered User AlphaBeta's Avatar
    Join Date
    Jan 2002
    Posts
    90

    Converting SOE maps to SEQ maps

    Does anyone have a util that converts the SOE game maps to Seq maps yet? No offence but some of the SOE maps have much better detail to them.
    -AlphaBeta

  2. #2
    Registered User
    Join Date
    Aug 2002
    Posts
    189
    There is an awk script I posted to one of the map conversion threads that does exactly that.

    http://seq.sourceforge.net/showthrea...er=4#post22344
    Last edited by ksmith; 03-17-2003 at 10:49 AM.

  3. #3
    Registered User AlphaBeta's Avatar
    Join Date
    Jan 2002
    Posts
    90
    Thanks K
    -AlphaBeta

  4. #4
    Registered User
    Join Date
    May 2002
    Posts
    60
    I tried your script and it just hangs. I'm not too familiar with awk so I don't know how to debug it offhand. I thought I might just do it in perl, which I know.

    I'm running it on a RH 8.0 box exactly as you have described. I've checked permissions and everything (script executable, write permisssions to the .map file, read permission for the .txt file) and it all looks ok. I copied the RGB.txt file into the same directory with the awk script.

    When I attempt to run it, it creates a 0k file with the correct name, but the script just hangs there. Here is what I am running:

    BEGIN {
    RS="\r\n";
    print "Converted map,converted,0,0"
    }

    /^L / {
    gsub(",", "");
    gsub("L", "");
    print "M,line," getcolorname($7, $8, $9) ",2," int(-$1) "," int(-$2) "," int($3*10) "," int(-$4) "," int(-$5) "," int($6*10);
    }

    /^P / {
    gsub(",", "");
    gsub("_", " ", $9);
    print "P," $9 "," getcolorname($5, $6, $7) "," int(-$2) "," int(-$3)
    }

    function getcolorname( r, g, b) {
    cmd = "grep \"" r " " g " " b "\" RGB.txt";
    cmd | getline color
    if (color != "") {
    split(color, C);
    return C[4];
    } else {
    print "*unknown color: " r ", " g ", " b > "/dev/stderr";
    return "unknown";
    }
    }

  5. #5
    Registered User
    Join Date
    May 2002
    Posts
    60
    The problem might be the RGB.txt file. I see that SeQ doesn't like the standard file.

  6. #6
    Registered User
    Join Date
    Aug 2002
    Posts
    189
    function getcolorname( r, g, b) {
    cmd = "grep \"" r " " g " " b "\" RGB.txt";
    Change the regex that grep is using if your RGB.txt uses tabs instead of spaces. Or even better, just have it look for any whitespace.

  7. #7
    Registered User
    Join Date
    Mar 2003
    Posts
    2
    hhmm...changed the rgb.txt and replaced the tabs with spaces..ran the script and am getting this:

    unkown color 0,0,0

    ideas?

  8. #8
    Registered User
    Join Date
    Aug 2002
    Posts
    189
    Originally posted by rathric
    hhmm...changed the rgb.txt and replaced the tabs with spaces..ran the script and am getting this:

    unkown color 0,0,0

    ideas?
    rgb.txt or RGB.txt? It's looking for RGB.txt in the current directory.

    Or just use this RGB.txt
    Last edited by ksmith; 03-26-2003 at 02:23 PM.

  9. #9
    Registered User
    Join Date
    Jan 2003
    Posts
    197
    I cant get this to work.. Yeah.. i know.. i am a n00b.. But i only get a couple of lines in that .map file..

    This if when i tried to convert the hatesfury_1.txt file :
    Converted map,converted,0,0
    M,line,black,2,-30,958,-6099,-30,965,-6099

    And that's it.. no error messages no nothing. Used the above script (named it eqmapconv.awk) and this command to convert :
    awk -f eqmapconv.awk < hatesfury_1.txt > hatesfury.map

    I also used the RGB.txt file from the link above.

    Anyone got the loy converted .map files? Could you post 'em for a lost soul like me?

  10. #10
    Registered User
    Join Date
    Jan 2003
    Posts
    197
    Oki.. it seems like many of the links to threads pointed out as URL's in posts here are not working.. Recon this has to do with the new layout and structure of the boards.

    But.. i managed to find a link where i could find the LoY .MAP files for myseq.

    http://kyle.13th-floor.org/eq/maps/gif/

    Only map there that is not complete is the nadox one tho..

  11. #11
    Registered User
    Join Date
    Dec 2001
    Posts
    55
    *edit* ok 2 hours and I got it working. Nevermind!
    Last edited by lostpacket; 04-15-2003 at 03:38 PM.

  12. #12
    Registered User
    Join Date
    Aug 2002
    Posts
    189
    If you're having problems with nothing showing up at all when you run a map through the awk script, try changing the RS from "\r\n" to just "\n".

    Gunthak map

    Dulak map

    Torgiran map

    Nadox map

    Hate's Fury map

  13. #13
    Registered User
    Join Date
    Jan 2003
    Posts
    197
    Kewl Ksmith! Thanx!!

    Now.. if the myseq just would figure out the right packets for LoY zones..

  14. #14
    Registered User
    Join Date
    Dec 2001
    Posts
    144
    hmm, Hates Fury map is a bit .. upside down. The labels are fine, but the zone bounry lines are upside down.

  15. #15
    Registered User
    Join Date
    Aug 2002
    Posts
    189
    hrm, ok... I fixed my in-game map to be right-side up... I'll re-generate the showeq map tomorrow.

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