Streamlabs-Chatbot-Python-Boilerplate icon indicating copy to clipboard operation
Streamlabs-Chatbot-Python-Boilerplate copied to clipboard

ReloadSettings not being called on Save Settings

Open spencel opened this issue 6 years ago • 6 comments

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 avatar Jul 31 '19 00:07 spencel

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 avatar Jul 31 '19 01:07 spencel

Problem seems to have gone away.

spencel avatar Aug 03 '19 01:08 spencel

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

spencel avatar Aug 03 '19 01:08 spencel

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

bgonp avatar Aug 08 '19 17:08 bgonp

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

sc3w avatar Sep 11 '19 17:09 sc3w

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?

Splinti avatar Jan 16 '20 09:01 Splinti