|
error that I have no idea where is coming from
|
Reply to this subject
Start a new subject
 
Refresh page
| Posted by |
Oriol
(31 posts) bio
|
| Date |
Wed 24 Jun 2009 07:50 AM (UTC) [ quote
] |
| Message |
Hi,
I'm trying to script something, and this error keeps coming up randomly, but when I look at the line (650-660) they make no sense and have nothing to do with the error, or at least I don't think. Here's what it says.
Error raised in timer function (in wait module).
stack traceback:
[string "Plugin"]:655: in function <[string "Plugin"]:612>
Run-time error
Plugin: AlterAeon (called from world: alter aeon)
Function/Sub: wait.timer_resume called by timer
Reason: processing timer "wait_timer_2252"
C:\Program Files\MUSHclient\lua\wait.lua:51: [string "Plugin"]:655: attempt to
concatenate field '?' (a boolean value)
stack traceback:
[C]: in function 'error'
C:\Program Files\MUSHclient\lua\wait.lua:51: in function <C:\Program
Files\MUSHclient\lua\wait.lua:43> | top |
|
| Posted by |
Nick Gammon
Australia (18,769 posts) bio
Forum Administrator |
| Date |
Reply #1 on Wed 24 Jun 2009 09:50 AM (UTC) [ quote
] |
| Message |
Which version of MUSHclient are you using?
It is hard to debug without seeing the script. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
| Posted by |
Fadedparadox
USA (91 posts) bio
|
| Date |
Reply #2 on Wed 24 Jun 2009 10:08 AM (UTC) [ quote
] Amended on Wed 24 Jun 2009 10:13 AM (UTC) by Fadedparadox
|
| Message |
The error "attempt to concatenate field" comes up when you try concat two things, but one isn't a string or number.
The field "?" means the problem is that the item that it can't concat is in a table and what you're using to reference the key isn't a string (or is a string but is in a variable).
Oddly enough, it should say "(a nil value)" but it says "(a boolean value)". The only way I could replicate that is referencing it with a boolean value, or by using a metatable so it returns false or true when it can't find what it's looking for.
That's all I could figure out from the error, without seeing the script(s) itself. | top |
|
| Posted by |
Oriol
(31 posts) bio
|
| Date |
Reply #3 on Wed 24 Jun 2009 10:48 AM (UTC) [ quote
] |
| Message |
Thanks, I'm going to try to look at this.
But when it says script line, since the script is inside a plugin, means inside the <script> xml tag, right? or could it be inside a trigger as well. | top |
|
| Posted by |
Nick Gammon
Australia (18,769 posts) bio
Forum Administrator |
| Date |
Reply #4 on Wed 24 Jun 2009 10:53 AM (UTC) [ quote
] |
| Message |
If inside a plugin, the line number is relative to the script inside the plugin.
If you type:
Then it outputs, amongst other things, the script in the plugin. With a bit of mucking around subtracting the first line from the current line, you can work out which actual line the error is in. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
| Posted by |
Nick Gammon
Australia (18,769 posts) bio
Forum Administrator |
| Date |
Reply #5 on Wed 24 Jun 2009 10:55 AM (UTC) [ quote
] |
| Message |
Judging by this:
[string "Plugin"]:655: in function <[string "Plugin"]:612>
Unless you have a 655 line script in a trigger, it is the plugin script itself, inside the script tag. If you used "include standard constants" you need to offset that from the count. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
1,835 views.
Reply to this subject
Start a new subject
 
Refresh page
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )