Simutrans Tools
Know our tools that can help you to create add-ons, install and customize Simutrans.

Available Vehicles List does not correctly filter vehicles by traction type

Started by Matthew, April 30, 2022, 07:09:37 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


Steps to reproduce

1. Open a game after 1957 (e.g. current B-B).
2. Open the Available Vehicles List (Ctrl+V in pak128.Britain-Ex)
3. Open the Train tab and filter by traction type diesels. Observe that it contains only electric vehicles.

4. Filter by traction type steam. Observe that it contains only diesels.

5. Filter by traction type unknown. Observe that it contains only steam vehicles.


I suspect that an index value is off by one, but I have not looked at the code (yet).
(Signature being tested) If you enjoy playing Simutrans, then you might also enjoy watching Japan Railway Journal
Available in English and simplified Chinese


I have incorporated a patch by Ranran that I think should fix this - I should be grateful if you could re-test with to-morrow's nightly build.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.