View Single Post
  #10  
Old January 24th, 2007, 07:06 PM
Jack_Trowell's Avatar

Jack_Trowell Jack_Trowell is offline
Second Lieutenant
 
Join Date: Oct 2006
Location: Toulouse, FRANCE
Posts: 436
Thanks: 150
Thanked 21 Times in 13 Posts
Jack_Trowell is on a distinguished road
Default Re: Who wants a map/scenario editor ?

Just a rapid update on the project :

- currently the script that analyse a map image file (.tga or .rgb) for provinces is complete, It is available in the attachment if someone wants it.

Edit : forgot to add the Attachment, it is there now

- by running this script on any map image, you will have a province.txt file generated. (in theory you should also have a copy of the image in JPEG format if you add the save_as_jpeg=1 parameter, but the perl module 'Imager' that I use seems to lack jpeg support for the windows Activeperl version)

This file ( exemple at http://dominions.realites.org/map_ed.../provinces.txt ) will contains the list of all provinces numbers (firt column), and their exact position on the image (the province numbers should be the very same that the official map editor would have chosen)

With this test file, and the jpeg copy of the map (exemple jpeg at http://dominions.realites.org/map_ed.../Mini/Mini.jpg ) I can already do this : http://dominions.realites.org/map_editor/

As you can see, I display all provinces numbers exactly where they should, and you can click on a province number to select the province.

Of course the project is just starting, for now selectinf a province do nothing more that that : selecting the province.

Next on my todo list :
- change color of the selected province's neighbours
- select or unselect a province as a neighbour by clicking on it (changing the selected province will then need to first click on a button or something like that, as a true double-click is not really supported by javascript.)
Attached Files
File Type: rar 490018-analyse_map_image.rar (1.9 KB, 133 views)
__________________
Q: "How many Vorlons does it takes to change a lightbulb ?"
A: "Yes !" <stranges noises>
--
Dominions Map validator and randomizer : http://dominions.realites.org
Dominions Map editor v0.75b : http://dominions.realites.org/map_editor
Reply With Quote