• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FS2004 Night or day?..

Messages
11
Country
russia
Can anyone tell me how to determine (for example with tokens or whatever they are called) is there a NIGHT or a DAY? I mean how to get "boolean" if the night textures are used (if it is dark outside or not)?

CLOCK_HOUR is not helping.
 
The SDK should be your best friend:

(E:TIME OF DAY,enum)

General time of day:

1 = Day

2 = Dusk/Dawn

3 = Night
 
The SDK should be your best friend:
(E:TIME OF DAY,enum)
Thanx, that's ALMOST what i needed. but...
it does show evening and night, but morning and day are both = 1 :(
And in june, for example evening begins toooo early... :(

and can you please tell me how to determine the first letter? I mean how did you know that TIME OF DAY is the "E" type? i didn't find it in SDK list. And I don't think it has something to do with "enum" type of data, because i used "number" type variables but they still were "A" types.......
 
Last edited:
I'm afraid that's all that FS offers...

...years ago several others and I developed a hideously complex algorithim to determine "day/night" based on the sun angle, position of the aircraft, etc. As turned out, all of our efforts notwithstanding, the results weren't all that much better than the FS token variable... :rotfl:

As for the token variable prefixs, those are listed in the FSX SDK. Unfortunately they were not listed in the FS9 SDK...

...except for this handful listed below, everything else uses an A: prefix (Aircraft)...

Environment Data
This data is referenced by E: in XML gauges.

ABSOLUTE TIME
ZULU TIME
ZULU DAY OF WEEK
ZULU DAY OF MONTH
ZULU MONTH OF YEAR
ZULU DAY OF YEAR
ZULU YEAR GMT
LOCAL TIME
LOCAL DAY OF WEEK
LOCAL DAY OF MONTH
LOCAL MONTH OF YEAR
LOCAL DAY OF YEAR
LOCAL YEAR
TIME ZONE OFFSET
TIME OF DAY

Program Data
This data is referenced by P: in XML gauges.

SIMULATION RATE
UNITS OF MEASURE
 
n4gix, thanx for the prefix explanation. now i understand it.

About day or night. Maybe there is some tricky variable (or none-variable way) to determine if the night textures are on? it doesn't matter which one - aircraft's of scenery's....
 
Back
Top