Elvas Tower: No weather change - Elvas Tower

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

No weather change Rate Topic: -----

#1 User is offline   septf 

  • Hostler
  • Group: Posts: Active Member
  • Posts: 70
  • Joined: 28-July 14
  • Gender:Male
  • Location:Cognac
  • Simulator:MSTS OpenRails
  • Country:

Posted 19 April 2021 - 07:28 AM

Hello
The weather change does not work with monogame versions (Rev93,95 and 96) nor with version X1.3.1-342-gf793f152f. Is this normal?
With the stable version 1.3.1.4328 it works
Here is the code
Events (
			EventCategoryTime (
				EventTypeTime ( )
				ID ( 1 )
				Activation_Level ( 1 )
				Outcomes (
					ORTSWeatherChange ( "Brouillard Tombant" )
				)
				Name ( JMF_PCA_Essai_meteo )
				Time ( 0 )
				ORTSWeatherChange (
					Name ( "Brouillard Tombant" )
					ORTSFog ( 80 50 ) 

Best Regards
Jean-Marc

#2 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Posts: Elite Member
  • Posts: 7,442
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 19 April 2021 - 12:05 PM

My test activity works regularly.

#3 User is offline   nounours1952 

  • Hostler
  • Group: Posts: Active Member
  • Posts: 51
  • Joined: 02-September 14
  • Simulator:MSTS / OR
  • Country:

Posted 29 April 2021 - 01:02 AM

View PostCsantucci, on 19 April 2021 - 12:05 PM, said:

My test activity works regularly.

Hello,

the weather change is working fine, but the speed of the trains seems to have an influence on the precipitation on front view. At the rear, everything seems normal.

What is the problem?

https://zupimages.net/up/21/17/ppue.jpg

https://zupimages.net/up/21/17/6yvc.jpg

https://zupimages.net/up/21/17/qwe3.jpg

Friendly
Pascal

#4 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Posts: Elite Member
  • Posts: 7,442
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 29 April 2021 - 07:43 AM

If my guess is correct, it's not elementary to solve this. Raindrops and snow flakes are generated within a "box" that moves with the camera. Raindrops need some time to fall from the top of the box down to the bottom. If your camera runs fast, most of raindrops and snow flakes are still near the top of the box in front of you, and so you won't see many of them.

#5 User is offline   vince 

  • Superintendant
  • Group: Posts: Elite Member
  • Posts: 1,316
  • Joined: 18-June 14
  • Gender:Male
  • Location:West of the Contental Divide
  • Simulator:ORTS_Running MSTS_Editing
  • Country:

Posted 29 April 2021 - 07:51 AM

My question to the original poster is have you modified the size of the precipitation box?
The log would show this but . . . no log . . .

vince


#6 User is offline   septf 

  • Hostler
  • Group: Posts: Active Member
  • Posts: 70
  • Joined: 28-July 14
  • Gender:Male
  • Location:Cognac
  • Simulator:MSTS OpenRails
  • Country:

Posted 29 April 2021 - 08:02 AM

Since I have the same problem as Pascal, here is the information about the precipitation box

Quote

PrecipitationBoxHeight = 100
PrecipitationBoxLength = 500
PrecipitationBoxWidth = 500


How to change these parameters, possibly
I just saw how to change the zones
Jean-Marc

#7 User is offline   nounours1952 

  • Hostler
  • Group: Posts: Active Member
  • Posts: 51
  • Joined: 02-September 14
  • Simulator:MSTS / OR
  • Country:

Posted 06 May 2021 - 01:47 AM

View Postseptf, on 19 April 2021 - 07:28 AM, said:

Hello
The weather change does not work with monogame versions (Rev93,95 and 96) nor with version X1.3.1-342-gf793f152f. Is this normal?
With the stable version 1.3.1.4328 it works
Here is the code
Events (
			EventCategoryTime (
				EventTypeTime ( )
				ID ( 1 )
				Activation_Level ( 1 )
				Outcomes (
					ORTSWeatherChange ( "Brouillard Tombant" )
				)
				Name ( JMF_PCA_Essai_meteo )
				Time ( 0 )
				ORTSWeatherChange (
					Name ( "Brouillard Tombant" )
					ORTSFog ( 80 50 ) 

Best Regards
Jean-Marc


Hello,

no Idea ?

Amicalement
Pascal

#8 User is offline   mareknowosad 

  • ex-m61
  • Group: Posts: Active Member
  • Posts: 197
  • Joined: 25-July 23
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 06 May 2021 - 07:04 AM

Hello
The weather change does not work with monogame versions (Rev98) not with version U2021.05.06-0921.
With the stable version 1.3.1.4328 it works OK .
TSRE Activity Editor Manual
12. Change the Weather.
https://docs.google....dit?usp=sharing

Activity made in TSRE5 AE
Here is the test code weathertransitions.dat in route folder


ORTSWeatherChangeList (
	ORTSWeatherChange (
		Name ( "Fog" )
		ORTSFog ( 500 20)
	)
	ORTSWeatherChange (
		Name ( "Fog stop" )
		ORTSFog ( 10000 60)
	)
	ORTSWeatherChange (
		Name ( "Precipitation" )
		ORTSPrecipitationIntensity ( 0.004 30)
	)
	ORTSWeatherChange (
		Name ( "Precipitation stop" )
		ORTSPrecipitationIntensity ( 0 180)
	)
	ORTSWeatherChange (
		Name ( "Overcast" )
		ORTSOvercast ( 0.7 10 )
	)
	ORTSWeatherChange (
		Name ( "Overcast stop" )
		ORTSOvercast ( 0.0 120 )
	)
)


Here is the code TestWeatherChange.act
		NextServiceUID ( 1 )
		NextActivityObjectUID ( 32768 )
		ORTSAIHornAtCrossings ( 1 )
		Events (
			EventCategoryTime (
				EventTypeTime ( )
				ID ( 2 )
				Activation_Level ( 1 )
				Outcomes (
					ORTSWeatherChange ( Overcast )
				)
				Name ( Overcast )
				Time ( 10 )
				ORTSWeatherChange (
					Name ( Overcast )
					ORTSOvercast ( 0.7 10 )
				)
			)
			EventCategoryTime (
				EventTypeTime ( )
				ID ( 3 )
				Activation_Level ( 1 )
				Outcomes (
					ORTSWeatherChange ( Fog )
				)
				Name ( Fog )
				Time ( 20 )
				ORTSWeatherChange (
					Name ( Fog )
					ORTSFog ( 500 20 )
				)
			)
			EventCategoryTime (
				EventTypeTime ( )
				ID ( 4 )
				Activation_Level ( 1 )
				Outcomes (
					ORTSWeatherChange ( Precipitation )
				)
				Name ( Rain )
				Time ( 60 )
				ORTSWeatherChange (
					Name ( Precipitation )
					ORTSPrecipitationIntensity ( 0.004 30 )
				)
			)
			EventCategoryTime (
				EventTypeTime ( )
				ID ( 5 )
				Activation_Level ( 1 )
				Outcomes (
					ORTSWeatherChange ( "Precipitation stop" )
				)
				Name ( "Rain stop" )
				Time ( 120 )
				ORTSWeatherChange (
					Name ( "Precipitation stop" )
					ORTSPrecipitationIntensity ( 0 180 )
				)
			)
			EventCategoryTime (
				EventTypeTime ( )
				ID ( 6 )
				Activation_Level ( 1 )
				Outcomes (
					ORTSWeatherChange ( "Fog stop" )
				)
				Name ( "Fog stop" )
				Time ( 240 )
				ORTSWeatherChange (
					Name ( "Fog stop" )
					ORTSFog ( 10000 60 )
				)
			)
			EventCategoryTime (
				EventTypeTime ( )
				ID ( 7 )
				Activation_Level ( 1 )
				Outcomes (
					ORTSWeatherChange ( "Overcast stop" )
				)
				Name ( "Overcast stop" )
				Time ( 300 )
				ORTSWeatherChange (
					Name ( "Overcast stop" )
					ORTSOvercast ( 0 120 )
				)
			)
		)
	)
)


stable version 1.3.1.4328

Attached File  TSRE5 AE weather.jpg (378.42K)
Number of downloads: 5
Attached File  Open Rails 2021-05-06 01-46-11.jpg (477.57K)
Number of downloads: 5
Attached File  Open Rails 2021-05-06 01-55-15.jpg (408.06K)
Number of downloads: 1
Attached File  Open Rails 2021-05-06 01-59-03.jpg (419.96K)
Number of downloads: 1

version U2021.05.06-0921

Attached File  Open Rails 2021-05-06 02-03-16.jpg (361.09K)
Number of downloads: 1

monogame versions (Rev98)

Attached File  RunActivity32 2021-05-06 14-05-00.jpg (496.02K)
Number of downloads: 2
Attached File  Open Rails 2021-05-06 02-05-00.jpg (447.06K)
Number of downloads: 2

#9 User is offline   mareknowosad 

  • ex-m61
  • Group: Posts: Active Member
  • Posts: 197
  • Joined: 25-July 23
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 06 May 2021 - 11:31 AM

ORTSWeatherChange - Time and Location x 3

Attached File  TSRE5 AE weather.jpg (378.42K)
Number of downloads: 3
Attached File  tsre ae overcast2.jpg (574.24K)
Number of downloads: 2
Attached File  tsre ae fog2.jpg (535.06K)
Number of downloads: 2
Attached File  tsre ae rain2.jpg (458.31K)
Number of downloads: 1

https://youtu.be/YyEhlhosm_Q




#10 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Posts: Elite Member
  • Posts: 7,442
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 06 May 2021 - 11:46 AM

I found the issue and have to decide which is the cleanest way to solve it. It occurs only if the activity is created with TSRE5, and what disturbs the actual versions of OR is this line
ORTSWeatherChange ( "ThisIsANameForThisWeatherChange" )

added by TSRE5 within the Outcomes block.
If this line, which is unuseful for OR and is useful only for TSRE5, is removed, the weather change works.

#11 User is offline   septf 

  • Hostler
  • Group: Posts: Active Member
  • Posts: 70
  • Joined: 28-July 14
  • Gender:Male
  • Location:Cognac
  • Simulator:MSTS OpenRails
  • Country:

Posted 06 May 2021 - 12:07 PM

Hello.

That’s what I found too, I said on my forum but I forgot to mention it here. But why it works with the stable version and not the others?

Best regards
Jean-Marc

#12 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Posts: Elite Member
  • Posts: 7,442
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 06 May 2021 - 12:12 PM

It works with the stable version, because in the other versions a cleaner possibility was added, that is to add the whole ORTSWeatherChange block within the Outcomes block, which is also the possibility which is described in the OR manual.

I have now fixed the problem in OR NewYear MG rev. 98.1; after some further thinking I'll insert the fix also in the official Unstable release.

#13 User is offline   mareknowosad 

  • ex-m61
  • Group: Posts: Active Member
  • Posts: 197
  • Joined: 25-July 23
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 06 May 2021 - 12:21 PM

I confirm - this is what I did manually, before reading this thread, so that the OR Test and MG versions read the weather changes in the activity. Now station clocks are also working - showing the current time in activity :-)
Attached File  RunActivity32 2021-05-06 22-16-14.jpg (460.99K)
Number of downloads: 10

		NextServiceUID ( 1 )
		NextActivityObjectUID ( 32768 )
		ORTSAIHornAtCrossings ( 1 )
		Events (
			EventCategoryTime (
				EventTypeTime ( )
				ID ( 2 )
				Activation_Level ( 1 )
				Outcomes (
				)
				Name ( Overcast )
				Time ( 10 )
				ORTSWeatherChange (
					Name ( Overcast )
					ORTSOvercast ( 0.7 10 )
				)
			)
			EventCategoryTime (
				EventTypeTime ( )
				ID ( 3 )
				Activation_Level ( 1 )
				Outcomes (
				)
				Name ( Fog )
				Time ( 20 )
				ORTSWeatherChange (
					Name ( Fog )
					ORTSFog ( 500 20 )
				)
			)
			EventCategoryTime (
				EventTypeTime ( )
				ID ( 4 )
				Activation_Level ( 1 )
				Outcomes (
				)
				Name ( Rain )
				Time ( 60 )
				ORTSWeatherChange (
					Name ( Precipitation )
					ORTSPrecipitationIntensity ( 0.004 30 )
				)
			)
			EventCategoryTime (
				EventTypeTime ( )
				ID ( 5 )
				Activation_Level ( 1 )
				Outcomes (
				)
				Name ( "Rain stop" )
				Time ( 120 )
				ORTSWeatherChange (
					Name ( "Precipitation stop" )
					ORTSPrecipitationIntensity ( 0 180 )
				)
			)
			EventCategoryTime (
				EventTypeTime ( )
				ID ( 6 )
				Activation_Level ( 1 )
				Outcomes (
				)
				Name ( "Fog stop" )
				Time ( 240 )
				ORTSWeatherChange (
					Name ( "Fog stop" )
					ORTSFog ( 10000 60 )
				)
			)
			EventCategoryTime (
				EventTypeTime ( )
				ID ( 7 )
				Activation_Level ( 1 )
				Outcomes (
				)
				Name ( "Overcast stop" )
				Time ( 300 )
				ORTSWeatherChange (
					Name ( "Overcast stop" )
					ORTSOvercast ( 0 120 )
				)
			)
			EventCategoryLocation (
				EventTypeLocation ( )
				ID ( 8 )
				Activation_Level ( 1 )
				Outcomes (
				)
				Name ( overcast_2 )
				Location ( -5448 14926 505.204 742.294 10 )
				ORTSWeatherChange (
					Name ( Overcast )
					ORTSOvercast ( 0.7 10 )
				)
			)
			EventCategoryLocation (
				EventTypeLocation ( )
				ID ( 9 )
				Activation_Level ( 1 )
				Outcomes (
				)
				Name ( fog_2 )
				Location ( -5448 14927 221.862 -972.514 10 )
				ORTSWeatherChange (
					Name ( Fog )
					ORTSFog ( 500 20 )
				)
			)
			EventCategoryLocation (
				EventTypeLocation ( )
				ID ( 10 )
				Activation_Level ( 1 )
				Outcomes (
				)
				Name ( rain_2 )
				Location ( -5448 14927 -5.94034 -634.868 10 )
				ORTSWeatherChange (
					Name ( Precipitation )
					ORTSPrecipitationIntensity ( 0.004 30 )
				)
			)
		)
	)
)


https://youtu.be/Rz_ZWfhluWY



#14 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Posts: Elite Member
  • Posts: 7,442
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 06 May 2021 - 10:30 PM

Hi m61, as written in my post above, with rev. 98.1 it is no more needed to delete the ORTSWeatherChange line within the Outcomes() block.

#15 User is offline   nounours1952 

  • Hostler
  • Group: Posts: Active Member
  • Posts: 51
  • Joined: 02-September 14
  • Simulator:MSTS / OR
  • Country:

Posted 07 May 2021 - 08:51 AM

View PostCsantucci, on 06 May 2021 - 11:46 AM, said:

I found the issue and have to decide which is the cleanest way to solve it. It occurs only if the activity is created with TSRE5, and what disturbs the actual versions of OR is this line
ORTSWeatherChange ( "ThisIsANameForThisWeatherChange" )

added by TSRE5 within the Outcomes block.
If this line, which is unuseful for OR and is useful only for TSRE5, is removed, the weather change works.

Thanks a lot, Carlo.

Mile Grazie.

Amicalement Pascal

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users