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

Route.DisplaySpeed is only supported in oB 1.4.4 or above

2 posters

Go down

Route.DisplaySpeed is only supported in oB 1.4.4 or above Empty Route.DisplaySpeed is only supported in oB 1.4.4 or above

Post by LXQt Sat Feb 29, 2020 1:12 pm

Recently I've seen someone asking how to use mph by default instead of kmph
I looked up the documentation and I believe it is Route.DisplaySpeed
From my understanding to the docs, changing it to mph should be "Route.DisplaySpeed mph;0.621371"
But then I got an error(it's considered as an Information in Route Viewer) saying "Route.DisplaySpeed is only supported in OpenBVE Version v1.4.4.0 and above in line 5"
I was running v1.7.0.3 so it should be above v1.4.4.0(I am using Windows 10 1909)(I've also tried v1.6 and 1.7.1.3, doesn't work for me)
I've decided to give the same code to my friend and try on his computer, he got "Route.DisplaySpeed is expected to have two arguments", running OpenBVE V1.7.1.3 and Windows 10 1709.
Thanks.

LXQt

Posts : 107
Join date : 2019-02-18
Age : 16
Location : Hong Kong

https://kennyhui.pp.ua

Back to top Go down

Route.DisplaySpeed is only supported in oB 1.4.4 or above Empty Re: Route.DisplaySpeed is only supported in oB 1.4.4 or above

Post by leezer3 Sun Mar 01, 2020 11:17 pm

Interesting Sad
My original code here (no idea why!) here seems to have expected a comma as the argument separator.

Doing it that way worked, but I've fixed the code to accept either for the next release.

leezer3

Posts : 1802
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Back to top


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