Most of the time the plugin works fine, but every now and then it crashes. Giving me the following error below.
Run-time error
Plugin: Hyperlink_URL2 (called from world: Redwall-Ajax)
Function/Sub: OnHyperlink called by trigger
Reason: processing trigger ""
[string "Plugin"]:61: C stack overflow
stack traceback:
[string "Plugin"]:61: in function <[string "Plugin"]:1>
[C]: in function 'Note'
[string "Plugin"]:71: in function <[string "Plugin"]:1>
[C]: in function 'Note'
[string "Plugin"]:71: in function <[string "Plugin"]:1>
[C]: in function 'Note'
[string "Plugin"]:71: in function <[string "Plugin"]:1>
[C]: in function 'Note'
[string "Plugin"]:71: in function <[string "Plugin"]:1>
[C]: in function 'Note'
[string "Plugin"]:71: in function <[string "Plugin"]:1>
...
[C]: in function 'Note'
[string "Plugin"]:71: in function <[string "Plugin"]:1>
[C]: in function 'Note'
[string "Plugin"]:71: in function <[string "Plugin"]:1>
[C]: in function 'Note'
[string "Plugin"]:71: in function <[string "Plugin"]:1>
[C]: in function 'Note'
[string "Plugin"]:71: in function <[string "Plugin"]:1>
[C]: in function 'ColourTell'
[string "Plugin"]:68: in function <[string "Plugin"]:1>
Error context in script:
57 : end -- if (doingURL)
58 : i = i + 1
59 : end -- while
60 :
61*: for x, y in ipairs (newstyle) do -- x is the style number, y is the style-data table.
62 : NoteStyle (y.style)
63 : if y.hypernumber ~= nil then
64 : Hyperlink(hyperlinks[y.hypernumber], y.text, "Go to " .. hyperlinks[y.hypernumber]
65 : , "#8daaf0", "#000000", 1)
Then the plugin is effectively useless until I reload the client. Enabling/disabling it doesn't work, the client has to be reloaded completely.
Giving me the error seen below.
Trigger function "OnHyperlink" not found or had a previous error.
Anyway, hopefully this problem hasn't been discussed before and if not I could use some help at everyone's convenience. Thanks in advance.
Run-time error
Plugin: Hyperlink_URL2 (called from world: Redwall-Ajax)
Function/Sub: OnHyperlink called by trigger
Reason: processing trigger ""
[string "Plugin"]:61: C stack overflow
stack traceback:
[string "Plugin"]:61: in function <[string "Plugin"]:1>
[C]: in function 'Note'
[string "Plugin"]:71: in function <[string "Plugin"]:1>
[C]: in function 'Note'
[string "Plugin"]:71: in function <[string "Plugin"]:1>
[C]: in function 'Note'
[string "Plugin"]:71: in function <[string "Plugin"]:1>
[C]: in function 'Note'
[string "Plugin"]:71: in function <[string "Plugin"]:1>
[C]: in function 'Note'
[string "Plugin"]:71: in function <[string "Plugin"]:1>
...
[C]: in function 'Note'
[string "Plugin"]:71: in function <[string "Plugin"]:1>
[C]: in function 'Note'
[string "Plugin"]:71: in function <[string "Plugin"]:1>
[C]: in function 'Note'
[string "Plugin"]:71: in function <[string "Plugin"]:1>
[C]: in function 'Note'
[string "Plugin"]:71: in function <[string "Plugin"]:1>
[C]: in function 'ColourTell'
[string "Plugin"]:68: in function <[string "Plugin"]:1>
Error context in script:
57 : end -- if (doingURL)
58 : i = i + 1
59 : end -- while
60 :
61*: for x, y in ipairs (newstyle) do -- x is the style number, y is the style-data table.
62 : NoteStyle (y.style)
63 : if y.hypernumber ~= nil then
64 : Hyperlink(hyperlinks[y.hypernumber], y.text, "Go to " .. hyperlinks[y.hypernumber]
65 : , "#8daaf0", "#000000", 1)
Then the plugin is effectively useless until I reload the client. Enabling/disabling it doesn't work, the client has to be reloaded completely.
Giving me the error seen below.
Trigger function "OnHyperlink" not found or had a previous error.
Anyway, hopefully this problem hasn't been discussed before and if not I could use some help at everyone's convenience. Thanks in advance.