Elvas Tower: AI train Waiting Point modification through event - Elvas Tower

Jump to content

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

AI train Waiting Point modification through event Rate Topic: ****- 1 Votes

#11 User is offline   ADITYA3191 

  • Apprentice
  • Group: Status: Active Member
  • Posts: 30
  • Joined: 20-October 20
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 30 March 2021 - 08:22 PM

Hi Sir ,
I am attaching the extension file of my testing activity and Surprisingly its working properly . Also attaching the extension file of original Activity (updated) which is not working even after following same procedure , I don't know the reason behind this , why I am not getting results even after Successful test , Please Guide me , Take Your time to reproduce the scenario .

1. Testing Activity (New Player is AI2)
SIMISA@@@@@@@@@@JINX0a0t______

Tr_Activity (
	Tr_Activity_File (
		Events (
			EventCategoryLocation (
				ID ( 1 )
                                ORTSTriggeringTrain ( "AI2" )                                
				ORTSContinue ( 3 )
				Outcomes (
					ORTSRestartWaitingTrain (
						ORTSWaitingTrainToRestart ( "WPM_Testing_AI" )
							ORTSDelayToRestart ( 60 )
							ORTSMatchingWPDelay ( 31500 )
							)
				)
			)
		)
	)
)


2. Original Act File (Updated)
SIMISA@@@@@@@@@@JINX0a0t______

Tr_Activity (
	Tr_Activity_File (
		Events (
			EventCategoryLocation (
				ID ( 14 )
				ORTSContinue ( 3 )
				Outcomes (
					ORTSRestartWaitingTrain (
						ORTSWaitingTrainToRestart ( "11014_Freight_0" )
							ORTSDelayToRestart ( 10 )
							ORTSMatchingWPDelay ( 30700 )
							)
				)
			)
		)
	)
)
SIMISA@@@@@@@@@@JINX0a0t______

Tr_Activity (
	Tr_Activity_File (
		Events (
			EventCategoryLocation (
				ID ( 1 )
				ORTSContinue ( 3 )
                                ORTSTriggeringTrain ( "AI10" )
				Outcomes (
					ORTSRestartWaitingTrain (
						ORTSWaitingTrainToRestart ( "11014_22686 CDG YPR KESK" )
							ORTSDelayToRestart ( 5 )
							ORTSMatchingWPDelay ( 31020 )
							)
				)
			)
		)
	)
)
SIMISA@@@@@@@@@@JINX0a0t______

Tr_Activity (
	Tr_Activity_File (
		Events (
			EventCategoryLocation (
				ID ( 2 )
				ORTSContinue ( 3 )
                                ORTSTriggeringTrain ( "AI10" )
				Outcomes (
					ORTSRestartWaitingTrain (
						ORTSWaitingTrainToRestart ( "11014_Parcel Express" )
							ORTSDelayToRestart ( 8 )
							ORTSMatchingWPDelay ( 31230 )
							)
				)
			)
		)
	)
)
SIMISA@@@@@@@@@@JINX0a0t______

Tr_Activity (
	Tr_Activity_File (
		Events (
			EventCategoryLocation (
				ID ( 13 )
				ORTSContinue ( 3 )
                                ORTSTriggeringTrain ( "AI10" )
				Outcomes (
					ORTSRestartWaitingTrain (
						ORTSWaitingTrainToRestart ( "11014_51318 PNVL PUNE Passenger" )
							ORTSDelayToRestart ( 3 )
							ORTSMatchingWPDelay ( 31300 )
							)
				)
			)
		)
	)
)


#12 User is offline   Csantucci 

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

Posted 31 March 2021 - 12:11 AM

Hi, your updated extension act file is not correct.
You must have only a Tr_Activity block in it. Therefore also the SIMISA@@@@@@@@@@JINX0a0t______ line must be present only on top of the file. That file should be as follows

SIMISA@@@@@@@@@@JINX0a0t______

Tr_Activity (
	Tr_Activity_File (
		Events (
			EventCategoryLocation (
				ID ( 14 )
				ORTSContinue ( 3 )
				Outcomes (
					ORTSRestartWaitingTrain (
						ORTSWaitingTrainToRestart ( "11014_Freight_0" )
							ORTSDelayToRestart ( 10 )
							ORTSMatchingWPDelay ( 30700 )
							)
				)
			)

			EventCategoryLocation (
				ID ( 1 )
				ORTSContinue ( 3 )
                                ORTSTriggeringTrain ( "AI10" )
				Outcomes (
					ORTSRestartWaitingTrain (
						ORTSWaitingTrainToRestart ( "11014_22686 CDG YPR KESK" )
							ORTSDelayToRestart ( 5 )
							ORTSMatchingWPDelay ( 31020 )
							)
				)
			)
	
			EventCategoryLocation (
				ID ( 2 )
				ORTSContinue ( 3 )
                                ORTSTriggeringTrain ( "AI10" )
				Outcomes (
					ORTSRestartWaitingTrain (
						ORTSWaitingTrainToRestart ( "11014_Parcel Express" )
							ORTSDelayToRestart ( 8 )
							ORTSMatchingWPDelay ( 31230 )
							)
				)
			)
	
			EventCategoryLocation (
				ID ( 13 )
				ORTSContinue ( 3 )
                                ORTSTriggeringTrain ( "AI10" )
				Outcomes (
					ORTSRestartWaitingTrain (
						ORTSWaitingTrainToRestart ( "11014_51318 PNVL PUNE Passenger" )
							ORTSDelayToRestart ( 3 )
							ORTSMatchingWPDelay ( 31300 )
							)
				)
			)
		)
	)
)


#13 User is offline   ADITYA3191 

  • Apprentice
  • Group: Status: Active Member
  • Posts: 30
  • Joined: 20-October 20
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 31 March 2021 - 03:16 AM

No Sir, Still its not working :cry1: :cry1:
And Surprisingly its working properly in my test activity without adding ORTSTriggeringTrain ( ... ) function also.

#14 User is offline   septf 

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

Posted 31 March 2021 - 04:17 AM

Hello..

I did an activity with an extension file and I had to set the start time of the traffic following "ORTSWaitingTrainToRestart ( "11014_Freight_0" )"
Like this. "ORTSWaitingTrainToRestart ( "11014_Freight_0" xxxxx )
Otherwise it didn’t work
I don’t know if that’s the solution to your problem, but at home it works
I know it’s optional but if I didn’t mention it it didn’t work
Best regards
Jean-Marc

#15 User is offline   ADITYA3191 

  • Apprentice
  • Group: Status: Active Member
  • Posts: 30
  • Joined: 20-October 20
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 31 March 2021 - 08:14 AM

 septf, on 31 March 2021 - 04:17 AM, said:

Hello..

I did an activity with an extension file and I had to set the start time of the traffic following "ORTSWaitingTrainToRestart ( "11014_Freight_0" )"
Like this. "ORTSWaitingTrainToRestart ( "11014_Freight_0" xxxxx )
Otherwise it didn’t work
I don’t know if that’s the solution to your problem, but at home it works
I know it’s optional but if I didn’t mention it it didn’t work
Best regards
Jean-Marc



No Sir , Its not working

#16 User is offline   Csantucci 

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

Posted 01 April 2021 - 06:32 AM

Hi ADITYA,
I built an activity similar to yours, with a difference only in the paths of the helper and helped train.
From your words I understand that your player train path file does not fully follow the physical path of the diesel loco; instead, after split, it follows the physical path of the electric loco + wagons.
I instead did it so: the player train path file follows the physical path of the diesel loco, also after split; the path file of the helped AI train (electric locomotive + wagons) follows the physical path of the helped train, also after split.
So, once the split point is reached, I uncouple the electric locomotive + wagons from the diesel loco, and then I jump into the cab of the electric loco with the Train List Window; at this point I see the diesel loco going away on its path, and I as player drive the electric loco + wagon further on its path.
I created three waiting point modification events, one in the part of the run where I am running the diesel loco, and two in the part where I am running the electric loco.
All three events trigger successfully and restart the waiting AI trains.
Attached you have the extension .act file
Attached File  Testhelperplayer_forward.act.txt (2.13K)
Number of downloads: 283
You might try modifying the .pat files so that they are similar to mine, and see if it works that way.

#17 User is offline   ADITYA3191 

  • Apprentice
  • Group: Status: Active Member
  • Posts: 30
  • Joined: 20-October 20
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 01 April 2021 - 08:36 AM

 Csantucci, on 01 April 2021 - 06:32 AM, said:

Hi ADITYA,
I built an activity similar to yours, with a difference only in the paths of the helper and helped train.
From your words I understand that your player train path file does not fully follow the physical path of the diesel loco; instead, after split, it follows the physical path of the electric loco + wagons.
I instead did it so: the player train path file follows the physical path of the diesel loco, also after split; the path file of the helped AI train (electric locomotive + wagons) follows the physical path of the helped train, also after split.
So, once the split point is reached, I uncouple the electric locomotive + wagons from the diesel loco, and then I jump into the cab of the electric loco with the Train List Window; at this point I see the diesel loco going away on its path, and I as player drive the electric loco + wagon further on its path.
I created three waiting point modification events, one in the part of the run where I am running the diesel loco, and two in the part where I am running the electric loco.
All three events trigger successfully and restart the waiting AI trains.
Attached you have the extension .act file
Testhelperplayer_forward.act.txt
You might try modifying the .pat files so that they are similar to mine, and see if it works that way.



Hi Sir ,
Thanks For taking efforts on my question , but i have some further Questions .

1. Do You Mean that Electric loco and wagons will Run on Diesel loco path (player) and Diesel loco will run on AI Path after Detaching Loco , right ?
2. The train You mentioned in ORTSTriggeringTrain() is player train (Diesel Loco) Right ?

#18 User is offline   Csantucci 

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

Posted 01 April 2021 - 09:04 AM

Hi,
1. Electric loco and wagons have their own path, which coincides with the diesel loco path in the section between join and split; diesel loco will continue as AI train on its own path, which was the initial player path
2. No, the train I mention is the electric loco and wagons path.


I attach here the zipped .apk file for my test activity, which runs on the standard MSTS USA2 route (Marias Pass), and uses standard consists. You can examine it.

Attached File  Testhelperplayer_forward.zip (6.46K)
Number of downloads: 276

#19 User is offline   ADITYA3191 

  • Apprentice
  • Group: Status: Active Member
  • Posts: 30
  • Joined: 20-October 20
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 02 April 2021 - 06:23 AM

Ok Sir I Got it , But I Think For Application of this method I have to split timetable of my player train into two parts (As whole journey will get divided into two paths ). Unfortunately I am Unable to see .zip file attached in your post, So can you please mail me the .zip file of your testing activity ? . After Studying Your activity I will let you know whether its working on my side or not .
My Mail ID :- paranjapeaditya123@gmail.com

#20 User is offline   Csantucci 

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

Posted 02 April 2021 - 08:00 AM

Hi,
I'm sorry, I forgot to attach the file. I have attached it now in my preceding post, so if there is also someone else interested, he can download and examine it.

  • 2 Pages +
  • 1
  • 2
  • 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