Dusk/Dawn times seem to have changed in MG
#1
Posted 17 November 2023 - 05:07 PM
#2
Posted 18 November 2023 - 04:16 AM
Paul :-)
#3
Posted 18 November 2023 - 08:34 AM
#4
Posted 21 November 2023 - 03:47 PM
railguy, on 17 November 2023 - 05:07 PM, said:
I can't speak about the MG version, but for the official Open Rails versions there are two different sunrise/sunset calculations depending on which version you have:
- Versions before 2023-04-01 use the latitude/longitude and season to calculate an approximate sunrise/sunset times
- Versions after 2023-04-01 use the sunrise/sunset times specified in the season- and weather-specific "ENV" (environment) files (if the data/files do not exist it uses the previous method)
#6
Posted 22 November 2023 - 02:52 PM
James Ross, on 21 November 2023 - 03:47 PM, said:
- Versions before 2023-04-01 use the latitude/longitude and season to calculate an approximate sunrise/sunset times
- Versions after 2023-04-01 use the sunrise/sunset times specified in the season- and weather-specific "ENV" (environment) files (if the data/files do not exist it uses the previous method)
.env files? I guess I must have missed that. I checked the index of the OR Manual I have, dated 20Dec22, and the .env files are not included in the index, probably meaning they are not anywhere. Whatever portion of the .env files that are used by OR should be in an appendix of the manual.
Curious, in the manual I also looked up the string ESD; There is an entry in the index but little is explained. With that in mind I did a grep in the .sd files for a couple of routes and found these ESD commands in the payware WP 3rd sub route:
Quote
ESD_Detail_Level ( n )
ESD_No_Visual_Obstruction ()
ESD_Bounding_Box ( -1.51 0.5 -0.4468 1.51 4.52 145.633 )
ESD_SubObj ( )
ESD_Complex ( 1
0.00572002 1.76021 1.90735e-006
-2.36928 -1.75571 -25.0
2.36928 1.75571 25.0
)
)
ESD_Tunnel ( 25 8 6 10 10 )
I know the value range of ESD_Detail_Level() and some of the codes for ESD_Alternative_Texture but the rest are a mystery to me. I'll guess they are a mystery to most everybody and that some (all?) are not implemented in OR.
FWIW I know there was something that prevented smoke from passing thru another object, such as a bridge above the rails. No idea if that is in the above list or not.
Maybe time for a "Crowd Answering" campaign? Some of them might get a definition.
#7
Posted 22 November 2023 - 05:08 PM
Quote
Re-inttroduction of this in ORTS would be very desirable.
#8
Posted 22 November 2023 - 05:39 PM
Genma Saotome, on 22 November 2023 - 02:52 PM, said:
I can't find any other file usage documented in the manual, except for signal functions (which are a bit special). Can you point me at where other file usage is documented in the manual, and I'll add the ENV bits.
Genma Saotome, on 22 November 2023 - 02:52 PM, said:
Sure. It would be useful to gather all the file format documentation in one place, too. I believe we have a bunch in code comments (in Source/Orts.Formats.Msts), probably scattered around in the manual, and likely elsewhere too.
#9
Posted 22 November 2023 - 09:27 PM
James Ross, on 22 November 2023 - 05:39 PM, said:
The only thing i found was this:
ESD_ORTSBellAnimationFPS, 186
ESD_ORTSSoundFileName, 338
James Ross, on 22 November 2023 - 05:39 PM, said:
I did find a model using the ESD Complex Box / ESD bounding box references. Here is a picture: taken in shapeviewer:
I suppose the idea was to let the camera pass thru the area above the shorter box. IIRC OR doesn't bother with camera collisions. Dunno that we really lost anything... but then I build, not run.
#10
Posted 22 November 2023 - 11:32 PM
ESD_Bounding_Box ( -X -Y -Z X Y Z ) was primarily needed to connect vehicles to each other in MSTS. Secondly, for the connection between vehicles and the environment. A typical example is that if the size of the opening was specified in the tunnel entrance, it was taken into account. If the size of the opening was smaller than the size of the vehicle, it did not fit.
I like that the smoke from the trains passing under the bridges avoids the bridge.
It doesn't really belong here, but the TunnelShape ( ) entry in the TSection.dat file served a similar purpose. Sometimes it really bothers me when it snows in a hall like it does outside. Even though I made special elements to which I added the TunnelShape ( ) line, it didn't work. Then I gave up.
Sincerely, Laci1959