.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening > Scenarios, Maps and Mods

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #10  
Old March 15th, 2007, 10:59 PM
DrPraetorious's Avatar

DrPraetorious DrPraetorious is offline
Major General
 
Join Date: Feb 2005
Location: Lake of Hali, Aldebaran, OH
Posts: 2,474
Thanks: 51
Thanked 67 Times in 27 Posts
DrPraetorious is on a distinguished road
Default Re: Tools and Tutorials

Attached find the best damned start-province finding perlscript anyone will ever write.

USAGE:
cp map.map new_map.map
perl (scriptname) X R map.map >> new_map.map

It takes as input the minimum number of neighbors each start-province must have (X), and the absolute minimum distance between each pair of start provinces (R).

For the first start province it chooses the eligible province with the fewest eligible start provinces within R.

FOr the second start province it chooses the eligible province farthest from the first start province.

Now it adds provinces in order to minimize the *variance* in the remoteness of all start provinces, and keeps doing so until it can't fit any more.

The "remoteness" of a start province is the sum of all path lengths between that province and other start provinces.

This will tend to spread the start provinces out on the map more or less uniformly. A province with fewer close neighbors will tend to be closer to the close neighbors that it does have.

I'm happy to alter the script somewhat if needed to meet community needs. It requires a real computer (with perl) to run.

It doesn't presently generate sea start sites. I'll add this functionality at some point. Oh, it also suggests places to add specials but it doesn't actually add any.
Attached Files
File Type: zip 504573-BalancedStart.zip (2.3 KB, 948 views)
__________________
If you read his speech at Rice, all his arguments for going to the moon work equally well as arguments for blowing up the moon, sending cloned dinosaurs into space, or constructing a towering *****-shaped obelisk on Mars. --Randall Munroe
Reply With Quote
The Following User Says Thank You to DrPraetorious For This Useful Post:
 

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 01:24 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.