.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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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, 166 views)
Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

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 07:07 AM.


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