-
Notifications
You must be signed in to change notification settings - Fork 97
Train Driving UI window #430
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
Train Driving UI window #430
Conversation
- Pull request #79 at 7d9f14b: Update version calculation for new unstable versions - Pull request #408 at e77a86a: Updating RailDriver SDK library to prepare for 64bit mode - Pull request #412 at 26e29ed: New TCS function to get speed post information (including warning speed posts) - Pull request #417 at eca996f: Animated Clocks recognized by ClockHands without extern Files - Pull request #420 at 39843b1: Delete Russian timetable.rst - Pull request #421 at 712bc53: Added a reset command in order to reset a TCS emergency braking triggered by the simulator - Pull request #422 at f4831e5: Change alignment of couplers as they travel through curve. - Pull request #427 at aabd1f3: Correct an Issue with Motive Force being incorrectly reduced by wagon braking force. - Pull request #430 at 699ec48: Blueprint https://blueprints.launchpad.net/or/+spec/train-driving-ui-window
- Pull request #79 at 7d9f14b: Update version calculation for new unstable versions - Pull request #399 at 19facb6: Power supply package - Pull request #408 at e77a86a: Updating RailDriver SDK library to prepare for 64bit mode - Pull request #412 at 26e29ed: New TCS function to get speed post information (including warning speed posts) - Pull request #417 at eca996f: Animated Clocks recognized by ClockHands without extern Files - Pull request #420 at 39843b1: Delete Russian timetable.rst - Pull request #422 at f4831e5: Change alignment of couplers as they travel through curve. - Pull request #427 at aabd1f3: Correct an Issue with Motive Force being incorrectly reduced by wagon braking force. - Pull request #430 at 699ec48: Blueprint https://blueprints.launchpad.net/or/+spec/train-driving-ui-window
- Pull request #79 at 7d9f14b: Update version calculation for new unstable versions - Pull request #399 at c344ade: Power supply package - Pull request #408 at e77a86a: Updating RailDriver SDK library to prepare for 64bit mode - Pull request #412 at 26e29ed: New TCS function to get speed post information (including warning speed posts) - Pull request #417 at eca996f: Animated Clocks recognized by ClockHands without extern Files - Pull request #420 at 39843b1: Delete Russian timetable.rst - Pull request #422 at f4831e5: Change alignment of couplers as they travel through curve. - Pull request #427 at aabd1f3: Correct an Issue with Motive Force being incorrectly reduced by wagon braking force. - Pull request #430 at 699ec48: Blueprint https://blueprints.launchpad.net/or/+spec/train-driving-ui-window
- Pull request #79 at 7d9f14b: Update version calculation for new unstable versions - Pull request #399 at c344ade: Power supply package - Pull request #408 at e77a86a: Updating RailDriver SDK library to prepare for 64bit mode - Pull request #412 at 26e29ed: New TCS function to get speed post information (including warning speed posts) - Pull request #417 at eca996f: Animated Clocks recognized by ClockHands without extern Files - Pull request #420 at 39843b1: Delete Russian timetable.rst - Pull request #422 at f4831e5: Change alignment of couplers as they travel through curve. - Pull request #427 at aed48ca: Correct an Issue with Motive Force being incorrectly reduced by wagon braking force. - Pull request #430 at 699ec48: Blueprint https://blueprints.launchpad.net/or/+spec/train-driving-ui-window
- Pull request #79 at 7d9f14b: Update version calculation for new unstable versions - Pull request #399 at 224d3ca: Power supply package - Pull request #408 at e77a86a: Updating RailDriver SDK library to prepare for 64bit mode - Pull request #412 at 26e29ed: New TCS function to get speed post information (including warning speed posts) - Pull request #417 at eca996f: Animated Clocks recognized by ClockHands without extern Files - Pull request #420 at 39843b1: Delete Russian timetable.rst - Pull request #422 at f4831e5: Change alignment of couplers as they travel through curve. - Pull request #427 at aed48ca: Correct an Issue with Motive Force being incorrectly reduced by wagon braking force. - Pull request #430 at 699ec48: Blueprint https://blueprints.launchpad.net/or/+spec/train-driving-ui-window
- Pull request #79 at 7d9f14b: Update version calculation for new unstable versions - Pull request #399 at 224d3ca: Power supply package - Pull request #408 at e77a86a: Updating RailDriver SDK library to prepare for 64bit mode - Pull request #412 at 26e29ed: New TCS function to get speed post information (including warning speed posts) - Pull request #417 at eca996f: Animated Clocks recognized by ClockHands without extern Files - Pull request #420 at 39843b1: Delete Russian timetable.rst - Pull request #422 at f4831e5: Change alignment of couplers as they travel through curve. - Pull request #430 at 699ec48: Blueprint https://blueprints.launchpad.net/or/+spec/train-driving-ui-window
public TrainDrivingWindow TrainDrivingWindow { get; private set; } // F5 train driving window | ||
public MultiPlayerWindow MultiPlayerWindow { get; private set; } // MultiPlayer data windowed |
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.
Is there a reason the multiplayer window has to be separate, but tied to the new train driving window? Why not bake its information into the existing train list window?
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.
The new train driving info window inherits the same principle as the HUD window. Like the original, the multiplayer information was displayed within the HUD window.
Now the proposal is to show the multiplayer information in a dedicated window.
Maybe we could create a web-multiplayer window, if possible.
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.
Well, the HUD is a debugging tool not meant for use by ordinary players, so it makes sense to communicate the state of the multiplayer subsystem there.
But dedicating an entire window for the multiplayer state? One that can't be closed, shows just two lines, and contains information that seemingly would fit very well within the existing Train List (Alt+F9) window?
I'm just having trouble seeing the justification here.
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.
Well, the HUD is a debugging tool not meant for use by ordinary players, so it makes sense to communicate the state of the multiplayer subsystem there.
But dedicating an entire window for the multiplayer state? One that can't be closed, shows just two lines, and contains information that seemingly would fit very well within the existing Train List (Alt+F9) window?
I'm just having trouble seeing the justification here.
The Multiplayer info is used also by ordinary players, both by the dispatcher and by the clients (I have experienced that in a good amount of multiplayer sessions), so IMHO it makes sense to have that info together the Train Driving Info window. The info might however be included in the Train Driving Info window, instead of being in a separate, small window, although also the actual layout, with a separate add-on window, provides the same functionality from the point of view of the user.
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.
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 would be the first window that is divided into multiple, interlinked windows, so the impetus is on you to explain why this would be desirable for players.
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.
Initially, the MP information was located on the lower part of the Train Driving Info (TDI) window.
But the information of each new player who joined the MP session increased the width and height of the TDI window.
Taking into account that the purpose of the abbreviated mode is to display a window as narrow as possible, keeping the MP session information in the same window, makes it infeasible to obtain a narrow TDI window.
This was the reason to implement a dedicated Multiplayer window.
Commands[(int)UserCommand.DisplayCompassWindow] = new UserCommandKeyInput(0x0B); | ||
Commands[(int)UserCommand.DisplayHelpWindow] = new UserCommandModifiableKeyInput(0x3B, Commands[(int)UserCommand.DisplayNextWindowTab]); | ||
Commands[(int)UserCommand.DisplayHUD] = new UserCommandModifiableKeyInput(0x3F, Commands[(int)UserCommand.DisplayNextWindowTab]); | ||
Commands[(int)UserCommand.DisplayTrainDrivingWindow] = new UserCommandModifiableKeyInput(0x3F, KeyModifiers.Control); |
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.
Not keen on Ctrl+F5 as the shortcut. For our existing bindings, the general rule of thumb is that Ctrl represents some kind of mode toggle (Ctrl+F4 track monitor mode, Ctrl+F7 label display mode) while Alt opens extra windows (Alt+F9 train list window). How about Alt+F8 for the default key?
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.
F5 is used for the main HUD, so it seems mnemonically useful to use Ctrl-F5 for the Train Driving Info, that displays more or less the same information. Moreover Ctrl-F5 is being used in ORNYMG since long time...
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.
The Train Driving Info is a small HUD, with just the information required for the driver.
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.
Okay, so I get the F5 mnemonic now. But it's unfortunate that this would be the only window that toggles with the Ctrl mod key. So far, for window popups, we've always used Alt:
On a second look, I would actually suggest assigning the new window to Alt+F5, while moving "Basic HUD Toggle" to Shift+F5.
I should say that, in my thought process, I'm thinking about brand-new players who are downloading OR for the very first time. "Because it's the way we've always done things" isn't a convincing argument to me because, if you already have a NewYear or mainline config with Ctrl+F5 already assigned, OR will preserve, not overwrite, that assignment. Meanwhile, any new players will be left wondering about this seeming inconsistency.
Definitely a controversial decision; maybe we need the management team's opinion here? @cjakeman
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.
From the Manual:
7.4.1 Basic Head Up Display (HUD)
By pressing F5 you get some important data displayed at the top left of the display in the so-called
Head Up Display (HUD). If you want the HUD to disappear, press F5 again.
The HUD has 6 different pages. The basic page is shown at game start. To sequentially switch to the other
pages press Shift+F5. After having cycled through all of the extended HUD pages, the basic page is
displayed again.
To hide or redisplay the current extended HUD data while continuing to show the basic HUD, press
Alt+F5.
After many years using a familiar key sequence for the HUD and extended windows. I have the feeling that it won't be welcome by current users.
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.
Definitely a controversial decision; maybe we need the management team's opinion here? @cjakeman
Sorry to hold you up. This mention had passed me by. Will confer and get back to you all shortly.
- Pull request #79 at 7d9f14b: Update version calculation for new unstable versions - Pull request #399 at 224d3ca: Power supply package - Pull request #408 at e77a86a: Updating RailDriver SDK library to prepare for 64bit mode - Pull request #412 at 26e29ed: New TCS function to get speed post information (including warning speed posts) - Pull request #417 at eca996f: Animated Clocks recognized by ClockHands without extern Files - Pull request #420 at 39843b1: Delete Russian timetable.rst - Pull request #422 at f4831e5: Change alignment of couplers as they travel through curve. - Pull request #430 at 699ec48: Blueprint https://blueprints.launchpad.net/or/+spec/train-driving-ui-window - Pull request #431 at 1d2c94f: Correct issue with motive force being reduced by braking force
- Pull request #79 at 7d9f14b: Update version calculation for new unstable versions - Pull request #399 at 224d3ca: Power supply package - Pull request #408 at e77a86a: Updating RailDriver SDK library to prepare for 64bit mode - Pull request #412 at 26e29ed: New TCS function to get speed post information (including warning speed posts) - Pull request #417 at eca996f: Animated Clocks recognized by ClockHands without extern Files - Pull request #420 at 39843b1: Delete Russian timetable.rst - Pull request #422 at f4831e5: Change alignment of couplers as they travel through curve. - Pull request #430 at 699ec48: Blueprint https://blueprints.launchpad.net/or/+spec/train-driving-ui-window - Pull request #431 at 057dc64: Correct issue with motive force being reduced by braking force
- Pull request #79 at 7d9f14b: Update version calculation for new unstable versions - Pull request #399 at 224d3ca: Power supply package - Pull request #408 at e77a86a: Updating RailDriver SDK library to prepare for 64bit mode - Pull request #412 at 26e29ed: New TCS function to get speed post information (including warning speed posts) - Pull request #417 at eca996f: Animated Clocks recognized by ClockHands without extern Files - Pull request #420 at 39843b1: Delete Russian timetable.rst - Pull request #422 at f4831e5: Change alignment of couplers as they travel through curve. - Pull request #430 at 699ec48: Blueprint https://blueprints.launchpad.net/or/+spec/train-driving-ui-window - Pull request #431 at 057dc64: Correct issue with motive force being reduced by braking force - Pull request #432 at 1220dc7: ci: Automatically create merge-to-master PR on release branch push
- Pull request #79 at 7d9f14b: Update version calculation for new unstable versions - Pull request #399 at 224d3ca: Power supply package - Pull request #408 at e77a86a: Updating RailDriver SDK library to prepare for 64bit mode - Pull request #412 at 26e29ed: New TCS function to get speed post information (including warning speed posts) - Pull request #417 at eca996f: Animated Clocks recognized by ClockHands without extern Files - Pull request #420 at 39843b1: Delete Russian timetable.rst - Pull request #422 at f4831e5: Change alignment of couplers as they travel through curve. - Pull request #430 at 699ec48: Blueprint https://blueprints.launchpad.net/or/+spec/train-driving-ui-window - Pull request #431 at 057dc64: Correct issue with motive force being reduced by braking force - Pull request #432 at 1220dc7: ci: Automatically create merge-to-master PR on release branch push
- Pull request #79 at 7d9f14b: Update version calculation for new unstable versions - Pull request #399 at 224d3ca: Power supply package - Pull request #408 at e77a86a: Updating RailDriver SDK library to prepare for 64bit mode - Pull request #412 at 26e29ed: New TCS function to get speed post information (including warning speed posts) - Pull request #417 at eca996f: Animated Clocks recognized by ClockHands without extern Files - Pull request #420 at 39843b1: Delete Russian timetable.rst - Pull request #422 at f4831e5: Change alignment of couplers as they travel through curve. - Pull request #430 at 570a07f: Blueprint https://blueprints.launchpad.net/or/+spec/train-driving-ui-window - Pull request #431 at 057dc64: Correct issue with motive force being reduced by braking force - Pull request #432 at 1220dc7: ci: Automatically create merge-to-master PR on release branch push
It's a trick to prevent the window height from changing every time that an item is displayed. |
- Pull request #79 at 7d9f14b: Update version calculation for new unstable versions - Pull request #399 at 224d3ca: Power supply package - Pull request #408 at e77a86a: Updating RailDriver SDK library to prepare for 64bit mode - Pull request #412 at 26e29ed: New TCS function to get speed post information (including warning speed posts) - Pull request #417 at eca996f: Animated Clocks recognized by ClockHands without extern Files - Pull request #420 at 39843b1: Delete Russian timetable.rst - Pull request #430 at 570a07f: Blueprint https://blueprints.launchpad.net/or/+spec/train-driving-ui-window - Pull request #431 at 057dc64: Correct issue with motive force being reduced by braking force - Pull request #432 at 1220dc7: ci: Automatically create merge-to-master PR on release branch push
|
- Pull request #79 at 7d9f14b: Update version calculation for new unstable versions - Pull request #399 at 224d3ca: Power supply package - Pull request #408 at e77a86a: Updating RailDriver SDK library to prepare for 64bit mode - Pull request #412 at 26e29ed: New TCS function to get speed post information (including warning speed posts) - Pull request #417 at eca996f: Animated Clocks recognized by ClockHands without extern Files - Pull request #420 at 39843b1: Delete Russian timetable.rst - Pull request #422 at a939764: Change alignment of couplers as they travel through curve. - Pull request #430 at 570a07f: Blueprint https://blueprints.launchpad.net/or/+spec/train-driving-ui-window - Pull request #431 at 057dc64: Correct issue with motive force being reduced by braking force - Pull request #432 at 1220dc7: ci: Automatically create merge-to-master PR on release branch push
- Pull request #79 at 7d9f14b: Update version calculation for new unstable versions - Pull request #399 at 224d3ca: Power supply package - Pull request #408 at e77a86a: Updating RailDriver SDK library to prepare for 64bit mode - Pull request #412 at 26e29ed: New TCS function to get speed post information (including warning speed posts) - Pull request #417 at eca996f: Animated Clocks recognized by ClockHands without extern Files - Pull request #420 at 39843b1: Delete Russian timetable.rst - Pull request #422 at a939764: Change alignment of couplers as they travel through curve. - Pull request #430 at 570a07f: Blueprint https://blueprints.launchpad.net/or/+spec/train-driving-ui-window - Pull request #431 at 057dc64: Correct issue with motive force being reduced by braking force - Pull request #432 at 1220dc7: ci: Automatically create merge-to-master PR on release branch push - Pull request #433 at 285581a: Don't unload sound sources of the player train whe near it
- Pull request #79 at 7d9f14b: Update version calculation for new unstable versions - Pull request #399 at 224d3ca: Power supply package - Pull request #408 at e77a86a: Updating RailDriver SDK library to prepare for 64bit mode - Pull request #412 at 26e29ed: New TCS function to get speed post information (including warning speed posts) - Pull request #417 at eca996f: Animated Clocks recognized by ClockHands without extern Files - Pull request #420 at 39843b1: Delete Russian timetable.rst - Pull request #430 at 570a07f: Blueprint https://blueprints.launchpad.net/or/+spec/train-driving-ui-window - Pull request #432 at 1220dc7: ci: Automatically create merge-to-master PR on release branch push - Pull request #433 at 285581a: Don't unload sound sources of the player train when camera near it - Pull request #435 at adb076c: Revised installer for Release 1.4
Now a new code display items based on the engine type. |
- Pull request #79 at 7d9f14b: Update version calculation for new unstable versions - Pull request #399 at 224d3ca: Power supply package - Pull request #408 at e77a86a: Updating RailDriver SDK library to prepare for 64bit mode - Pull request #412 at 26e29ed: New TCS function to get speed post information (including warning speed posts) - Pull request #417 at eca996f: Animated Clocks recognized by ClockHands without extern Files - Pull request #420 at 39843b1: Delete Russian timetable.rst - Pull request #430 at c974e56: Blueprint https://blueprints.launchpad.net/or/+spec/train-driving-ui-window - Pull request #432 at 1220dc7: ci: Automatically create merge-to-master PR on release branch push - Pull request #433 at 285581a: Don't unload sound sources of the player train when camera near it - Pull request #435 at adb076c: Revised installer for Release 1.4
- Pull request #430 at 09725e9: Blueprint https://blueprints.launchpad.net/or/+spec/train-driving-ui-window - Pull request #435 at 952b197: Revised installer for Release 1.4 - Pull request #449 at 933a97d: Provides functionality for unpowered control car - Pull request #456 at ea669bd: Further adjustment to airhose movement - Pull request #457 at e7431f1: Increase upper limit for World Object Density - Pull request #461 at b74ac47: Add SME brakes
- Pull request #430 at a96dd64: Blueprint https://blueprints.launchpad.net/or/+spec/train-driving-ui-window - Pull request #435 at 952b197: Revised installer for Release 1.4 - Pull request #449 at 933a97d: Provides functionality for unpowered control car - Pull request #456 at ea669bd: Further adjustment to airhose movement - Pull request #457 at e7431f1: Increase upper limit for World Object Density - Pull request #461 at b74ac47: Add SME brakes
It has been detected that the feature to toggle the WindowGlass (transparency) at runtime, works well only, when the ToggleFullScreen() function (Alt + Return) is not called, otherwise, after switching from windowed to full-screen mode, sometimes a transparent window, like a layered window, is visible. That is why this feature is removed. |
- Pull request #430 at 7d241a9: Blueprint https://blueprints.launchpad.net/or/+spec/train-driving-ui-window - Pull request #435 at 952b197: Revised installer for Release 1.4 - Pull request #449 at 933a97d: Provides functionality for unpowered control car - Pull request #456 at ea669bd: Further adjustment to airhose movement - Pull request #457 at e7431f1: Increase upper limit for World Object Density - Pull request #461 at b74ac47: Add SME brakes
- Pull request #430 at 971ae06: Blueprint https://blueprints.launchpad.net/or/+spec/train-driving-ui-window - Pull request #435 at 952b197: Revised installer for Release 1.4 - Pull request #449 at 933a97d: Provides functionality for unpowered control car - Pull request #456 at ea669bd: Further adjustment to airhose movement - Pull request #457 at e7431f1: Increase upper limit for World Object Density - Pull request #461 at b74ac47: Add SME brakes
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.
Mauricio,
In the OR_NewYear_MG version, clicking on the yellow dot switches the window between wide and narrow format.
I was hoping that clicking on the yellow triangles would do the same (and duplicate the Shift+F5 keystroke), but I find that nothing at all happens which is a shame.
Chris
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.
Mauricio,
I've suggested changes to the Manual text in 3 places so that it reads as better English. Hope that's OK.
Chris
- Pull request #430 at 7426df2: Blueprint https://blueprints.launchpad.net/or/+spec/train-driving-ui-window - Pull request #435 at 952b197: Revised installer for Release 1.4 - Pull request #449 at 933a97d: Provides functionality for unpowered control car - Pull request #456 at ea669bd: Further adjustment to airhose movement - Pull request #457 at e7431f1: Increase upper limit for World Object Density - Pull request #461 at b74ac47: Add SME brakes
- Pull request #430 at 7426df2: Blueprint https://blueprints.launchpad.net/or/+spec/train-driving-ui-window - Pull request #435 at 952b197: Revised installer for Release 1.4 - Pull request #449 at 933a97d: Provides functionality for unpowered control car - Pull request #456 at ea669bd: Further adjustment to airhose movement - Pull request #457 at e7431f1: Increase upper limit for World Object Density - Pull request #461 at b74ac47: Add SME brakes - Pull request #462 at 281b3d9: Revised manual text for some options
Fixed. It was a misunderstanding by my part. |
Thank you for your help. |
- Pull request #430 at 7426df2: Blueprint https://blueprints.launchpad.net/or/+spec/train-driving-ui-window - Pull request #435 at 952b197: Revised installer for Release 1.4 - Pull request #449 at 933a97d: Provides functionality for unpowered control car - Pull request #456 at ea669bd: Further adjustment to airhose movement - Pull request #457 at e7431f1: Increase upper limit for World Object Density - Pull request #462 at 281b3d9: Revised manual text for some options
- Pull request #430 at 7426df2: Blueprint https://blueprints.launchpad.net/or/+spec/train-driving-ui-window - Pull request #435 at 952b197: Revised installer for Release 1.4 - Pull request #449 at 933a97d: Provides functionality for unpowered control car - Pull request #456 at ea669bd: Further adjustment to airhose movement - Pull request #457 at e7431f1: Increase upper limit for World Object Density - Pull request #462 at 281b3d9: Revised manual text for some options - Pull request #463 at f1c627e: Add SME brak function
Hi Mauricio,
Not "must" but "may" - these changes are not a condition for approval. I think the Manual would be better if you made these changes to driving.rst. If you wish, you can do this from right here within GitHub, by pressing the Commit Suggestion buttons. P.S. I am very thankful that you have worked on this PR and quickly enough so that it will become part of the v1.4 Release (expect a code freeze very soon). Chris |
- Pull request #430 at 7426df2: Blueprint https://blueprints.launchpad.net/or/+spec/train-driving-ui-window - Pull request #435 at 952b197: Revised installer for Release 1.4 - Pull request #449 at 06f8d32: Provides functionality for unpowered control car - Pull request #456 at ea669bd: Further adjustment to airhose movement - Pull request #457 at e7431f1: Increase upper limit for World Object Density - Pull request #462 at 281b3d9: Revised manual text for some options - Pull request #463 at f1c627e: Add SME brake function
Co-authored-by: Chris Jakeman <github@jakeman.plus.com>
Co-authored-by: Chris Jakeman <github@jakeman.plus.com>
Co-authored-by: Chris Jakeman <github@jakeman.plus.com>
Co-authored-by: Chris Jakeman <github@jakeman.plus.com>
- Pull request #430 at 9ba8ec5: Blueprint https://blueprints.launchpad.net/or/+spec/train-driving-ui-window - Pull request #435 at 952b197: Revised installer for Release 1.4 - Pull request #449 at 06f8d32: Provides functionality for unpowered control car - Pull request #456 at ea669bd: Further adjustment to airhose movement - Pull request #457 at e7431f1: Increase upper limit for World Object Density - Pull request #462 at 281b3d9: Revised manual text for some options - Pull request #463 at f1c627e: Add SME brake function - Pull request #464 at 2eeaf7a: Bug fix for https://bugs.launchpad.net/or/+bug/1942061. WindResistance locales.
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.
Hi Mauricio,
Thanks for those changes.
Approved.
} | ||
else if(Orts.MultiPlayer.MPManager.Simulator.Confirmer != null) | ||
{ | ||
var status = $"{Viewer.Catalog.GetString("Status")}: {MPManager.Catalog.GetString("Connection to the server is lost, will play as single mode")}"; |
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.
During initialization in timetable mode, this line is executed and triggers an exception because MPManager.Catalog is null.
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.
Thank you very much for detecting it so quickly.
A possible solution would be the following:
protected internal override void Initialize()
{
base.Initialize();
// Reset window size
if( !Owner.Viewer.Simulator.TimetableMode )
UpdateWindowSize();
}
I will generate a bug report and a PR.
PR: Bug fix for https://bugs.launchpad.net/or/+bug/1942652. Timetable crash. #466
…n-driving-ui-window Blueprint https://blueprints.launchpad.net/or/+spec/train-driving-ui-window
Blueprint https://blueprints.launchpad.net/or/+spec/train-driving-ui-window