BVE WorldWide
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Set time?

3 posters

Go down

Set time? Empty Set time?

Post by Greater Anglia Metro Sun Jan 29, 2017 9:49 pm

All,

Historically the time in the sim has been set by the arrival time at the first station in the route file.

I'm looking at doing more "scenarios" with things such as late running, would it be possible to add a function to set the time at the beginning of the route file individually of the first station command?
Greater Anglia Metro
Greater Anglia Metro

Posts : 135
Join date : 2012-03-24
Age : 31
Location : London

Back to top Go down

Set time? Empty Re: Set time?

Post by leezer3 Sun Jan 29, 2017 11:02 pm

Sure, will try and do it tomorrow for you, just need to think of the appropriate command Smile

For the meantime, I've actually added the command-line switch /time already.

This takes a time (Using colon as the separator), which the simulation will start at.

leezer3

Posts : 1980
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Set time? Empty Re: Set time?

Post by leezer3 Mon Jan 30, 2017 11:55 am

Added the command Route.StartTime
http://vps.bvecornwall.co.uk/OpenBVE/Builds/OpenBVE-2017-01-30.zip

This sets the time at which the simulation will start. Only supported in the main program, will display an info message in RouteViewer Smile


Last edited by leezer3 on Mon Jan 30, 2017 12:25 pm; edited 1 time in total

leezer3

Posts : 1980
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Set time? Empty Re: Set time?

Post by Greater Anglia Metro Mon Jan 30, 2017 12:02 pm

Thanks Very Happy

That's what I call an effective, efficient and responsive developer!

In the longer term (certainly I don't need this myself yet) is it possible to add compatibility with the automatic change ends feature*?


*Like I said, don't need it yet, would need to look up the actual command in the docs
Greater Anglia Metro
Greater Anglia Metro

Posts : 135
Join date : 2012-03-24
Age : 31
Location : London

Back to top Go down

Set time? Empty Re: Set time?

Post by leezer3 Mon Jan 30, 2017 12:26 pm

Greater Anglia Metro wrote:Thanks Very Happy

That's what I call an effective, efficient and responsive developer!

In the longer term (certainly I don't need this myself yet) is it possible to add compatibility with the automatic change ends feature*?


*Like I said, don't need it yet, would need to look up the actual command in the docs

Can you explain what you're trying to do with the change ends feature?

IIRC (I'd have to check this mind), when it changes ends if you're late, you should still be late.

leezer3

Posts : 1980
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Set time? Empty Re: Set time?

Post by Quork Tue Jan 31, 2017 8:17 pm

Sudden delay increase while changing ends is quite realistic. Unusually long queue at the coffee stand; having to check several toilets in your train before you find one featuring both soap AND paper; five passengers just don't want to understand you're a driver and not a tariff specialist; you find a bunch of trolleys blocking the cab door (and the owner family doesn't accept your right to a clear evacuation path); the cab door's lock is in a different state of erosion than your key and thus jams at the first several attempts of opening; and suddenly 5min of delay become 20min...
Quork
Quork

Posts : 1438
Join date : 2012-05-05
Age : 33
Location : Hofheim a.T., Hessen (Hesse), European Union

Back to top Go down

Set time? Empty Re: Set time?

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum