Closed sduensin closed 7 months ago
@sduensin, you need to be using GetConfig
instead of GetSettings
. The latter is used to store and retrieve values in the settings file (for example, user selection for checkboxes in your plugin) and the former is used to retrieve values from config files.
Let me know if there is still an issue, but I'd expect it to work.
Oh man. I went back and read the web site again... It DOES say that! Thank you! Total user error on my part. :-)
No problem; glad it resolved it.
I am attempting to add Singe (https://SingeEngine.com) support to ZeroBrane through a plugin. I need to pass some configuration information to the plugin, and according to the docs, I should be able to create a table with the plugin's name (
singetoolbar.lua
) in the user config like this:Then inside the plugin's
onRegister
function, access them like this:However, the
settings
table is empty. Dumping it produces{}
.What have I done wrong? Is this me or a bug?
Thanks!