Skip to content

Intermittent Error on line 236 of Twitch2DCS.lua #13

@taipan303

Description

@taipan303

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions