.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Scenarios, Maps and Mods (http://forum.shrapnelgames.com/forumdisplay.php?f=146)
-   -   new map generator (http://forum.shrapnelgames.com/showthread.php?t=30337)

paradoxharbinger September 17th, 2006 06:24 PM

new map generator
1 Attachment(s)

PLEASE NOTE: to run the mapgen, you have to install a couple of dll files from m$, which you can get here

ALSO NOTE: as of v0.52, mapgen allows for sprites to be modded, but sprites are not being distributed with mapgen yet. hopefully, kristoffer will allow me to distribute the sprites that were used in the dom3 maps with mapgen, unil then though, i am afraid you are on your own with finding sprites to use.

i will post mapgen releases here at the top of the thread from here on out

+ initial release

+ sea level is now adjustable
+ changed default sea and mountain levels to 115 and 165 respectively to reflect changes to heightmap algorithm
+ provinces are now marked with correct terrain types
+ output file which stores random number generator seeds (seeds.sds)
+ scripting command to turn comments on/off in .map file
++ verbose: yes/no;
++ default: no
++ data includes province number, province center point, neighbors and terrain types
+ scripting command to turn numbers on/off in image
++ provnum: yes/no;
++ default: no
++ mostly for my debugging purposes

+ scripting command to turn province borders on/off in map image
++ border: yes/no;
++ default: yes
+ scripting command to change output file names
++ filename: name;
++ default: test;
+ scripting command to generate a batch of maps
++ batch: number;
+++ number must be between 1 and 1000 inclusive
++ "_xxx" is appended to the filename, where "xxx" is the numerical id for the map
+ scripting command to use sprites in map image
++ sprite: name terrain distance distribution;
+++ name gives a path and file name for the sprite. the path may be relative to the folder MapGen is in
+++ terrain is a string for the terrain type to use this sprite in
+++ distance is an integer. this is the minimal distance that must be between this sprite and all others.
+++ distribution is an integer which will determine how often this sprite is placed for this terrain type
++ NO DEFAULTS. maps will be generated without sprites by default.
+ scripting command to turn province borders on/off
++ border: yes/no;
++ default: yes

to do
+ add lakes to heightmap
+ improve oceans in heightmap
+ improve terrain type algorithm to take distance to water into account
++ three levels
+ scripting command to load random number generator seeds
+ add a command for a palette of colors which will be used as background colors
++ use noise to give concentrations
+ cavern provinces
+ deep sea provinces

paradoxharbinger October 12th, 2006 07:51 PM

Re: new map generator
1 Attachment(s)
i am moving all discussion for my map generator to this thread, as the dom2 map section seems to be dead. you can find the link to the old thread in the post above. i've attached a screen of a current map.

The_Tauren13 October 13th, 2006 12:13 PM

Re: new map generator
Sweet! Wrap-around maps!

Gandalf Parker October 13th, 2006 01:18 PM

Re: new map generator
Wrap Around maps, user added sprites for terrain, more color control. Excellent stuff.

Shovah32 October 13th, 2006 02:27 PM

Re: new map generator
Excellent indeed. I was actually conserned about your MapGens future since dom3 has a built n RMG but yours is looking awfully nice.

paradoxharbinger October 13th, 2006 09:40 PM

Re: new map generator
thanks all for the encouragement.

changing the script command format again, trying to make it both easy to parse and easy to write a script.

the basic format for a command is:
command: argument argument argument...;

see here for scripting commands

paradoxharbinger October 13th, 2006 10:05 PM

Re: new map generator *DELETED*
Post deleted by paradoxharbinger

Gandalf Parker October 14th, 2006 11:41 AM

Re: new map generator
You might want to allow for mixed terrains. I know that might be more of a pain than its worth but Id like to see something like a less packed trees sprite for forest/farm, or forest/plain

paradoxharbinger October 14th, 2006 12:20 PM

Re: new map generator
not sure wht you mean, are talking about making new terrain types?

Endoperez October 14th, 2006 01:32 PM

Re: new map generator
A province can be both forest and mountain. Or both mountain and farmlands. Plains is province with no terrains on it, so plains/other provinces are impossible. Other than that, all combinations can be set, in theory. Even swamp/farmlands etc.

All times are GMT -4. The time now is 07:30 AM.

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