Page 2 of 4 FirstFirst 1234 LastLast
Results 16 to 30 of 46

Thread: Converting SOE maps to SEQ maps

  1. #16
    Registered User
    Join Date
    Sep 2002
    Posts
    231
    There is an awk script I posted to one of the map conversion threads that does exactly that.

    http://seq.sourceforge.net/showthre...ber=4#post22344
    This link seems broken.... Could you repost the script?

  2. #17
    Registered User
    Join Date
    Dec 2001
    Posts
    118
    Ama,

    Check your pms.

  3. #18
    Registered User domesticbeer's Avatar
    Join Date
    Dec 2001
    Posts
    146
    Fatal can you pm me with it too.
    Beer


  4. #19
    Registered User
    Join Date
    Dec 2001
    Posts
    19
    Me 2 plz

    \\\ Topgun

  5. #20
    Registered User
    Join Date
    Nov 2002
    Posts
    48
    I hate to say it...But I also would like a copy of that script since the converter isnt working online...

  6. #21
    Registered User
    Join Date
    Dec 2002
    Posts
    21
    Same here please.

    What's the latest word about this showing up at eq-toolbox?

    INDY

  7. #22
    Registered User
    Join Date
    Aug 2002
    Posts
    189
    Since the original awk script is buried in the middle of a rather long thread, here it is again.

    Code:
    #!/bin/awk -f
    
    BEGIN {
        #RS="\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,    color, cmd) {
        #print "*looking up color: " r " " g " " b > "/dev/stderr";
        cmd = "grep \"" r " " g " " b "\" RGB.txt";
        cmd | getline color
        close(cmd);
        if (color != "") {
            split(color, C);
            #print "**found: " C[4] > "/dev/stderr";
            return C[4];
        } else {
            print "**unknown color: " r " " g " " b > "/dev/stderr";
            return "unknown";
        }
    }
    This awk script expects a space delimited RGB.txt file to exist so it can convert the RGB color values to a name for showeq.

    Usage:
    Code:
    awk -f eqtomap.awk < hateplaneb_1.txt > Hateplaneb.map

  8. #23
    Registered User
    Join Date
    Oct 2002
    Posts
    107
    OK, i ran the guka map through the converter (nice work btw), its seems like its working mostly, except for the line color i believe is was is showing as unknown.

    I used the RGB.txt file posted earlier in this thread and Im guessing something isnt lining up right?

    Im still looking at it trying to see what i am messing up, but if someone knows right off any help is appreciated

    Thanks,
    J

    This is a sample error line, there are plenty more.
    **unknown color: 0 0 240


    Here's the converted map.
    Converted map,converted,0,0
    M,line,unknown,2,-326,984,10,-326,1018,-20
    M,line,unknown,2,-433,833,10,-433,801,-20
    M,line,unknown,2,-323,832,10,-323,798,-20
    M,line,unknown,2,-379,832,10,-378,798,-20
    M,line,unknown,2,-292,831,10,-461,833,10
    M,line,unknown,2,-292,908,-130,-292,831,10
    M,line,unknown,2,-380,987,10,-381,1018,-20
    M,line,unknown,2,-436,983,10,-436,1016,-20
    M,line,unknown,2,-292,985,10,-462,982,10
    M,line,unknown,2,-291,909,-140,-292,985,10
    M,line,unknown,2,-326,967,-250,-323,851,-250
    M,line,unknown,2,-381,968,-250,-379,853,-250
    M,line,unknown,2,-436,968,-250,-433,855,-250
    M,line,unknown,2,-281,908,-130,-503,908,-500
    M,line,unknown,2,-14,905,-120,-281,908,-130
    M,line,unknown,2,-14,878,-120,-14,905,-120
    M,line,unknown,2,29,876,-140,-14,878,-120
    M,line,unknown,2,-78,1397,-500,-51,1394,-500
    M,line,unknown,2,-78,1324,-500,-78,1397,-500
    M,line,unknown,2,45,1399,-500,28,1398,-500
    M,line,unknown,2,50,1327,-500,45,1399,-500
    M,line,unknown,2,-49,1281,-600,-15,1280,-650
    M,line,unknown,2,-80,1301,-560,-49,1281,-600
    M,line,unknown,2,-83,1319,-510,-80,1301,-560
    M,line,unknown,2,-59,1342,-490,-83,1319,-510
    M,line,unknown,2,4,1342,-430,-59,1342,-490
    M,line,unknown,2,50,1327,-500,4,1342,-430
    M,line,unknown,2,50,1300,-570,50,1327,-500
    M,line,unknown,2,40,1281,-570,50,1300,-570
    M,line,unknown,2,-15,1282,-650,40,1281,-570
    M,line,unknown,2,-14,1137,-220,-15,1282,-650
    M,line,unknown,2,-12,1080,-230,-14,1137,-220
    M,line,unknown,2,22,1079,-230,-12,1080,-230
    M,line,unknown,2,22,1079,-230,22,999,-230
    M,line,unknown,2,34,999,-230,22,999,-220
    M,line,unknown,2,27,817,-120,34,999,-230
    M,line,unknown,2,30,897,-120,158,900,-180
    M,line,unknown,2,-23,-283,-520,86,-279,-510
    M,line,unknown,2,-257,-516,-260,-185,-513,-250
    M,line,unknown,2,-185,-513,-250,-184,-485,-250
    M,line,unknown,2,-184,-485,-250,-148,-485,-240
    M,line,unknown,2,-148,-485,-240,-43,-485,-410
    M,line,unknown,2,-43,-485,-410,52,-490,-250
    M,line,unknown,2,-47,-485,-410,-50,-640,-260
    M,line,unknown,2,-44,-485,-410,-50,-351,-250
    M,line,unknown,2,-50,-351,-250,-51,-350,-250
    M,line,unknown,2,-51,-350,-250,-18,-351,-250
    M,line,unknown,2,-18,-351,-250,-27,-239,-250
    M,line,unknown,2,-26,-246,-250,-56,-240,-250
    M,line,unknown,2,-56,-240,-250,-53,-218,-250
    M,line,unknown,2,-27,-239,-250,1,-237,-250
    M,line,unknown,2,1,-237,-250,1,-215,-250
    M,line,unknown,2,1,-215,-250,29,-214,-250
    M,line,unknown,2,29,-214,-250,25,-74,0
    M,line,unknown,2,25,-74,0,59,-36,0
    M,line,unknown,2,59,-36,0,56,30,0
    M,line,unknown,2,56,30,0,20,65,-20
    M,line,unknown,2,56,3,0,-40,-2,0
    M,line,unknown,2,-40,-2,0,-37,-27,0
    M,line,unknown,2,-37,-27,0,-77,-27,-10
    M,line,unknown,2,-77,-27,-10,-75,72,0
    M,line,unknown,2,-76,16,-10,-120,17,0
    M,line,unknown,2,-120,17,0,-125,41,0
    M,line,unknown,2,-125,41,0,-167,43,-10
    M,line,unknown,2,-167,43,-10,-162,9,0
    M,line,unknown,2,-162,9,0,-196,10,0
    M,line,unknown,2,-122,45,0,-121,203,-210
    M,line,unknown,2,-121,203,-210,-178,275,-210
    M,line,unknown,2,-178,275,-210,-176,365,-210
    M,line,unknown,2,-176,365,-210,-209,364,-210
    M,line,unknown,2,-209,364,-210,-208,402,-220
    M,line,unknown,2,-208,402,-220,-164,405,-220
    M,line,unknown,2,-164,405,-220,-165,453,-210
    M,line,unknown,2,-165,453,-210,-138,453,-210
    M,line,unknown,2,-138,453,-210,-140,493,-210
    M,line,unknown,2,-140,493,-210,-165,494,-230
    M,line,unknown,2,-165,494,-230,-171,531,-170
    M,line,unknown,2,-165,490,-220,-224,485,-210
    M,line,unknown,2,-224,485,-210,-247,456,-210
    M,line,unknown,2,-131,452,-210,28,449,-450
    M,line,unknown,2,28,449,-450,23,417,-450
    M,line,unknown,2,23,417,-450,117,376,-350
    M,line,unknown,2,117,376,-350,180,404,-420
    M,line,unknown,2,110,372,-350,96,326,-310
    M,line,unknown,2,96,326,-310,115,298,-130
    M,line,unknown,2,113,387,-340,123,452,-170
    M,line,unknown,2,123,452,-170,95,451,-170
    M,line,unknown,2,95,451,-170,94,524,-170
    M,line,unknown,2,94,524,-170,204,527,-170
    M,line,unknown,2,141,528,-170,141,649,-330
    M,line,unknown,2,141,649,-330,107,649,-330
    M,line,unknown,2,107,649,-330,106,676,-330
    M,line,unknown,2,106,676,-330,5,689,-330
    M,line,unknown,2,5,689,-330,5,813,-120
    M,line,unknown,2,5,813,-120,27,817,-120
    M,line,unknown,2,69,-833,-20,-105,-841,250
    M,line,unknown,2,-105,-841,250,-116,-789,260
    M,line,unknown,2,-116,-789,260,-147,-761,260
    M,line,unknown,2,-147,-761,260,-152,-635,10
    M,line,unknown,2,-152,-635,10,-185,-638,10
    M,line,unknown,2,-185,-638,10,-187,-583,10
    M,line,unknown,2,-187,-583,10,-212,-582,10
    M,line,unknown,2,-212,-582,10,-236,-546,10
    M,line,unknown,2,-236,-546,10,-247,-458,10
    P,guka
    ,unknown,83,-839
    P,hostage (Zok Druppeli)
    ,unknown,-440,1016
    P,Jail
    ,unknown,-371,909
    P,DEAD END
    ,unknown,36,1414
    P,DEAD END
    ,unknown,-54,1412
    P,Cauldron of Lost Souls
    ,unknown,-17,1343
    P,T intersection
    ,127064000,-15,1291
    P,DEAD END
    ,unknown,201,895
    P,xroad
    ,127064000,28,883
    P,DEAD END
    ,unknown,86,-279
    P,DEAD END
    ,unknown,69,-490
    P,xroads
    ,127064000,-49,-487
    P,DEAD END
    ,unknown,-50,-640
    P,pit/bridge
    ,unknown,-24,-325
    P,water area
    ,unknown,-5,446
    P,To Innothule Swamp
    ,magenta,69,-833
    P,bridge/pit
    ,unknown,-235,-554

  9. #24
    Registered User
    Join Date
    Apr 2002
    Posts
    59
    nm, i didnt read your message fully.
    Last edited by curio; 09-10-2003 at 02:12 PM.
    Curio

  10. #25
    Registered User
    Join Date
    Sep 2002
    Posts
    4
    Jel321-

    Had the same issues. I don't know much about awk, but it seems the grep expression was getting mangled because sometimes the r g b variables in getcolorname() were being treated as strings and not ints ... or something.

    So I forced them to be ints in the getcolorname calls, as follows:

    Code:
        print "M,line," getcolorname(int($7), int($8), int($9)) ",2," int(-$1) "," int(-$2) "," int($3*10) "," int(-$4) "," int(-$5) "," int($6*10);
    That seems to solve the conversion problem. I haven't been able to test any maps yet tho.

    -TC

  11. #26
    Registered User
    Join Date
    Jun 2003
    Posts
    550
    With that updated line, and adding a few entries into RGB.txt, I converted all of the LDoN zones that were in the allfiles.zip from eq-toolbox (not all zones were there yet, but most).

    I've not had a chance to zone into any since I did the conversion -- if they look good, I'll post them for others to play with.

  12. #27
    Developer
    Join Date
    Jan 2002
    Posts
    239
    Once posted and tested, I can put them in to CVS.

    BB

  13. #28
    Registered User
    Join Date
    Jun 2003
    Posts
    550
    Sounds like a plan.

    Has Veksar and HatePlaneB maps been placed in CVS yet?

    I have a very detailed (almost too detailed) HatePlaneB map that I can post with it for completness (I know I got it from here, so it has been posted already by someone)

    And I used the same script to update Veksar, since the .php script converter didn't quote work well with it. I'll try to zone into Veksar later today to test that too.

  14. #29
    Registered User
    Join Date
    Aug 2003
    Posts
    8
    I have done the up-date line to the awk script. I have the correct RGB.txt file in the same dir and still get the same errors as Jel321 recieved. Does anyone have any ideas?

  15. #30
    Registered User
    Join Date
    Dec 2002
    Posts
    21
    I got the same errors on most of the LDoN maps I ran thru, but a quick fix is to just search and replace all of the
    "unknown" with "white". That made all of the maps very usable.

    INDY

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