richlove
Posts: 196
Joined: 5/1/2009 Status: offline
|
Next step is to find an image manipulation program and a good map image. I used ImageMagick (visible here) because it had a command line interface. I used the MapRev1024.bmp included in the game. Next time I'll use one of the 45MB planning map files. Then you need to figure out how to turn your x,y coordinates into pixel coordinates to draw onto the map. Using essentially hunt and peck circle drawing, I figured out the following mapping:
Diamond Harbor
Hex 52, 38 on the map corresponds to a circle drawn at this pixel on the image:
--> 278, 168
Rabaul
Hex 106, 125 on the map corresponds to a circle drawn at this pixel on the image:
--> 478,457
Pearl Harbor
Hex 180, 107 on the map corresponds to a circle drawn at this pixel on the image:
--> 749, 398
For the record, the command to draw a dot using ImageMagick is:
convert MapRev1024.bmp -fill red -draw "circle 749,398 750,399"
That draws a circle on 749,398, which is PH on the image.
< Message edited by richlove -- 7/28/2014 7:26:18 PM >
|