r/LogitechG • • 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.

7 Upvotes

11 comments sorted by

1

u/collectgarbage Oct 24 '26

Logitech detected that you weren’t having any other issues with ghub. So they fixed it.

1

u/NA_Karami Oct 24 '26

If it ain't broke, then fix it... or break it, maybe.

1

u/Timely-Material3758 Oct 25 '26

Nao consigo nem instalar uma versao antiga

complicado

1

u/kurumiia Oct 26 '26

genuinely why did this happen??

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

u/AlternativeSpeed8197 28d ago

Sabes si encontraste solución ? Para poder utilizar sin problemas

1

u/wolfnight_111 9d 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