The International Simutrans Forum

 

Author Topic: Relief map colors to match ground colors  (Read 1242 times)

0 Members and 1 Guest are viewing this topic.

Offline Spike

  • *
  • Posts: 1361
  • First Simutrans Developer and Graphics Artist
Relief map colors to match ground colors
« on: November 02, 2010, 02:57:07 PM »
Maybe this exists and I just don't know it. But while working on pak.Excentrique, I noticed that the relief map shows ground in green, regardless of the real ground texture or color. I guess this works for most paks, but in pak.Excentrique the mismatch becomes quite apparent.

It'd be nice if the relief map could take the colors automatically from the ground/climate textures, but it would also work for me if I could configure the colors somewhere, to match my ground textures.

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2841
  • D'oh
    • by An_dz
  • Languages: pt, en, it, (de)
Re: Relief map colors to match ground colors
« Reply #1 on: November 02, 2010, 03:02:27 PM »
Maybe add the use of MapColor= parameter in dat file?
This can work if exist or at least it can be a suggestion for next Simutrans. ;)

Offline Spike

  • *
  • Posts: 1361
  • First Simutrans Developer and Graphics Artist
Re: Relief map colors to match ground colors
« Reply #2 on: November 02, 2010, 03:07:59 PM »
MapColor currently (IIRC) only allows one of 255 fixed colors. And it's not allowed for grounds IIRC. (I haven't seen Simutrans code since 5 years, so I don't know much about the current code).

If this is the way to go, I'd like to have the MapColor syntax expanded, maybe like colors are often denoted in web applications:

MapColor=#RRGGBB

Would still be cool if Simutrans could precalculate the colors from the textures :)

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9454
  • Languages: De,EN,JP
Re: Relief map colors to match ground colors
« Reply #3 on: November 03, 2010, 12:13:17 AM »
Simutrans can still only use only the 256 predefined colors for the map.