gamingdoom / beamng-shifting-leds

This program allows you to use the G29's shifting leds with Beam.NG Drive
GNU General Public License v3.0
4 stars 1 forks source link

TypeError: Cannot write to hid device #4

Open abshabab opened 3 months ago

abshabab commented 3 months ago

After following the steps as listed, the terminal connects to BeamNG and runs into this error:

Connected to Logitech G29 wheel
Connected to BeamNG.Drive
C:\Users\My Name\Downloads\beamng-shifting-leds.js:81
    g29.write([0xf8, 0x12, LEDMask, 0x00, 0x00, 0x00, 0x01])
        ^

TypeError: Cannot write to hid device
    at updateLeds (C:\Users\My Name\Downloads\beamng-shifting-leds.js:81:9)
    at Socket.<anonymous> (C:\Users\Shabab Abedin\Downloads\beamng-shifting-leds.js:46:5)
    at Socket.emit (node:events:519:28)
    at UDP.onMessage [as onmessage] (node:dgram:942:8)

Not sure if this page is still maintained, just wondering if I followed the steps wrong or something...

P.S. - I am an absolute novice at programming, I created this Github account just now to post this issue because I want pretty lights in my game. Thanks in advance

gamingdoom commented 3 months ago

Could you try running the script in an administrator terminal?

Thanks.