-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Getting error intermittently something like every 2nd restart, sometimes 2/3 restarts of DCS.
There's nothing wrong with options.lua and the oauth code is correct, because it works many other times.
Once the error/msgbox happens, the chatbox is non-functional and chat messages won't appear in that session of DCS.
Error is
"[string "C:\Users\danwa\Saved Games\DCS.openbeta\Scripts\Twitch2DCS.lua"]:236: loop in gettable"
Removing the "self:isEnabled()" check from line 236 in Twitch2DCS.lua seems to have fixed the issue, and the chatbox will now function every time.
The new line 36 is
if err and err ~= "timeout" and err == "closed" then
I leave mine enabled all the time, so I assume its ok to skip that check. You may want to look into why it is failing as there's a few recent posts on the DCS thread having similar issue. I can't find a definitive way to reproduce it except that it's intermittent and restarting sometimes fixes it.