Set speed?
3 posters
Page 1 of 1
Set speed?
Well, there was a request for setting train times, so I thought that I would ask if it was possible to set the trains maximum speed? Mainly for the classes of freight trains where anything between 25mph and 75mph is an allowed top speed, even though the line speed may be higher, would be very useful.
Tony
Tony
call2- Posts : 53
Join date : 2011-08-31
Re: Set speed?
Do you mean speed limits that discriminate different types of trains or an universal speed limit disregarding the tracks'? If the first case, there would have to be some sort of device to differentiate train types, I have no idea on how limits work, but you may need to add a differentiated limit command for freight trains. If you want an universal speed limit, and probably should do it if you use multiple (e.g. passenger and cargo versions) route files, you can set it so with Train.Velocity speedInKph.
Glory! koshikii- Posts : 58
Join date : 2016-06-18
Location : At the desk
Re: Set speed?
Hmm, a little confused by what you're after
Some thoughts:
Can certainly do something, just need to figure out exactly what and the best way to do it.
Some thoughts:
- As noted above, the max speed for a pretrain may be set via Train.Velocity This however IIRC applies to all AI trains, not just one. Should be relatively easy to set add a command which sets the max speed on a per-train basis, and would likely be able to retain backwards compatibility in this case (The sim generally speaking just ignores or adds an error if an extra parameter is addded)
- Classification based speed limits for player trains could be added easily enough, but would only apply to new routefiles/ trains, and would probably break backwards compatibility.
- Assuming a player train, should exceeding these limits be noted in either on-screen or in review messages?
Can certainly do something, just need to figure out exactly what and the best way to do it.
Re: Set speed?
On NWM there are a lot of train diagrams to drive. Normally, passenger trains run at the indicated line speeds throughout the route. But I have several freight workings where the speed of the train is limited by the type of wagons in the train consist, and it is often easy to exceed the train class speed limit and not be penalised by doing so, (the on-screen messages and review).
A train diagram set speed limit would override any line speed and penalise the driver for exceeding the train class speed limit.
As things stand, train driving is not very prototypical.
Tony
A train diagram set speed limit would override any line speed and penalise the driver for exceeding the train class speed limit.
As things stand, train driving is not very prototypical.
Tony
call2- Posts : 53
Join date : 2011-08-31
Re: Set speed?
I see. Well, I have an idea for the old BVE format, specify the train type in extensions.cfg, any arbitrary string, and specify the limit for each type.
I believe this way will not break compatibility, but it would be implemented more elegantly with the xml format.
- Code:
[identifier]
class = classString
id = idString
- Code:
Train.ClassVelocity(classString) speedInKph
Train.IdVelocity(idString) speedInKph
I believe this way will not break compatibility, but it would be implemented more elegantly with the xml format.
Last edited by Glory! koshikii on Sat Feb 04, 2017 1:11 pm; edited 2 times in total (Reason for editing : where to specify?)
Glory! koshikii- Posts : 58
Join date : 2016-06-18
Location : At the desk
Re: Set speed?
Don't worry about this anymore. I have used this in the past, in the driveable route file, (for 75mph top speed), and it works ok. I just thought that there might be something that could be done to improve things a little.
With route
.Signal(1) 121
.Signal(2) 121
.Signal(3) 121
With route
.Signal(1) 121
.Signal(2) 121
.Signal(3) 121
call2- Posts : 53
Join date : 2011-08-31
Re: Set speed?
It's no problem Tony, just something added to the 'list' of stuff that people are after.
A lot of this will have to wait until I rebuild the way trains are defined, which is somewhat in the pipeline. As I see it, we really need three distinct things here:
All of these really depend upon the train, where we definitely don't have anywhere appropriate where this sort of stuff could be added at present.
extensions.cfg would be possible, but I don't particularly want to start adding more stuff to it- Bogies were a special-case as there were already several hacks about.
A lot of this will have to wait until I rebuild the way trains are defined, which is somewhat in the pipeline. As I see it, we really need three distinct things here:
- Variable global route speed limits based upon train type.
- Variable signal aspect speed limits, again based upon train type.
- A maximum speed for any given train.
All of these really depend upon the train, where we definitely don't have anywhere appropriate where this sort of stuff could be added at present.
extensions.cfg would be possible, but I don't particularly want to start adding more stuff to it- Bogies were a special-case as there were already several hacks about.
Similar topics
» Speed od Signal Changing
» openBVE Constant speed
» Door Speed in Openbve
» High Speed 2 Development
» Manuel High Speed Trains
» openBVE Constant speed
» Door Speed in Openbve
» High Speed 2 Development
» Manuel High Speed Trains
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|