AP Weather Enhancement Pack

This forum is for developers who do not have a dedicated forum.

Re: AP Weather Enhancement Pack

Unread postby ozinoz » Tue Sep 29, 2020 6:16 pm

Personally I have not seen this.

Try contacting AP direct or checkout the UKtrainsim forums, where there has been a much greater uptake on the product.

Hope you can get it resolved...

!*cheers*!
ozinoz
 
Posts: 1626
Joined: Fri Feb 20, 2009 1:59 am
Location: Antipodes

Re: AP Weather Enhancement Pack

Unread postby oldman777 » Wed Sep 30, 2020 5:44 pm

I found a compromise solution for sky artifacts which suits me completely.
It is necessary to replace the sky provider in four files from TimeOfDay folder to default.

Autumn for an example.
In file:
Assets\AP\WeatherEP\TimeOfDay\Autumn.bin
Section:
Code: Select all
         <TimeScaler d:type="sInt32">1</TimeScaler>
         <skyDomeMesh d:type="cDeltaString">AP\WeatherEP\Environment\Sky\[00]skydome_1</skyDomeMesh>
         <skyDomeTex d:type="cDeltaString">AP\WeatherEP\Environment\Sky\textures\[00]sky_dome</skyDomeTex>
         <SunTexture d:type="cDeltaString">AP\WeatherEP\Environment\Sky\textures\[00]sun</SunTexture>
         <MoonTexture d:type="cDeltaString">AP\WeatherEP\Environment\Sky\textures\[00]Moon_3x3</MoonTexture>
         <NumberOfMoonPhases d:type="sUInt32">9</NumberOfMoonPhases>
         <SunRadius d:type="sFloat32" d:alt_encoding="0000000000805140" d:precision="string">70</SunRadius>
         <MoonRadius d:type="sFloat32" d:alt_encoding="0000000000005940" d:precision="string">100</MoonRadius>
         <SunScaleVal d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</SunScaleVal>
         <MoonScaleVal d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</MoonScaleVal>

replace with section from file:
Assets\Kuju\RailSimulatorCore\TimeOfDay\Core_Autumn.bin
(Files in this folder must be original, not replaced by Sky & Weather Enhancement Pack installation)
Code: Select all
          <TimeScaler d:type="sInt32">1</TimeScaler>
         <skyDomeMesh d:type="cDeltaString">Kuju\RailSimulatorCore\Environment\Sky\[00]sky</skyDomeMesh>
         <skyDomeTex d:type="cDeltaString">Kuju\RailSimulatorCore\Environment\Sky\textures\[00]sky_dome</skyDomeTex>
         <SunTexture d:type="cDeltaString">Kuju\RailSimulatorCore\Environment\Sky\textures\[00]Object_sun01</SunTexture>
         <MoonTexture d:type="cDeltaString">Kuju\RailSimulatorCore\Environment\Sky\textures\[00]Object_moon01</MoonTexture>
         <SunRadius d:type="sFloat32" d:alt_encoding="0000000000804640" d:precision="string">45</SunRadius>
         <MoonRadius d:type="sFloat32" d:alt_encoding="0000000000804140" d:precision="string">35</MoonRadius>
         <SunScaleVal d:type="sFloat32" d:alt_encoding="0000000000001040" d:precision="string">4</SunScaleVal>
         <MoonScaleVal d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</MoonScaleVal>

Do the same with the remaining three files. Then copy TimeOfDay folder with the corrected files to the routes you need.
After that, only the sky textures will be replaced. General illumination, color palette and weather will remain the same.
I tested it on several routes and it works. Perhaps it will be useful for someone.

Image
Last edited by oldman777 on Thu Oct 01, 2020 2:23 am, edited 1 time in total.
User avatar
oldman777
 
Posts: 22
Joined: Sun Aug 16, 2015 8:14 am
Location: Moscow, RU

Re: AP Weather Enhancement Pack

Unread postby AmericanSteam » Wed Sep 30, 2020 6:17 pm

Where is the time of day folder located? I have looked within the route folder and can not find it. !*hp*!
Just an old Alaska guy trying to live in an insane world. Degree in life, Masters in common sense.
User avatar
AmericanSteam
 
Posts: 2847
Joined: Mon Nov 02, 2015 9:54 am
Location: Nikiski, Alaska

Re: AP Weather Enhancement Pack

Unread postby BoostedFridge » Wed Sep 30, 2020 9:54 pm

AmericanSteam wrote:Where is the time of day folder located? I have looked within the route folder and can not find it. !*hp*!


It will be located in the ASSETS folder for the provider/product in question. Depending on the provider, the route assets may be inside an .ap file.

TOD Location.JPG
You do not have the required permissions to view the files attached to this post.
User avatar
BoostedFridge
 
Posts: 2277
Joined: Sat Aug 24, 2013 6:39 am
Location: Vancouver, BC

Re: AP Weather Enhancement Pack

Unread postby AmericanSteam » Wed Sep 30, 2020 11:14 pm

Thanks, I was looking in the route folder **!!bang!!**
I should be able to build a folder structure pointing to this from outside the .ap, thereby overriding the TOD folder within the .ap.
Just an old Alaska guy trying to live in an insane world. Degree in life, Masters in common sense.
User avatar
AmericanSteam
 
Posts: 2847
Joined: Mon Nov 02, 2015 9:54 am
Location: Nikiski, Alaska

Re: AP Weather Enhancement Pack

Unread postby oldman777 » Thu Oct 01, 2020 1:53 am

If Assets is packed in .ap, open it with WinRAR or 7-Zip and look at the file names in the TimeOfDay folder. If the file names are different, rename them, so that the names match those in .AP.

Image

After that, place the TimeOfDay folder in the same directory as .ap.

Image

PS: I haven't checked how important this is yet, but I returned all the original files to TimeOfDay and Weather folders to the core directory of the game.
RailWorks\Assets\Kuju\RailSimulatorCore\
During the Sky & Weather Enhancement Pack installation, some files are replaced there.
If anyone needs these files, then I can share this here, if it is not prohibited.
User avatar
oldman777
 
Posts: 22
Joined: Sun Aug 16, 2015 8:14 am
Location: Moscow, RU

Re: AP Weather Enhancement Pack

Unread postby AmericanSteam » Thu Oct 01, 2020 8:11 pm

Thank you for the information, I wsa able to add this to multiple routes with success. How can I add this to New York Division Bergan that is not in assets?
Just an old Alaska guy trying to live in an insane world. Degree in life, Masters in common sense.
User avatar
AmericanSteam
 
Posts: 2847
Joined: Mon Nov 02, 2015 9:54 am
Location: Nikiski, Alaska

Re: AP Weather Enhancement Pack

Unread postby BoostedFridge » Thu Oct 01, 2020 8:38 pm

AmericanSteam wrote:How can I add this to New York Division Bergan that is not in assets?


Open the route's bin folder and look to see which DTG DLC's assets are being used for its time of day files. It is likely the same as the base route DLC that Minerman used for his route template.
User avatar
BoostedFridge
 
Posts: 2277
Joined: Sat Aug 24, 2013 6:39 am
Location: Vancouver, BC

Re: AP Weather Enhancement Pack

Unread postby buzz456 » Fri Oct 02, 2020 8:36 am

The route bin file is in the Sherman Hill assets so I assume that means it's using the Sherman Hill Time of Day?
Buzz
39 and holding.
"Some people find fault like there's a reward for it."- Zig Ziglar
"If you can dream it you can do it."- Walt Disney
Image
User avatar
buzz456
Site Admin
 
Posts: 20911
Joined: Sun Mar 21, 2010 8:30 am
Location: SW Florida

Re: AP Weather Enhancement Pack

Unread postby oldman777 » Fri Oct 02, 2020 3:23 pm

AmericanSteam wrote:Thank you for the information, I wsa able to add this to multiple routes with success. How can I add this to New York Division Bergan that is not in assets?

New York Division - Bergen Line use Sherman Hill TimeOfDay.

Bergen Line - RouteProperties.xml:
Code: Select all
                     <Provider d:type="cDeltaString">RSC</Provider>
                     <Product d:type="cDeltaString">ShermanHill</Product>
               <BlueprintID d:type="cDeltaString">TimeOfDay\Sherman_Spring.xml</BlueprintID>
User avatar
oldman777
 
Posts: 22
Joined: Sun Aug 16, 2015 8:14 am
Location: Moscow, RU

Re: AP Weather Enhancement Pack

Unread postby oldman777 » Wed Oct 21, 2020 4:56 pm

I tested another version that makes minimal changes and I liked that better. Only two lines need to be replaced in each of the four seasons.

Replace:
Code: Select all
         <skyDomeMesh d:type="cDeltaString">AP\WeatherEP\Environment\Sky\[00]skydome_1</skyDomeMesh>
         <skyDomeTex d:type="cDeltaString">AP\WeatherEP\Environment\Sky\textures\[00]sky_dome</skyDomeTex>

with:
Code: Select all
         <skyDomeMesh d:type="cDeltaString">Kuju\RailSimulatorCore\Environment\Sky\[00]sky</skyDomeMesh>
         <skyDomeTex d:type="cDeltaString">Kuju\RailSimulatorCore\Environment\Sky\textures\[00]sky_dome</skyDomeTex>
User avatar
oldman777
 
Posts: 22
Joined: Sun Aug 16, 2015 8:14 am
Location: Moscow, RU

Previous

Return to 3rd Party Developers Support Forum

Who is online

Users browsing this forum: No registered users and 1 guest

cron