.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 2: The Ascension Wars

Reply
 
Thread Tools Display Modes
  #11  
Old February 6th, 2004, 10:50 PM
PhilD's Avatar

PhilD PhilD is offline
First Lieutenant
 
Join Date: Sep 2003
Location: Bordeaux, France
Posts: 794
Thanks: 0
Thanked 0 Times in 0 Posts
PhilD is on a distinguished road
Default Re: Random Map Generator

I haven't totally given up on the random map generator... just on helping Targa run it on his Windows box

By playing with the -d switch, you can easily have more "uniform" provinces; that is, the brown/green/etc dots won't be so isolated. Easier on the eyes, if you ask me, though the result is still quite bland - anything nicer would clearly need some image processing, which can be done with the Gimp, but I don't have the courage to go through the Gimp documentation to learn how to do this.

I should add a switch to make the random generator output a single color for land, like it does for sea; that would probably make life easier on the "hand" creators, and would not be too much work. But then, I wonder - should I leave terrain in the .map file, or not?
Reply With Quote
  #12  
Old February 6th, 2004, 11:01 PM

Targa Targa is offline
Sergeant
 
Join Date: Jan 2004
Location: Moloch\'s Pit of Fiendish Delights
Posts: 200
Thanks: 0
Thanked 0 Times in 0 Posts
Targa is on a distinguished road
Default Re: Random Map Generator

Any maps done by hand will require using the map editor from the game, so you don't even need a .map file at all.
__________________
-Targa
Targa's Avatar of the Week
Reply With Quote
  #13  
Old February 6th, 2004, 11:05 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: Random Map Generator

Ive been trying to get the maps blurred to be easier on the eye. But I cant get any way to blur while avoiding the white dots and borders. Is there any chance to...
A) write the targa, shell out to a blur command (imagemagick makes blur easy), then re-write the white dots?

or
B) write two copies of each map. The normal one, and then another of JUST the borders and capitals? I could blur the first then merge opague the second one.

In fact Im thinking that a black map with borders and capitals might be desired by some so they can decide what is water and what is land.
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote
  #14  
Old February 7th, 2004, 11:32 AM
PhilD's Avatar

PhilD PhilD is offline
First Lieutenant
 
Join Date: Sep 2003
Location: Bordeaux, France
Posts: 794
Thanks: 0
Thanked 0 Times in 0 Posts
PhilD is on a distinguished road
Default Re: Random Map Generator

Quote:
Originally posted by Targa:
Any maps done by hand will require using the map editor from the game, so you don't even need a .map file at all.
The .map file contains the adjacencies between provinces. If you don't have one, you'll have to set all of them yourself.
Reply With Quote
  #15  
Old February 7th, 2004, 11:32 AM
PhilD's Avatar

PhilD PhilD is offline
First Lieutenant
 
Join Date: Sep 2003
Location: Bordeaux, France
Posts: 794
Thanks: 0
Thanked 0 Times in 0 Posts
PhilD is on a distinguished road
Default Re: Random Map Generator

Quote:
Originally posted by Gandalf Parker:
Ive been trying to get the maps blurred to be easier on the eye. But I cant get any way to blur while avoiding the white dots and borders. Is there any chance to...
A) write the targa, shell out to a blur command (imagemagick makes blur easy), then re-write the white dots?

or
B) write two copies of each map. The normal one, and then another of JUST the borders and capitals? I could blur the first then merge opague the second one.

In fact Im thinking that a black map with borders and capitals might be desired by some so they can decide what is water and what is land.
All of this should be doable easily in Gimp. Gimp CAN be scripted (there's a -b switch for "run batch", and a -i for "no interface); it's just a matter of learning the right function names
Reply With Quote
  #16  
Old February 7th, 2004, 03:06 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: Random Map Generator

Quote:
Originally posted by PhilD:
All of this should be doable easily in Gimp. Gimp CAN be scripted (there's a -b switch for "run batch", and a -i for "no interface); it's just a matter of learning the right function names
Yep, Ive actually got a little 5-step routine that does it great (thanks to Arralen). Its how I made the example WEvsTHEM example. The scripting code does look fairly simple so I guess I could take a shot at making one and asking for each function one at a time in those forums.

Im also considering washing the image thru a simple format, maybe raw C code image storage, figure out the code for each of the 3 colors I want saved, then using SED to run thru it and replace all that is NOT the 3 colors to black or transparent, then merge it back after the original is blurred.
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote
  #17  
Old February 7th, 2004, 04:17 PM

Targa Targa is offline
Sergeant
 
Join Date: Jan 2004
Location: Moloch\'s Pit of Fiendish Delights
Posts: 200
Thanks: 0
Thanked 0 Times in 0 Posts
Targa is on a distinguished road
Default Re: Random Map Generator

Quote:
Originally posted by PhilD:
The .map file contains the adjacencies between provinces. If you don't have one, you'll have to set all of them yourself.
Yep, which is why you have to use the game map editor (when it's fixed ). ie: If making a map by hand and using a land/water "outline" from a randomly generated map, you add such things as mountains by hand, which create choke points, so you'd have to set neighbors by hand. Though now that I think about it, it would probably be a good idea to start with a .map file, then modify the neighbors. Hey....that may be a workaround for the current lockup in the map editor. Give it a .map file so it stops trying to fiddle w/neighbors...gonna go check that out.
__________________
-Targa
Targa's Avatar of the Week
Reply With Quote
Reply

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


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