Re: Maps available
Lingo is Director's internal development language.
It runs on mac and windows, shockwave is the web product created from it. It also creates stand-alone executables for mac and windows.
It would be easy enough if there are only single white pixels (as being the only pure white in the image) defining each province ALONG WITH true red borders defining each province area. (the borders could be removed once the map data file was generated).
This would enable the code to find a single white pixel and then find the entire area around it that is within in the confines of a true red border (I have fill code similar to this).
It could then look at the color of the pixels in that area to define the territory or multiple-territory types (like mountain/forest or mountain/waste). It could then look at a set of teerain lists and generate a name for that province(your bas files is exactly the type of thing I am talking about.)
Even without the red borders it could expand out in its detection process only a certain range and generate its data that way. But then neighbour detection would be very haphazard since it would have no way of knowing its relationship to other provinces except for proximity to the other province indicating white pixels.
Edge detection for both the above process and the process of determing adjacent neighbours is much easier when you have a set of defined points from which to 'expand' from out to a definied color border(in this case the single pixels of true white and a border of true red.)
I think for the first run I would do this, and then see if it is possible to incoporate some kind of ability to automate blocked off borders (the double thick borders in current maps).
The automated process could of course all be done gui-less. The gui would come in for doing things manually.
It would be also be neat to consider it being able to look at other graphic data to do more complex automation of things (a graduated color overlay indicating neutral areas, racial make-up of neutral provinces, strength etc...) this would work really well with something like your randomizing routines.
Edit: it's and its (grammar is evil)
[ January 09, 2004, 19:48: Message edited by: Strages Sanctus ]
__________________
Regno Dominatio
|