leezer3 / OpenBVE

OpenBVE- A free train simulator
http://www.openbve-project.net
275 stars 52 forks source link

[Bug] Rail start position is 0 and using switch, route cannot be played #1018

Closed JunmoreHeavyBox closed 5 months ago

JunmoreHeavyBox commented 5 months ago

Description

The route will report error of "index out of range"

With Track
0
.RailType 0;0
.RailStart 1;4;;0

1000, .RailStart 33;0;;0, .Switch 0;33;;;Crossover Down U
1025, .Rail 33;1
1050, .Rail 33;3
1075, .Rail 33;4, .SwitchT 1;33;;;Crossover Down D
1100, .RailEnd 33;0
JunmoreHeavyBox commented 5 months ago

My example is still too rough.

Reproduction

Route

Side Lines And Switches Test.csv

ginga81 commented 5 months ago

I think your question is probably the same as mine. https://github.com/leezer3/OpenBVE/issues/1013#issuecomment-2057012174

leezer3 commented 5 months ago

I think this one is now fixed after todays fiddling....