.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Scenarios, Maps and Mods (http://forum.shrapnelgames.com/forumdisplay.php?f=146)
-   -   playing with MAPs (http://forum.shrapnelgames.com/showthread.php?t=31529)

Gandalf Parker November 1st, 2006 06:26 PM

playing with MAPs
 
Here is a linux script that I used to play with the map maker in Dom3.

<font class="small">Code:</font><hr /><pre>
GCOL1=" 50 100 50 70 "
SCOL1=" 20 50 80 30 "
SBCOL1=" 36 119 202 29 "
BCOL1=" 111 194 21 104 "
# good colors 36 119 202 29, 111 194 21 104
OTHR=' --mountpart 50 --farmpart 20 --mapnoise 110 '


uptime &gt;mmaxi.log
dom3 -T --makemap maximums --mapsize 11000 11000 \
--mapprov 1500 --mapaa \
$OTHR \
--mapgcol $GCOL1 \
--mapscol $SCOL1 \
--mapbcol 36 119 202 29 \
--mapsbcol 130 130 130 130 \

convert maps/maximums.rgb -resize 1000x1000 \
../public_html/RandomMaps/maximumsg
figlet DONE
uptime &gt;&gt;mmaxi.log
</pre><hr />

The mmaxi.log is so I can see how long its taking since Im running it on maximum settings. (2-3 hours at the moment)

The convert is an ImageMagick utility that pops a smaller jpg of the map into the public html directory so I can view it without having to start a game with it to see if its any good. If its not then I just start the script again. If it is then I rename the rgb and map files so I can keep it, then restart the script.

Gandalf Parker November 1st, 2006 06:27 PM

Re: playing with MAPs
 
Here are the settings you can play with.
<font class="small">Code:</font><hr /><pre>
******* Random Map Options *******
--makemap XXX Generate a random map with filename XXX and exit
--riverpart X 100 = normal amount of rivers, 0=no rivers
--seapart X Percent of map that is below water level (default=30)
--mountpart X Percent of map that is mountains (default=20)
--forestpart X Percent of lands that are forests (default=20)
--farmpart X Percent of lands that are farm lands (default=15)
--wastepart X Percent of lands that are wastes (default=10)
--swamppart X Percent of lands that are swamps (default=10)
--mapaa Enable antialiasing for random maps
--mapsize W H Set width and height of random map (default=1600 1200)
--mapprov X Set number of provinces (default=150)
--passmount Don't use impassable mountains on random maps
--mapgcol RGBA Ground color 0-255 (default=170 146 116 255)
--mapscol RGBA Sea color 0-255 (default=54 54 130 255)
--mapbcol RGBA Ground border color 0-255 (x4)
--mapsbcol RGBA Sea border color 0-255 (x4)
--mapnoise X Ground color noise 0-255 (default 15)
--borderwidth X Border width 0-500 (default 100)
</pre><hr />

Gandalf Parker November 1st, 2006 06:30 PM

Re: playing with MAPs
 
Here is a Windows Batch file. Open a text (notepad) document and paste this in. Then name it something like MakeMap.bat

Double clicking it should create you a new map file. Unfortunately I have not found a quicky utility for Windows so you can view it right away so I have to start a game with the map in order to see it. If you download the windows version of ImageMagick then you could view it right away.

<font class="small">Code:</font><hr /><pre>
cd c:\Progra~1\dominions3
set MAP=muddle
set SIZE= 1000 1000
set PROVS= 100
set GCOL1= 50 100 50 240
set SCOL1= 20 50 80 250
set BCOL1= 111 191 111 100
set SBCOL1= 111 191 111 100
set OTHR= --seapart 20 --mountpart 50 --farmpart 20 --mapnoise 110
set COMMANDS= --makemap %MAP% --mapsize %SIZE% --mapprov %PROVS% --mapaa %OTHR% --mapgcol %GCOL1% --mapscol %SCOL1% --mapbcol %BCOL1% --mapsbcol %SBCOL1%

del c:\Progra~1\dominions3\maps\%map%*

c:\Progra~1\dominions3\dom3.exe -T %COMMANDS%
</pre><hr />


All times are GMT -4. The time now is 11:26 AM.

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