.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 2: The Ascension Wars

Reply
 
Thread Tools Display Modes
  #1  
Old August 31st, 2004, 09:17 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: can you speak C? fractal terrain? vga? tga?

Hmmm I seem to be having problems getting the border to change. There were two places in the code for the border colors. Is the variable changing both?
__________________
-- 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
  #2  
Old September 19th, 2004, 11:10 AM
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: can you speak C? fractal terrain? vga? tga?

Quote:
Gandalf Parker said:
Hmmm I seem to be having problems getting the border to change. There were two places in the code for the border colors. Is the variable changing both?
Hey Leif,
here is some of the code PRIOR to the Last change when you made the colors into command-line variables.

Code:

static long BORDER_COLOR_A = 0xFF0000;
static long BORDER_COLOR_B = 0xFF0000;
static long CAPITAL_COLOR = 0xFFFFFF;

/*
* Colors for each type of terrain.
*/
static long color_map[] =
{
0x32CD32, /* PLAINS DEFAULT Lime Green was C58F54 misnammed WATER */
0x4682B4, /* WATER was 4E7283 now Steel Blue */
0x5B4524, /* MOUNTAIN */
0x7CFC00, /* FARMLAND was 0xC8BE51 now LawnGreen */
0x228B22, /* FOREST was 0x708841 now Forest Green */
0x20B2AA, /* SWAMP was 34969F now Light Sea Green */
0x808080, /* TUNDRA was C4B0A4 now Gray */
0xBC8F8F, /* WASTELAND was AD9374 now Rosey Brown */
0xFF0000, /* BORDER1 was C3572C now Red */
0xFF0000, /* BORDER2 was 2C87C3 now Orange */
0xFFFFFF /* CAPITAL do NOT change this one */
};



I dont read C very well. Looking at your new code I can kindof follow what happened with the color_map variables. But I dont see where the things like "static long BORDER_COLOR_A" went to. Is this maybe why I cant seem to get the border colors to accept?
__________________
-- 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
  #3  
Old September 21st, 2004, 12:49 PM

Leif_- Leif_- is offline
Sergeant
 
Join Date: Sep 2003
Location: Norway
Posts: 346
Thanks: 0
Thanked 0 Times in 0 Posts
Leif_- is on a distinguished road
Default Re: can you speak C? fractal terrain? vga? tga?

Hmm. It works for me. Are you sure you're using the latest code? Except that the land and sea colours are reversed, there doesn't seem to be a problem in setting them from the command line.
__________________
"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]
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 06:39 AM.


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