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.)