Autor Wątek: Idea/Pomysł: Train Driver 2 Stream Deck / Touch Portal Profiles  (Przeczytany 2410 razy)

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

Offline BravuraLion

  • Sponsor
  • Grupa XII
  • *
  • Wiadomości: 83
  • Siła reputacji: 429
  • BravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezes
  • Always be friendly and respectful
    • My Youtube Channel
Train Driver 2 Stream Deck / Touch Portal Profiles
« dnia: 04 Lipca 2023, 13:51:59 »
Stream Deck Profiles for Train Driver2!


I always wanted to be able to play TD2 using Stream Deck. The implementation for this is not so easy to do, but I have now found a way that works. Some of these buttons have multiple positions to imitate the status or position in the game. This is for example the case with the lights (image changes) and the toggle switches.

An example on how the Buttons Change when pressed, can be seen here: https://imgur.com/7y3I4EX

Authors
BravuraLion

Current Profiles

Installation
Before you can use the Profiles, you have to Setup Stream Deack that in runs with Admin Rights. The Profiles will not work if Stream Deck is running without that rights. You can find a very good Tutorial for that here: http://skylark-creative.com/blog/run-elgato-stream-deck-as-administrator-in-windows-10

Method B: Kill Stream Deck Process, Run Stream Deck as Admin

Next Copy the Stream Deck Folder from Github https://github.com/mrpowershell/TD2-Streamdeck  to your C: Driver that the path to the AutoHotkey, Picture and Profiles Folders look like this: C:\StreamDeck\TD2

After that, Open Stream Deck, Go to the Profile Manager and Select "Import Profile" and select the Profile you want to use.

The Profile should be now loaded to Stream Deck. If the Icons are missing, you can re add them via the Pictures Folder

FAQ
Why does Stream Deck have to run as Admin?
Since Train Driver 2 itself runs in Admin mode, Stream Deck must also be running in Admin mode in order to send the hotkeys to the game.

Why do you use the Autohotkeys.exe for the Shunting Function
This is because the game does not recognize the hotkeys via the normal Stream Deck hotkey function of NUM* and NUM/. It also does not work with Barraider. I have already reported this issue to https://www.reddit.com/r/SteamDeck/comments/14qaph0/numpad_and_not_working_as_hotkeys/. Other games have problems with this too. If you don't trust the Exes, you can build it yourself with Autohotkey https://www.autohotkey.com/ A template for the code can be found in the Autohotkey folder. Currently i have no alternative to solve that issue.

Windows Reports the AutoHotkey Exes as Virus
Jeah happened to me too, false positive

Lessons Learned
It was exciting to see that NUM/ and NUM* are sent differently depending on the program and certain programs do not perceive this as correct input. Autohotkey has helped me a lot. I will see if this can not be solved better via the API of Train Driver 2. If so, it would also be conceivable to get the Raildriver to run. Also this would be way easier if you could edit the Bindings of the Controls in Train Driver 2. Another thing is that I would like to have a MultiHotKey in Stream Deck that can do more than 2 positions. 4 would be ideal, then you can display the switch positions better. It would also be good if this could be linked to a multi action that first focuses on TD2, and then executes the hotkey. That would already work now, but then you don't have different status images for the actions anymore.

Dodano: 05 Lipca 2023, 13:02:40


If there is interest, I can also implement the whole thing for Touch Portal, then you can do the control on any phone or tablet without having to own a stream deck. https://www.touch-portal.com/#
« Ostatnia zmiana: 17 Lipca 2023, 09:28:57 wysłana przez BravuraLion »
Mein Discord Server: https://bravuralion.com/discord

Offline BravuraLion

  • Sponsor
  • Grupa XII
  • *
  • Wiadomości: 83
  • Siła reputacji: 429
  • BravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezes
  • Always be friendly and respectful
    • My Youtube Channel
Odp: Train Driver 2 Stream Deck / Touch Portal Profiles
« Odpowiedź #1 dnia: 19 Sierpnia 2023, 10:17:59 »
i released today the Profile for the SM42, you can find it on Github :)

Mein Discord Server: https://bravuralion.com/discord

Offline BravuraLion

  • Sponsor
  • Grupa XII
  • *
  • Wiadomości: 83
  • Siła reputacji: 429
  • BravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezes
  • Always be friendly and respectful
    • My Youtube Channel
Odp: Train Driver 2 Stream Deck / Touch Portal Profiles
« Odpowiedź #2 dnia: 24 Października 2023, 11:41:51 »
EP09 Profile has been added to the Collection:



See first Post on how to Download or get the Full Packages here:  https://github.com/bravuralion/TD2-Streamdeck/releases/tag/1.1
Mein Discord Server: https://bravuralion.com/discord