demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sat Aug 06, 2005 1:08 am Post subject: Help us to help you |
|
|
(this or something like this should be a sticky topic, but that's up to the moderators to decide)
Folks, before asking for help with Tcl errors in your or other people's scripts, please make sure you've done the following:
- have your .tcl and .set commands enabled, meaning that you need to open your config and comment out (or remove) the following lines:
unbind dcc n tcl *dcc:tcl
unbind dcc n set *dcc:set
then save config and restart the bot
- have full backtrace of the error; that means upon receiving Tcl error (you must be logged in), immediately type .set errorInfo and save the output
- if the bot replies with `What? You need .help', you need to enable command .set (see above)
- when posting code, use code tag, not quote; the code should be indented nicely, making it easier to read and understand, for example use:
Code: |
foreach foo $bar {
if {$foo == "moo"} {
#do something
}
}
|
and not:
Code: |
foreach foo $bar {
if {$foo == "moo"} {
#do something
}
}
|
when testing a script, try to run that script only, get rid temporarily of all others, commenting them out in the config (don't forget to restart); it helps in narrowing the possible causes for problems, since there are no other scripts to possibly interfere with the script you are testing
|
|