Thread: Maps available
View Single Post
  #55  
Old January 11th, 2004, 02:07 AM
PhilD's Avatar

PhilD PhilD is offline
First Lieutenant
 
Join Date: Sep 2003
Location: Bordeaux, France
Posts: 794
Thanks: 0
Thanked 0 Times in 0 Posts
PhilD is on a distinguished road
Default Re: Maps available

I had a look at the code for the dommap generator. It isn't too hard to read, and changing the way it works would be fairly easy - in fact, I'm seriously thinking of adapting it so it at least works with dom2.

Still - it's mainly building a random elevation/richness map, and cutting it up into small provinces. I'm not sure I like the way it handles province capital placement, but it seems to work fine, so let's not mess too much with that...

But, the maps it produces don't have the nice feel that the original dom2 maps have: pixel color in dom1 is supposed to indicate terrain, while in dom2 it's totally irrelevant (except the white dots), so I'm not sure what to do about it. In fact, I believe the right thing to do would be to have Gimp do the final touches, but if Gimp can be batch-programmed, I don't know how, and I'm NOT rewriting dommap in scheme as a Gimp plugin from scratch (which, anyway, wouldn't be as portable as C).

I'll try to add my pet feature, which would be to make it able to produce the same map at various resolutions. It should be reasonably easy (as it is now, if you make two maps with different sizes, but the same width/height ratio and the same random seed, you get two different maps, but the coastlines (and, in fact, elevations) are essentially the same).
Reply With Quote