View Single Post
  #10  
Old August 26th, 2007, 12:42 AM
Ballbarian's Avatar

Ballbarian Ballbarian is offline
Colonel
 
Join Date: May 2005
Location: Kansas, USA
Posts: 1,538
Thanks: 289
Thanked 194 Times in 94 Posts
Ballbarian will become famous soon enough
Default Re: Idiot\'s Guide to Making Custom Maps?

It does not draw borders but it does detect red pixels in an effort to guess neighbors (or it did in dom2 and I am pretty sure it does in dom3).

I gave a lot of thought to this when I was working on my own custom map editor. If you draw an imaginary line between two points (provinces) and check each pixel's color along that line and set a flag when you hit a border (red) pixel, then skip ahead a few pixels (to clear a border that might be several pixels wide at that point) and if you reach the 2nd point without hitting another set of red border pixels, then you can say that it is likely for the 2 points to be neighbors. This is not 100% foolproof, but it can generate a fair guesstimate.
__________________
RanDom v2 - Map gen & Semirandomizer.
Province Editor - Custom province creation made easier.
God Editor - Custom pretender creation made easier.
Map Forge - Map editor
Reply With Quote