|
|
|
|
|
February 6th, 2004, 10:50 PM
|
|
First Lieutenant
|
|
Join Date: Sep 2003
Location: Bordeaux, France
Posts: 794
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|
February 6th, 2004, 11:01 PM
|
Sergeant
|
|
Join Date: Jan 2004
Location: Moloch\'s Pit of Fiendish Delights
Posts: 200
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
February 6th, 2004, 11:05 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
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!)
|
February 7th, 2004, 11:32 AM
|
|
First Lieutenant
|
|
Join Date: Sep 2003
Location: Bordeaux, France
Posts: 794
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
February 7th, 2004, 11:32 AM
|
|
First Lieutenant
|
|
Join Date: Sep 2003
Location: Bordeaux, France
Posts: 794
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
February 7th, 2004, 03:06 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
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!)
|
February 7th, 2004, 04:17 PM
|
Sergeant
|
|
Join Date: Jan 2004
Location: Moloch\'s Pit of Fiendish Delights
Posts: 200
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|