Help With Applying Ap Weather To Routes (problem: "default" Weather File)

Discussion in 'General Discussion' started by Blazin, Sep 17, 2023.

  1. Blazin

    Blazin Well-Known Member

    Joined:
    Jan 12, 2022
    Messages:
    1,784
    Likes Received:
    4,422
    Hello everyone. For some context, recently I purched the Sprailways Talyllyn Adventure route and I want to play it but first I would like to apply AP Weather to the route to improve the looks and feel of the route. Problem is, the usual method doesn't work. The problem I am running into is that in the TimeOfDay folders (there are 2 of these folders in the route assets folder but hold files with the same names so I assume they are identical) have a "Default" winter file. Usually there is just 4 of these files for the four seasons of the year that you can replace. However like I mentioned there is an additional file that is just called "Default" and AP hasn't provided a "Default" weather file so I don't know what to do. I have actually spotted the "Default" weather file in much older folders too. For example, it's in the Kuju TimeOfDay folders.

    Instructions on how to edit the route to use AP Weather or other fixes would be much appreciated. Thanks for your time as I really want to enjoy this route with the glory of AP Weather!
     
    Last edited: Sep 17, 2023
  2. Spikee1975

    Spikee1975 Guest

    SPTalyllyn only uses one TimeOfDay file for all seasons. You have to redefine the TOD used in the Route Template (you find its location in the RouteProperties.xml)

    I've done that for you, Kuju\RailSimulatorCore\TimeOfDay will be used, should already contain the AP files in your case. No need to copy TimeOfDay folders here.

    Here's the modified file that does the trick for you. Changing the template file requires a game restart to come into effect.
     

    Attached Files:

    Last edited by a moderator: Sep 17, 2023
    • Helpful Helpful x 2
  3. Blazin

    Blazin Well-Known Member

    Joined:
    Jan 12, 2022
    Messages:
    1,784
    Likes Received:
    4,422
    Thank you! Taking a look at how you edited the route template, I tried to do it myself on the route to give myself some experience and happily it worked. Thank you for the solution!
     
    • Like Like x 1
  4. Spikee1975

    Spikee1975 Guest

    The logic is pretty simple.

    1. The location of the four TimeOfDay files is specified in the Route Template blueprint (usually in Assets\Provider\Product\TemplateRoute)
    2. The Route Template which applies is specified in the RouteProperties.xml
    3. In case the template does not exist, the ToD files specified in RouteProperties.xml will apply (otherwise they are meaningless)
     
    • Helpful Helpful x 2
    • Like Like x 1
  5. Blazin

    Blazin Well-Known Member

    Joined:
    Jan 12, 2022
    Messages:
    1,784
    Likes Received:
    4,422
    Thanks for your help!
     
  6. Blazin

    Blazin Well-Known Member

    Joined:
    Jan 12, 2022
    Messages:
    1,784
    Likes Received:
    4,422
    Hi again, I require your assistance with another issue regarding applying AP Weather. I can't seem to sort this stuff out with the older routes. Would you be able to provide a patch for AP Weather 2.0 for the old Portland Terminal route if it isn't too much trouble? I can't figure out how to get the weather applying despite your previous tips and the default weather is not good looking to put it lightly. If it makes any difference, I am using the original Steam released version of the route, not the newer re-release known as "Maine Maritime Switching" as released on G-Trax's website.

    Since you seem to be an expert on this sort of thing while I am not, If you don't mind, could I contact you here on this thread if I have AP Weather problems with other routes and need a patch? It's alright if not.
     
  7. Spikee1975

    Spikee1975 Guest

    That's easy. By default it uses the same TimeOfDay blueprint for all seasons, so we change it to use the core season files which are replaced by AP on installation.

    1. Check for the template blueprint by looking it up in Content\Routes\629809bc-064a-460b-8daa-0a880ecd342d\RouteProperties.xml
    1.png

    2. Open that template route file. Seasons are all the same - AP doesn't apply to this legacy "default" season. So copying the AP TimeOfDay folders to the PT assets won't change anything - they are not being used here.
    2.png

    3. Change the season reference to the core files that have been replaced by the AP TimeOfDay files.
    3.png

    4. Replace Assets\G-TraX\PortlandTerminal\TemplateRoutes\PortlandTerminal.bin with our patched file.

    That's it. (Note I'm on APSWEP v1, but it should work the same for v2).
    5.png
     

    Attached Files:

    Last edited by a moderator: Oct 24, 2023
    • Like Like x 1
    • Helpful Helpful x 1
  8. Blazin

    Blazin Well-Known Member

    Joined:
    Jan 12, 2022
    Messages:
    1,784
    Likes Received:
    4,422
    Thanks! Also may I ask, what program are you using to view those xml route files? First of all, they are .bin files for me, not xml files if that means anything. And I do not have any programs to properly edit them, best I have is notepad which displays these .bin files as garbled messes that I just can't figure out.
     
  9. Spikee1975

    Spikee1975 Guest

    That's what "Serz.exe" in the RailWorks folder is for. I've assigned it as default application for filetypes ".bin" and ".xml", so I just need to doubleclick them to convert.

    You can also use TSTools do directly edit them.
     
    • Helpful Helpful x 1
  10. Blazin

    Blazin Well-Known Member

    Joined:
    Jan 12, 2022
    Messages:
    1,784
    Likes Received:
    4,422
    Thanks! Now I understand how to edit those files using TS Tools so hopefully I'll be able to do this sort of thing by myself in the future. Thank you again for your help. :)
     
    • Like Like x 1

Share This Page