PDA

View Full Version : Map Conversion



csmith12
02-05-2003, 02:20 PM
More experienced members,

Is there a way to convert the maps to any of the following formats;

a. gif
b. jpg
c. bmp

Thanks in advanced for any pointers in direction.

csmith12
02-05-2003, 02:25 PM
Ok,

After rethinking a bit, did a more refined search.

Found 1 post about this, but it is rather old.

So I rephrase my question.

Has there been any further tools developed to convert the .map files to the formats stated above.

Thanks again,

darkgrue
02-05-2003, 02:31 PM
It's been discussed several times in this very forum. One pertinent thread would be "Map Editing Tools? (http://seq.sourceforge.net/showthread.php?s=&threadid=1296)".

I took the Perl script posted here by ksmith (http://seq.sourceforge.net/showthread.php?s=&threadid=2208), and cleaned it up a bit as well as gave it the ability to mass-convert files into PNG format: map2png (http://www.gue-tech.org/everquest/map2png/). Requires the GD library and GD.pm Perl module, of course, but among other things, eliminates the need for an external rgb.txt file, and allows batch processing.

If you fish around more in this forum, you'll find several other implementations, including the Mapfiend PHP source.

Cryonic
02-05-2003, 02:51 PM
The .map format hasn't changed since Kunark came out, so the tools from anytime after that should work.

domesticbeer
02-05-2003, 03:59 PM
Currently SEQ allows you to save the map by right clicking on the map window and doing save as bmp. Unforntunately the CGI program that used to allow you do this is broken since UNISYS will not allow anyone to use the GIF image technology with out a license fee. I have played around with the CGI code and removed the GIF code and leaving the PNG but have not gotten it to work as of yet. I am take a look at the code and find where it does the Map to BMP conversion when I get some more time.

ksmith
02-05-2003, 09:54 PM
Use the perl version. I cleaned up the mapfiend php script and posted it before I wrote the perl version. The mapfiend php script (even cleaned up) is a lot messier than the perl script.

eqdevil
02-15-2003, 03:10 AM
Wonder what kind of format the player made maps using the cartography program in LoY will be used. I'm sure someone will come up with a way to convert seq maps into this new format.

wizard
02-15-2003, 07:17 AM
ya think?

http://seq.sourceforge.net/showthread.php?s=&threadid=2973

high_jeeves
02-15-2003, 09:52 AM
It would be pretty badass if somebody could write this tool, that decodes the packet stream, and shows you a map, and where you are, and where the monsters are... wouldnt that be cool, guys? Maybe it could track XP, and allow you to filter on certain mobs too...

I know.. they could call the app "ReadTheFuckingForumsMoron"

--Jeeves

wizard
02-15-2003, 09:55 AM
WHOA!!!! that would be teh own!!1!!1!!!

eqdevil
02-15-2003, 12:36 PM
LOL ok you got me no need to reply "Use the search n00b". )
Was only my second post ever really.

Fatal
02-28-2003, 11:12 AM
Anyone willing to modify this script to perform the same function with the new map format from EQ?

ksmith
02-28-2003, 12:36 PM
Here (http://kyle.13th-floor.org/eq/maps/gif/pngeq.pl)

And here's a Makefile for batch conversion (probably only works with gnu make)

SRCDIR=./
MAPFILES=$(wildcard $(SRCDIR)/*.txt)
GIFFILES=$(patsubst %.txt,%.gif,${MAPFILES})

gifs: ${GIFFILES}

%.gif: %.txt
./pngeq.pl $<

maps.zip: ${MAPFILES}
zip -9 maps.zip ${MAPFILES}

clean:
rm ${GIFFILES}

Fatal
03-03-2003, 01:10 PM
Ok I have this all working..

There just seems to be a small issue.

go to http://maps.eq-toolbox.com

Click the image link for some of the maps. Most are working. Alot of the kunark maps just come up as large colored squares.

bothunder, burningwoods, chardok, crystal caverns, dreadlands, etc.


An one have any idea why this is doing this? Somewhere something seems to be doing a fill or something. Either in the conversion process or in the actually png creation process. Any suggestions?

Fatal
03-03-2003, 04:19 PM
There was a couple of errors in the script. Cattj corrected them for me. I will let him go in to detail about what they were, but it is now working for me on all of the maps.

cattj
03-03-2003, 04:24 PM
simple issues really.. just took me a little bit to track them down since i am no perl coder....

1) the key for colors was getting messed up because the index of the color values are all off by one... when you register the colors in the hashmap red should be lines[7] instead of 6, green should be 8 instead of 7, and blue should be 9 instead of 8..

2) when getting the max/min x and max/min y values when you have a "P" label line... the check for greater than or less than is done against lines[1] or lines[2], but the value being stored is lines[4] or lines[5]...


like i said easy enough to fix...

ksmith
03-03-2003, 06:50 PM
fixed.

Fatal
03-03-2003, 07:39 PM
does anyone know what package mapfiend was using for the way he served out his maps? I'd like to do something similar to that and was just wondering if anyone remembered?

Basically you could select the maps you wanted by adding them to a shopping cart. When you were done browsing and ready to dload it would zip them up and send em to ya..

ksmith
03-03-2003, 09:49 PM
I only have the map scripts from mapfiend. None of the other stuff. As I've said before, the mapfiend scripts are not pleasant to look at.

KaL
03-04-2003, 08:23 AM
Fatal, I'm thinking that you could find something like that by looking for 'download manager' or something similar. There may even be Sourforge projects, or an add-on from the chaps that make your bbs software.

KaL
03-07-2003, 12:15 PM
It appears that the converter isn't 100% yet.

Look at Plane of Disease, Marus Seru, and Scarlet Desert. I know that the ShowEQ maps were much more complete than these are showing after conversion.

ksmith
03-10-2003, 07:19 AM
You should consider trying http://kyle.13th-floor.org/eq/maps/maptoeq.pl to convert your maps.

Fantastik
03-11-2003, 09:00 PM
Where did Gunthak and the other LoY maps com from (the seq versions) that you used to convert to the SOE versions?

Sixes
03-17-2003, 01:14 PM
Originally posted by ksmith
You should consider trying http://kyle.13th-floor.org/eq/maps/maptoeq.pl to convert your maps. Might be worth mentioning that you need the RGB.txt (http://kyle.13th-floor.org/eq/maps/RGB.txt) file too.

Leetlewon
03-20-2003, 12:44 PM
If I can figure out the formats for the SEQ .maps and the SoE .txt maps, I'll write a perl script to convert them.

It doesn't look like there are any SEQ maps for LoY available yet.

Cryonic
03-20-2003, 01:38 PM
http://seq.sourceforge.net/showthread.php?s=&threadid=2973

Try that thread for info on the format of the maps and programs to convert both ways.

ksmith
03-21-2003, 10:12 AM
Also, 3 theads down is a thread titled "Converting SOE maps to SEQ maps (http://seq.sourceforge.net/showthread.php?s=&threadid=3126) "

Leetlewon
03-21-2003, 01:04 PM
Thanks, I'll try running the awk script that was posted first and see what I get. I'll post the maps somewhere if they turn out ok.

high_jeeves
03-21-2003, 02:06 PM
Sigh...

Or, as posted in the referenced threads, you can just download them from here http://maps.eq-toolbox.com

--Jeeves

Leetlewon
03-21-2003, 05:36 PM
Those are the SoE maps. I need the SEQ maps. You don't seem to be following the logic here....