Autor Wątek:  Changing the motor connections of ET42  (Przeczytany 4612 razy)

0 użytkowników i 1 Gość przegląda ten wątek.

Offline Stratula

  • Wiadomości: 5
    • Zobacz profil
  • Otrzymane polubienia: 1
Changing the motor connections of ET42
« dnia: 13 Kwietnia 2021, 20:46:21 »
Good afternon.
Recently I tried the ET42. I read the manual, namely part about changing the motor connections, but I can not do it in the game. Maybe there were some changes that are not listed in the manual yet?
Best regards, Boris.

Offline jakubg1

  • Wydział Repozytorium
  • Wiadomości: 1494
  • MaSzyna ma szynę, szyna ma MaSzynę - na kołach.
    • Zobacz profil
  • Otrzymane polubienia: 1119
Odp: Changing the motor connections of ET42
« Odpowiedź #1 dnia: 13 Kwietnia 2021, 20:47:57 »
Press Ctrl + F while your main controller position is in idle position.
10 lat na forum MaSzyny!

Offline Stratula

  • Wiadomości: 5
    • Zobacz profil
  • Otrzymane polubienia: 1
Odp: Changing the motor connections of ET42
« Odpowiedź #2 dnia: 13 Kwietnia 2021, 20:51:32 »
Should there be any sound when pressing ctrl + f? I hear nothing.

Offline Stratula

  • Wiadomości: 5
    • Zobacz profil
  • Otrzymane polubienia: 1
Odp: Changing the motor connections of ET42
« Odpowiedź #3 dnia: 13 Kwietnia 2021, 20:55:39 »
jakubg1, thank you for the hint!
It turnd out that the reverser should be in neutral position too.
Such a pity there is no sound while pressing ctrl + f.
Boris.
« Ostatnia zmiana: 13 Kwietnia 2021, 20:57:35 wysłana przez Stratula »

Offline Stele

  • Zasłużony dla Symulatora
  • Wiadomości: 10133
    • Zobacz profil
  • Otrzymane polubienia: 2609
Odp: Changing the motor connections of ET42
« Odpowiedź #4 dnia: 13 Kwietnia 2021, 20:58:56 »
Strange. It doesn't have animated switch anywhere, so we can't link dedicated sounds to it, but default switch sound still should be played.
Mój kanał youtube

Offline Stratula

  • Wiadomości: 5
    • Zobacz profil
  • Otrzymane polubienia: 1
Odp: Changing the motor connections of ET42
« Odpowiedź #5 dnia: 13 Kwietnia 2021, 21:05:07 »
For the moment I thought I could hear the sound, but no, it was my squeaking keyboard.

Offline Stele

  • Zasłużony dla Symulatora
  • Wiadomości: 10133
    • Zobacz profil
  • Otrzymane polubienia: 2609
Odp: Changing the motor connections of ET42
« Odpowiedź #6 dnia: 13 Kwietnia 2021, 21:29:26 »
Got it. It's vehicle specific usage of command  motoroverloadrelaythresholdtoggle that lacks call to method setting gauge animation.
Kod: ("mover.cpp 3664) [Zaznacz]
void TTrain::OnCommand_motoroverloadrelaythresholdtoggle( TTrain *Train, command_data const &Command ) {

    if( Command.action == GLFW_PRESS ) {
        // only reacting to press, so the switch doesn't flip back and forth if key is held down
        if( ( true == Train->mvControlled->ShuntModeAllow ?
                ( false == Train->mvControlled->ShuntMode ) :
                ( Train->mvControlled->Imax < Train->mvControlled->ImaxHi ) ) ) {
            // turn on
            OnCommand_motoroverloadrelaythresholdsethigh( Train, Command );
++Train->ggMaxCurrentCtrl.UpdateValue( 1.0, Train->dsbSwitch );
        }
        else {
            //turn off
            OnCommand_motoroverloadrelaythresholdsetlow( Train, Command );
--Train->ggMaxCurrentCtrl.UpdateValue( 0.0, Train->dsbSwitch );
        }
    }
}
should do if I'm reading it correctly. Will be fixed in future release.
Mój kanał youtube