add/remove schedules from library in driver

Thijsbeer

New member
I've been trying to solve this puzzle for days now but I can't find the sollution. I hope someone can give me some pointers.

Situation:
Railyard (I) with 4 tracks.
Railyard (O) with 4 tracks.
maintrack in between.
4 trains (A,B,C,D) with cargo.
1 yard train(Z).

Train A,B,C or D drops the cargo at one of the 4 tracks of I.
Train Z picks up the cargo and brings it to the right industry.
Train A,B,C or D picks up new cargo at one of the tracks at O.
Train Z brings the cargo back from the industry to an emty track at O.

I tried to automate this with triggers, scheduleattrackmark, schedule library,
coupleat/rnd/trackmark copycommands...etc..etc..

triggers wont work. when Z is driving to the industry with the cargo from A and B drops its cargo at I. Z will miss the trigger from B.

coupleatrandomtrackmark only works if there is just 1 loc in the yard otherwise its possible that Z tries to couple with the cargo from A with A still on the track. I was using waitforXm->coupleatrndtrackmark->repeat for Loc Z. it made Z wait for 5 min look at the 4 trackmarks and if there is no cargo it waited again for 5min.

The way I think this would work is:
not scheduleattrackmark but scheduleattrackmarktolibrary
not wait for trigger but wait for schedule in library.
not copycommands but move commands.

This way A,B,C and D can drop their cargo and puts a schedule in the schedule libraryI like a waybill for Z.
Z will act on the schedule in the libray by moving the commands to itself.
Making sure no other loc will copy the same commands when using multiple Z's
A,B,C and D drive to O and wait/check if there is a schedule in labraryO .
Z will drop cargo at O and puts a schedule in librayO.

So the big question, is this possible with the rules and scripts that are available at the Download Station????

Thanks in advance
Matthijs
 
Back
Top