-
Notifications
You must be signed in to change notification settings - Fork 98
ContentManager Enhancement: show more info for consists #936
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ContentManager Enhancement: show more info for consists #936
Conversation
With the weigh bar-graph, line-wrapping hinders readability. Also corrected incorrect widths in left panel.
twpol
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a very solid set of changes and – even though I am surprised that people are interested in the contributed Content Manager project – I am happy for it to go in.
There are just a few minor things I'd like changed, which are hopefully easy.
Pull in recent changes from upstream (openrails).
twpol
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks very much for the updates and apologies for the time it has taken me to get back and review this!
In the ContentManager, show additional properties for consists, such as: engine and car counts, total length, total weight, horsepower-per-ton, tons-per-operative-brake, etc. The latter two are North America specific - I don't know if there are equivalents for pther parts of the world.
Update Nov 2024
Details
The most significant change is that the consist view now has to read and parse each car (.wag or .eng file). The search function is negatively impacted, taking about 40% longer (in my case 2:40 min vs 2 min).
The units are based on the ORTS options. Since the ContentManager does not have a route context for consists, the system units are used in that case.
Impacted files that are not ContentManager specific:
Tested on: Train Simulations Scenic, Mullan Pass and Selgman packages; base MSTS packages; some Swiss packages.
Consist
The additional properties. HPT and TPOB are shown only when US Imperial units are used.

Also added a bar-graph to the consist, so that loads and empties are identifyable. Each asterisk represents 20 metric tons.

Cars
Since some of the above fields are aggregated, they might as well be shown for cars.
Engines:

Wagons:

Other
Disabled word-wrapping in the Text box, in favour of horizontal scrolling. The bar-graph is not very readable with line-wraps.