Timeofday\default.xml - Replacing With Ap Weather

Discussion in 'General Discussion' started by mattdsoares, Jan 5, 2024.

  1. mattdsoares

    mattdsoares Well-Known Member

    Joined:
    Sep 17, 2020
    Messages:
    639
    Likes Received:
    1,282
    Hi all, dealing with some freeware routes that I'd like to add the AP weather pack to. I've encountered a number of such routes that in the RouteProperties.xml, they specify that rather than looking to Kuju\TrainSimulatorCore\Summer.xml or \Autumn.xml, they look for \default.xml. There indeed is a default/xml in the Kuju TimeofDay folder and it isn't replaced by the AP weather pack. I've tried to edit the RouteProperties.xml for these routes to point them at the individual Summer.xml for summer, Autumn.xml for Autumn, instead of default.xml for each season, but this makes no difference and they still load with the old Kuju weather.

    Any idea how to override this? Do I also need to edit the xml for the route template being used perhaps? At a bit of a loss.
     
  2. Spikee1975

    Spikee1975 Guest

    Yes, you have to look up the Route Template used and change default_xml to Core_Spring, Core_Summer etc. in there.

    When a route is created, the data of the template used is copied to RouteProperties.xml. Changing it there will not have an effect, it's more of a fallback incase the templateRoute.bin is missing.

    Livonia for example uses only default.xml, which does make sense in the way that it is located in the subtropical region and does not have big differences in daylight time over the year, as we, being in the relatively high north, experience. No dark winter days.

    Daylight diagram for Alexandria, Lousiana:
    1.png

    To have realistic lighting on this route, it's best to use 3D weather + DynamicClouds and not TimeOfDay. (Or use Core_Summer for all seasons)

    Or edit the AP files for those regions, changing sun azimuth (much higher) and sunset/rise times individually. Season Azimuths can be quickly calculated only based on the route latitude.
     
    Last edited by a moderator: Jan 5, 2024
    • Like Like x 2
  3. mattdsoares

    mattdsoares Well-Known Member

    Joined:
    Sep 17, 2020
    Messages:
    639
    Likes Received:
    1,282
    Great, thanks Spikee. Not looking to getting into editing TODs, just want to get better skies and lighting on some freeware routes. So If I'm following, use RouteProperties.xml to find the route template being used, and then edit that Route Template to switch out default for the various seasons. Thanks!
     
  4. Kim Olesen

    Kim Olesen Well-Known Member

    Joined:
    Jun 21, 2018
    Messages:
    748
    Likes Received:
    600
    Also worth looking into is this: if a route has no timeofday folder, it’s probably using the kuju folder. So i simply pasted the ap time of day files into the kuju timeofday folder, and thus applied it to all routes that use that one by default.
     
    • Like Like x 1

Share This Page