|
|
|
|
|
August 29th, 2004, 11:27 AM
|
|
Captain
|
|
Join Date: Jun 2004
Location: Rhode Island
Posts: 822
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: can you speak C? fractal terrain? vga? tga?
Heh... I always wanted to conquer the Great Blue Plains...
It looks promising, though.
|
August 29th, 2004, 11:30 AM
|
|
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: can you speak C? fractal terrain? vga? tga?
Does look much better. Strange effect though. It still scatters dots for each terrain type then seems to smooth that color quite nicely. The overall effect might be excellent if we could shift the color of the original pixellations off of their EGA choices. Instead of tan-brown for plains, make it a light green. Instead of cyan for swamp make it a blue-green. Dark green for forest and shamrock green for farms? Then the pixeallation wouldnt be so obvious.
The dark-brown mountains are ok I guess. The tan-brown or yellowish could become waste. What you think?
__________________
-- 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!)
|
August 29th, 2004, 11:33 AM
|
|
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: can you speak C? fractal terrain? vga? tga?
I dug up a blur.c once but never did figure out how to get it to skip the white pixels (and maybe the two colors of border also). Think it could be worked in?
Heehee. Just let me know when Ive gotten carried away. I can keep coming up with suggested add-ons forever.
__________________
-- 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!)
|
August 29th, 2004, 11:44 AM
|
Sergeant
|
|
Join Date: Sep 2003
Location: Norway
Posts: 346
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: can you speak C? fractal terrain? vga? tga?
At the moment, the colours used are hard-coded in colour_map[] in targa.c; someone should look into making them configurable.
__________________
"Freefall, my old nemesis! All I have to do is activate my compressed gas rocket boots and I will cheat you once again! Belt control ON!…On?" [i]Othar Trygvasson[i]
|
August 29th, 2004, 11:49 AM
|
|
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: can you speak C? fractal terrain? vga? tga?
OK same subject, new thread.
Now that this works (quite nicely, thank you Leif), should this be a new program? The old one allowed for solid-color provinces which was even uglier than the defualt but was an advantage for some map-makers. I suspect that this one wont allow that very well.
Should we decalre this project to be DomMapVGA ??
__________________
-- 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!)
|
August 30th, 2004, 04:36 PM
|
|
First Lieutenant
|
|
Join Date: Sep 2003
Location: Bordeaux, France
Posts: 794
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: can you speak C? fractal terrain? vga? tga?
Quote:
Gandalf Parker said:
WHile you were in there did you happen to notice anything that would make it run alittle "nicer"? The automatic generation scripts have to be carefully scheduled on my system to avoid trying to run when other cpu/memory hogs are running.
|
Neither the original author nor I tried to limit memory or CPU usage, so the map generation uses big nested loops and huge arrays to do the trick. Not exactly what you're looking for
|
August 30th, 2004, 05:09 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: can you speak C? fractal terrain? vga? tga?
Quote:
PhilD said:
Quote:
Gandalf Parker said:
WHile you were in there did you happen to notice anything that would make it run alittle "nicer"? The automatic generation scripts have to be carefully scheduled on my system to avoid trying to run when other cpu/memory hogs are running.
|
Neither the original author nor I tried to limit memory or CPU usage, so the map generation uses big nested loops and huge arrays to do the trick. Not exactly what you're looking for
|
Yeah Im not really doing my part to help it any. When I generate 30 maps of a type I have a CRON job running a script, which chains to the various system scripts (tiny, small, medium, large, huge, epic, and chaos), each of those scripts call a basic program 30 times, the basic program randomizes the variables for dommap and shells to call dommap.
I really should try to clean that up.
__________________
-- 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!)
|
August 30th, 2004, 05:21 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: can you speak C? fractal terrain? vga? tga?
Im very happy with the change in this program. At the moment Im messing with the colors it uses but the effects are great. I had the "chaos" run use it...
http://www.dom2minions.com/~dominion...s/00_index.jpg
To see the jpg view or grab the tga/map for play go to
http://www.dom2minions.com/~dominion...s2/RandomMaps/
since I dont have it as nicely webbed as the other groupings.
I tried running it for the tiny/small/medium/large/huge/epic maps but I paintakingly came up with a level of pixellation that made those maps slightly less ugly. Now I have to rewrite the routines to drop that pixel efect way down to allow for this nice vga smoothing.
Interesting notes for anyone playing with the color codes....
Code:
static long color_map[] =
{
0xC58F54, /* WATER */
0x4E7283, /* WATER */
0x5B4524, /* MOUNTAIN */
0xC8BE51, /* FARMLAND */
0x708841, /* FOREST */
0x34969F, /* SWAMP */
0xC4B0A4, /* TUNDRA */
0xAD9374, /* WASTELAND */
0xC3572C, /* BORDER1 */
0x2C87C3, /* BORDER2 */
0xFFFFFF /* CAPITAL */
};
The first WATER is misnamed. Its actually PLAINS which is the default terrain.
The TUNDRA stumped me for abit since there isnt a tundra in the terrain settings. The .map file makes it a dual mountains/waste province. Thats kinda nice.
__________________
-- 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!)
|
August 30th, 2004, 05:57 PM
|
Sergeant
|
|
Join Date: Sep 2003
Location: Norway
Posts: 346
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: can you speak C? fractal terrain? vga? tga?
Quote:
Gandalf Parker said:
Im very happy with the change in this program. At the moment Im messing with the colors it uses but the effects are great.
|
I think it's probably better to turn off the shading for the water (in addition to the borders and the capitals.) As it is, the maps tend to look a bit "messy."
__________________
"Freefall, my old nemesis! All I have to do is activate my compressed gas rocket boots and I will cheat you once again! Belt control ON!…On?" [i]Othar Trygvasson[i]
|
August 31st, 2004, 06:56 AM
|
Sergeant
|
|
Join Date: Sep 2003
Location: Norway
Posts: 346
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: can you speak C? fractal terrain? vga? tga?
I've updated the DomMap.zip with the ability to turn the new shading on and off and changing the various colours through command-line parameters.
__________________
"Freefall, my old nemesis! All I have to do is activate my compressed gas rocket boots and I will cheat you once again! Belt control ON!…On?" [i]Othar Trygvasson[i]
|
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
|
|
|
|
|