Distance - implementation idea
Posted: Wed Jan 17, 2018 4:18 am
I also want distance between stations to be considered when scheduling.
I've seen your post where you sad that it's too hard to know real distance between stations: the distance train needs to go instead of just decard coordinates calculation of distance between two points.
So here is my the idea:
You get trains fuel store and trains current fuel being burn values at start and at finish and just substract them.
This way you can very precisely measure true distance because fuel isn't burned when the train is stopped on a signal.
Then you just make a table of distances, where you store averange of last 10 measurements.
For compartibility with other mods - if there are trains with unlimited fuel (electrical trains or some other) you can explicitly request having at least one train with no cargo wagons and which is fueled. This train will be used for measuring. This will give some more interesting gameplay - measure train: player can set it's waypoints - so this data is known to LTN.
When you don't know the distance - you just take any path.
Sure this will take quite a while for the system to learn of all needed distances. But after a while - it will.
What do you think of this?
I've seen your post where you sad that it's too hard to know real distance between stations: the distance train needs to go instead of just decard coordinates calculation of distance between two points.
So here is my the idea:
You get trains fuel store and trains current fuel being burn values at start and at finish and just substract them.
This way you can very precisely measure true distance because fuel isn't burned when the train is stopped on a signal.
Then you just make a table of distances, where you store averange of last 10 measurements.
For compartibility with other mods - if there are trains with unlimited fuel (electrical trains or some other) you can explicitly request having at least one train with no cargo wagons and which is fueled. This train will be used for measuring. This will give some more interesting gameplay - measure train: player can set it's waypoints - so this data is known to LTN.
When you don't know the distance - you just take any path.
Sure this will take quite a while for the system to learn of all needed distances. But after a while - it will.
What do you think of this?