AnkhHeart / Streamlabs-Chatbot-Python-Boilerplate

75 stars 21 forks source link

ReloadSettings not being called on Save Settings #7

Open spencel opened 5 years ago

spencel commented 5 years ago

Save Settings doesn't seem to be working. I made this test code to check if ReloadSettings is called when Save Settings is clicked:

def ReloadSettings(jsonData):
    Parent.SendStreamMessage('ReloadSettings')
    Init()
    return

But no message is sent to the channel. The ReloadSettings function is called when the script is reloaded by clicking on Reload Scripts.

spencel commented 5 years ago

I created a workaround for myself by sending a command from twitch chat to save the settings by calling the Init function from the Execute data function call. If anyone knows if I've set up the ReloadSettings function call incorrectly, guidance would be greatly appreciated.

spencel commented 5 years ago

Problem seems to have gone away.

spencel commented 5 years ago

The problem seems to come back but is resolved when restarting streamlabs chatbot...

bgonp commented 5 years ago

Same problem here, the ReloadSettings function is never being executed. Still trying to solve this...

sc3w commented 5 years ago

Same problem here, is there any fix planned for this in the near future?

Splinti commented 4 years ago

Could it be that you reloaded the script, but did not click on the script again? When reloading scripts, you need to click on that script again to open the gui, if the gui is open already when you clicked reload, it kindof is "out-of-sync" and when you change things / save settings it doesn't do it for the current loaded instance of the script. Can you try this out please?