Jump to content

Recommended Posts

Posted

Hello, For some reason I want that always the same certain  of vehicles is on a street circuit.
I did this by putting them in a depot via a track contact. After some seconds a random vehicle leaves the depot.

1179008083_TestDepot.thumb.jpg.36546764a2ee74634e0f9499906fe05a.jpg

Test Depot.mbp

In the example we start with 6 vehicles. We are not patient and choose 4x speed.
After a while there will be 5 vehicles on the circuit. If you wait even longer 4 vehicles .... ( Stop and look at the pending deferring actions )
Please some help.  I tried to make the EV and circuit as simple as possible to find out what was happening... 
Kind regards, Herman

Posted
vor 2 Minuten schrieb Herman:

Please some help.

The "send from depot" command is only executed when there is sufficient room on front of the depot.
The bus, which is longer than other cars, upsets your pattern. Occasionally it causes "send from depot" commands to be skipped.

Posted
Just now, Goetz said:

Occasionally it causes "send from depot" commands to be skipped

Hello @Goetz, thank you. I also noticed that before and more when I used random seconds. ( A pity that the analyser does not give that error, manually I discovered it too )
In this case it is always 4 seconds, so I thought that was enough time to give space even for the bus.  But probably that's not ok ?

An hint how I can use something simular to keep an exact number of random vehicles on a circuit.  And if they come at random seconds the better. 
Thanks, Herman
( A time ago I went to Lua to see if a depot has vehicles in it before releasing, it seems the EV does that now ?)


 

Posted

Hello Herman,

Gerade eben schrieb Herman:

But probably that's not ok ?

When the bus enters the depot, it's the front of the bus that counts. But when it leaves, the rear of that bus is placed at the depot's door.
So ... in and out ain't the same. This makes a bus journey from end to end shorter than a car journey.
Also: When the bus exits, while two cars enter on the other side in quick succession, one of the two triggers may get lost.

I can't tell you for sure the precise sequence of events that leads to a lost command. I didn't take the time to observe with the required scrutiny.

But you can. Start a screen recorder. Make sure the event protocol is recorded with the action. And go through the film frame by frame afterwards to find the exact condition where the number of cars on the road changes. 

Kind regards
Goetz

Posted

Hello @Goetz , 

Just feedback. It was not such a good idea to let a track contact event  decide when the vehicles comes out of the depot.
I went back to the solution track contact -> go to the depot.   Timer -> go out of the depot. It is sufficient enough for my wanted solution. 
But thank you, I learned again, 
Kind regards, Herman

Posted
vor 3 Minuten schrieb Herman:

track contact -> go to the depot.   Timer -> go out of the depot.

That's indeed a much better principle, Herman (y)

Posted
20 hours ago, Herman said:

( A time ago I went to Lua to see if a depot has vehicles in it before releasing, it seems the EV does that now ?)

Hello @Neo , Thanks for changing *, I did notice this since some days. Indeed the EV is testing it now, the EV releases from the depot only if it is not empty. 
Kind regards, Herman

(* old version probably the first pre release )

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...