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

This Month's Specials

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

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening

Reply
 
Thread Tools Display Modes
  #1  
Old August 26th, 2007, 12:56 AM

Jagdpanther Jagdpanther is offline
Corporal
 
Join Date: Mar 2004
Location: Los Angeles, CA
Posts: 61
Thanks: 0
Thanked 1 Time in 1 Post
Jagdpanther is on a distinguished road
Default Random Maps

I like the random map generator in dom3. Unfortunately I don't always like what I get and have to generate another map. Because the random map generator takes some time to run and Illwinter was nice enough to give us a command line interface to dominions3, here is a Python wrapper script around dom3 to generate several random maps AND many variables (like how many mountains and how much forest) are ranges. A value within the range is selected for each random map. The resulting maps are placed in the standard ~/dominions3/maps.

I usually run this when I am sleeping: next day new maps.

The range variables are in 'VAR'. Feel free to change any of the upper case variables at the top.

This requires the Python scripting language and was tested on a Linux system.

Try "dom3 --help" and see ' Random Map Options ' for what the variables passed to dom3 do.

Download the attachment. Change the suffix to ".py" and execute it by using either "python mapgen.py" or more commonly just "mapgen.py" after setting mapgen.py to be executable.
Attached Files
File Type: txt 545778-mapgen.txt (1.4 KB, 163 views)
Reply With Quote
  #2  
Old August 26th, 2007, 02:14 PM
Velusion's Avatar

Velusion Velusion is offline
Colonel
 
Join Date: Dec 2006
Location: Dallas, Tx
Posts: 1,712
Thanks: 0
Thanked 3 Times in 2 Posts
Velusion is on a distinguished road
Default Re: Random Maps

Sa-weet. This will be very helpful
Reply With Quote
  #3  
Old August 27th, 2007, 03:39 PM

krpeters krpeters is offline
Second Lieutenant
 
Join Date: Dec 2006
Posts: 564
Thanks: 1
Thanked 10 Times in 7 Posts
krpeters is on a distinguished road
Default Re: Random Maps

I recommend using the Game Tools for random map generation, that way if you get a map you don't like, you don't have to reselect your nation, opponents, pretender stats, etc.

Also, time to produce map is heavily dependent on map graphic size. If you cut the graphic down from the default 1600x1200 to 800x600, map generation goes *much* faster. About 30 seconds on my Athlon 2GHz as opposed to the usual 5 min or so.

Note this has absolutely zero game effect. The only UI effect it has is that when you zoom in to see tiny provinces, the landscape looks blurry.

I find that SP games with ocean in the corners (mainland approximates island as much as possible) works best, keeps some AI's from having a much better start (corner) than others.
Reply With Quote
  #4  
Old August 27th, 2007, 04:54 PM
NTJedi's Avatar

NTJedi NTJedi is offline
General
 
Join Date: Jun 2003
Location: az
Posts: 3,069
Thanks: 41
Thanked 39 Times in 28 Posts
NTJedi is on a distinguished road
Default Re: Random Maps

Quote:
krpeters said:
I find that SP games with ocean in the corners (mainland approximates island as much as possible) works best, keeps some AI's from having a much better start (corner) than others.
I recommend anyone doing SP maps use very little sea/water provinces because most AI nations lack the intelligence to conquer sea/water provinces. Thus the more sea/water provinces the greater advantage human opponents will have unless most of the AI opponents within this future game have the ability to easily attack sea/water provinces.
.
The AI land nations almost never organize armies for attacking sea/water provinces.
__________________
There can be only one.
Reply With Quote
  #5  
Old August 27th, 2007, 11:46 PM

Jagdpanther Jagdpanther is offline
Corporal
 
Join Date: Mar 2004
Location: Los Angeles, CA
Posts: 61
Thanks: 0
Thanked 1 Time in 1 Post
Jagdpanther is on a distinguished road
Default Re: Random Maps

Quote:
I recommend using the Game Tools for random map generation, that way if you get a map you don't like, you don't have to reselect your nation, opponents, pretender stats, etc.
One of the reasons I wrote the script was to generate several maps in advance so I could quickly look at them and decide which I liked best to play on.

Quote:
Also, time to produce map is heavily dependent on map graphic size. If you cut the graphic down from the default 1600x1200 to 800x600, map generation goes *much* faster. About 30 seconds on my Athlon 2GHz as opposed to the usual 5 min or so.

Note this has absolutely zero game effect. The only UI effect it has is that when you zoom in to see tiny provinces, the landscape looks blurry.
True: However, I don't like my map getting blurry when I zoom in. (I usually generate maps at 4000x2000 just to prevent loss of resolution when zooming in ... it's just an aesthetics thing.)
Reply With Quote
Reply

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 10:16 AM.


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