The International Simutrans Forum

 

Author Topic: [patch] Day/night level  (Read 6738 times)

0 Members and 1 Guest are viewing this topic.

Offline z9999

  • Devotees (Inactive)
  • *
  • Posts: 848
[patch] Day/night level
« on: September 18, 2008, 02:16:14 PM »
For http://forum.simutrans.com/index.php?topic=437.0

Added as simple_tool[19].
This tool needs a parameter.

parameter:
"+" ... fade in one level
"-" ... fade out one level
number ... toggle day/night. 4 or 5 is good for night.

example:
Quote
toolbar[0][25]=simple_tool[19],,+,+
toolbar[0][26]=simple_tool[19],,-,-
toolbar[0][27]=simple_tool[19],,*,4
« Last Edit: September 20, 2008, 05:15:58 AM by z9999 »

Offline z9999

  • Devotees (Inactive)
  • *
  • Posts: 848
Re: [patch] Day/night level
« Reply #1 on: September 18, 2008, 08:21:34 PM »
Update patch.

Fix: Color of yellowish light  (level > 4)

For translation:
Quote
Toggle day/night view


EDIT:
Minor update.
« Last Edit: September 19, 2008, 05:12:47 AM by z9999 »

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10638
  • Languages: De,EN,JP
Re: [patch] Day/night level
« Reply #2 on: September 19, 2008, 09:10:45 PM »
Well, just out of curiosity: For what do you need this tool? For testing purposes the darken screen function of the display panel can do the same trick (albeit it darlkens of course also menues).

Offline PatrickN

  • Devotee
  • *
  • Posts: 90
    • Patrick's Creations
Re: [patch] Day/night level
« Reply #3 on: September 20, 2008, 12:32:43 AM »
I used to enjoy darkening the map to nighttime levels just to watch the lights on the cars and buildings, just as I normally run in daytime mode.  Having the +/-/* keys makes it easy and quick to change between light levels.

Offline z9999

  • Devotees (Inactive)
  • *
  • Posts: 848
Re: [patch] Day/night level
« Reply #4 on: September 20, 2008, 06:09:46 AM »
- We want to to see night view without limited by time.
- Darkness setting is not assigned to key.

But my point is different.
If you all feel left side image is better, I will give up.
I mean, not only yellow lights but also color of snow and sea.

So, I want to see real night view without limited by time.

Offline VS

  • Senior Plumber (Devotee)
  • Devotees (Inactive)
  • *
  • Posts: 4856
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: [patch] Day/night level
« Reply #5 on: September 20, 2008, 08:35:27 AM »
Hm, could it be that we are discussing two separate things (in one patch):
1) change of night mode interface for user
2) change of night mode display
...no need to pack them together as inseparable?



1) I never switch night mode on, as you can't see a thing in the dark, thus giving up half the game time. And on some occasions the poetic part of me prevails and night mode gets a minute or two. So, the usage pattern is not identical, but fits z9999's changes: Have night when I want.

2) And If the night looks better... that's a bonus :)

Offline z9999

  • Devotees (Inactive)
  • *
  • Posts: 848
Re: [patch] Day/night level
« Reply #6 on: September 20, 2008, 11:37:17 AM »
Thank you.

1) change of night mode interface for user
2) change of night mode display


My patch don't touch these part.
- I didn't change night mode display.
- I didn't change night mode interface.
If "*" switch confuses you, it is OK to remove that feature.

This patch only changes day/night level of normal view.

Offline VS

  • Senior Plumber (Devotee)
  • Devotees (Inactive)
  • *
  • Posts: 4856
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: [patch] Day/night level
« Reply #7 on: September 20, 2008, 01:14:35 PM »
... and now I am confused. If it isn't night mode, then what is it?

By interface I meant addition of "*".

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10638
  • Languages: De,EN,JP
Re: [patch] Day/night level
« Reply #8 on: September 20, 2008, 05:29:20 PM »
@z9999
Sorry, if I offended you. It was just my curiosity. Thus, I think this should replace the old light/dark setting then. Otherwise it may confuse users.

Offline z9999

  • Devotees (Inactive)
  • *
  • Posts: 848
Re: [patch] Day/night level
« Reply #9 on: September 21, 2008, 04:42:29 AM »
@z9999
Sorry, if I offended you. It was just my curiosity.

No, not at all.  :) I'm very happy with some people have an interest about this.

@z9999
Thus, I think this should replace the old light/dark setting then. Otherwise it may confuse users.

This is the major reason that I didn't make GUI and made this as hidden feature.
Brightness setting is long time there with simutrans. And it also works on underground mode and auto day/night mode as an optional control.
But my patch don't work on underground mode and auto day/night mode. Especially, I don't think to add bluish on underground mode is not so good.

I am worried that if some people who are using brightness setting might feel disappointed to be replaced.
« Last Edit: September 21, 2008, 05:10:31 AM by z9999 »

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10638
  • Languages: De,EN,JP
Re: [patch] Day/night level
« Reply #10 on: September 21, 2008, 11:37:12 AM »
Actually, maybe I should use the reallatitude in Simutrans, i.e. shorter nights and longer days in summer. This should be easily possible with very few changes.

Offline kierongreen

  • Dev Team, Coder/patcher
  • Devotee
  • *
  • Posts: 2346
Re: [patch] Day/night level
« Reply #11 on: September 21, 2008, 11:45:01 AM »
Quote
Actually, maybe I should use the reallatitude in Simutrans, i.e. shorter nights and longer days in summer. This should be easily possible with very few changes.
With a configuration option to change latitude? (default being equator?)

Just I doubt the Brazilian players would appreciate it if it was fixed at the latitude of Germany (for example)...

Offline whoami

  • Devotees (Inactive)
  • *
  • Posts: 693
Re: [patch] Day/night level
« Reply #12 on: September 21, 2008, 05:39:50 PM »
For the southern hemisphere, the seasons should also be adapted. :)

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10638
  • Languages: De,EN,JP
Re: [patch] Day/night level
« Reply #13 on: September 21, 2008, 08:11:48 PM »
Of course setable ...

EDIT: A very crude, unsetable patch for 52° latitude is attached ... quite dark winters I fear.
« Last Edit: September 21, 2008, 10:23:28 PM by prissi »