[api] Reading Instrument And Button Indications

Discussion in 'Creators Club' started by KermMartian, Jan 3, 2026.

  1. KermMartian

    KermMartian New Member

    Joined:
    Oct 10, 2025
    Messages:
    1
    Likes Received:
    0
    For the past few years, I've been working on a Class 80x-inspired train simulator. I had long been using and testing it with Train Sim Classic, but was thrilled that Dovetail added the API to TSW6. In my current tests, there's a lot I can control: the API exposes more than enough for everything from using a physical Class 365 controller with virtual trains, and press buttons from TPWS to DRA to door controlss to (some of the buttons on) the GSM-R DCP. However, reading the instruments and especially buttons on trains' dashboards seems somewhere between haphazard and entirely absent.

    Since I'm creating a Class 80x-shaped simulator, I do most of my testing with the Class 80x, and thus far have found no way to directly read the state of illuminated buttons. For example, there are four status indicators at the lower left of the center panel, for Line Voltage, VCB, Safety System Isolation, and ADD. For each of these, I can only deduce illumination state by (for example) inspecting the voltage reaching the AC bus, an esoteric status with the VCB simulation, checking whether any of the safety systems are actually cut out, and for the Auto-Drop Device, I'm not sure (I don't think it's simulated). I would expect to be able to directly read the illumination state of each indicator, to ensure that I'm not re-implementing, especially incorrectly, the logic that causes those indicators to illuminate. As another example, the Forward Preparation button should light up when (and only when) the front coupler hatch has been verified to be open, and I'd rather read that directly than introspect the state of the hatch.

    Thanks in advance if I'm overlooking something, or if not, please consider this a feature request! Cheers.

    [​IMG]
     

Share This Page