Cabview mouse control
#11
Posted 27 December 2014 - 11:13 AM
#12
Posted 27 December 2014 - 12:30 PM
gpz, on 27 December 2014 - 11:13 AM, said:
I don't know if it's possible in the current scheme of things, but could we have specific locomotive controls/inputs be manipulated by two different controllers? One is continuous and one is discrete - like you mentioned, the discrete one could be used for mouse and RailDriver input. It just needs to record current time and the new value. Are there any serious problems with that? Other than "what happens when you use both at once" which to be honest is never going to work well (using keyboard and mouse or keyboard and RailDriver on the same control).
#13
Posted 27 December 2014 - 01:57 PM
James Ross, on 27 December 2014 - 12:30 PM, said:
MSTS has that capability, keyboard or mouse on the same control. Personally I never use mouse control, except for steam throttle when in the cab.
#14
Posted 27 December 2014 - 02:28 PM
James Ross, on 27 December 2014 - 12:30 PM, said:
Generally it's a good idea. Maybe it is not necessary to use two controllers, maybe it is enough if a new command was buffered every time the smooth controller change exceeds a given threshold, e.g. 10%. The replay will never be perfect this way, but maybe good enough. I'll have a go.
#15
Posted 27 December 2014 - 02:44 PM
copperpen, on 27 December 2014 - 01:57 PM, said:
I meant on the same control at the same time, i.e. hitting a key for the control you're currently dragging with the mouse. I don't think we should really mind what happens in this case, as long as it doesn't completely break/crash, that's all.
#16
Posted 27 December 2014 - 02:45 PM
Sid P., on 27 December 2014 - 09:54 AM, said:
You are right. But I don't understand how it is set up, since both throttle and reverser have the control setting
Orientation ( 0 )
DirIncrease ( 1 )
which means they are horizontal and increasing from right to left. This seems like a quest, solution is appreciated.
#17
Posted 27 December 2014 - 05:30 PM
I'm thinking out loud here...
I am beginning to think there is another aspect to cabview files - how does MSTS know which picture in the set of images has the control at the left ?
Note that the throttle lever's first picture is a lever to the right, and the direction lever's first picture is a lever to the left, but they both have the same indicated direction of increase = 1.
The MSTS cabview editor says they both "increase to the left". How does it know which picture is which? I must be overlooking something.
Also, I notice MSTS has a different mouse behavior when there are only three positions, or two positions, or multiple positions - sometimes it shows a + or - sign to indicate what will happen when you move the mouse.
It reminds me of some head scratching when we were trying to make the needles on the dials move correctly.
Cheers,
Sid
#18
Posted 28 December 2014 - 12:18 AM
In my country they made some tests about the MSTS behaviour for specific command Types() and specific Style() types.
What came out is that, for specific commands, MSTS does not consider the Style() and considers only the command.
To be more specific with some example: for Type ( PANTOGRAPH TWO_STATE ) you can put either Style(ONOFF) or Style(PRESSED) : in both cases MSTS behaves the same, that is with a single click and release you change panto position. For Types (SANDERS TWO_STATE) or (HORN TWO_STATE) instead the command remains active from the moment you press the mouse (or the keyboard key) to the moment you release it, and this both with a Style(PRESSED) and a Style(ONOFF).
As there is a large installed basis of trainsets, it would not be bad if ORTS could behave the same way (maybe under the Enhanced MSTS Compatibility option, if one wants to keep also the "pure" version).
#19
Posted 28 December 2014 - 02:23 PM
Csantucci, on 28 December 2014 - 12:18 AM, said:
Yes, I just did some tests with MSTS on the direction lever data in the .cvf file. MSTS knows that it is working on the direction control from the name, I assume.
It knows that there are three images; it does not care if the definition is ( 3 1 3 ) or ( 3 3 1 ) - it draws the lever positions correctly !
Even if you enter the wrong value for the dirIncrease, it shows a + sign when a key press will move to a forward condition, a - sign when moving backwards
and works as you would expect. So I can make the values correct for ORTS and they still work fine for MSTS...
So one has to be careful in studying .cvf files to determine what the rules are.
MSTS also includes detents for the train brake, so that it takes an extra click to move to release, for example.
Cheers,
Sid.
#20
Posted 29 December 2014 - 06:32 AM