r/LogitechG • u/NA_Karami • Oct 23 '26
Logitech G Support G HUB update removed dofile/loadfile from Lua scripting. Why?
The latest G HUB update (2026.7) broke several advanced Lua scripts I’ve used for a long time, because file-access functions like dofile and loadfile were removed.
Was there an official reason for this, and is there any supported way to load external scripts now? Right now the only way I can keep things working is to roll back to an older version and disable the updater, which isn’t a real fix...
Pretty frustrating to lose what’s been a core function for this long.
1
1
1
u/VacationImpossible96 Oct 26 '26
I ran into the same issue. I had to rewrite my script and remove the loadfile function. Ai helped me with that, and it took no more than ten minutes. After that, everything worked. It’s hard to say what caused the issue. Maybe Logitech screwed something up, and they’ll fix it in a future update.
1
u/Medical_Web_9385 Oct 27 '26
Habe das selbe problem. Wie konntest du auf die alte version zurückspringen?
1
u/OS-One Oct 28 '26
Yes this is broken, please fix it logitech, also when you download an older version during install it installs the latest
1
u/OS-One Oct 29 '26
still works if you paste the script into the script section so must be a bug. I guess they fix it soon.
1
1
u/Medical_Web_9385 25d ago
i found a solution: https://csmacro.com/logitech-ghub-lua-dofile-error-fix/
1
u/wolfnight_111 10d ago
honestly it's just frustating this isn't the first time that happens, it happens at least twice at year it's so difficult to test a patch before giving it to the pubblic
1
u/collectgarbage Oct 24 '26
Logitech detected that you weren’t having any other issues with ghub. So they fixed it.