This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Help us to help you

Help for those learning Tcl or writing their own scripts.
Locked
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Help us to help you

Post by demond »

(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: Select all

    foreach foo $bar {
       if {$foo == "moo"} {
          #do something
       }
    }
    
    and not:

    Code: Select all

    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
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

great suggestions
XplaiN but think of me as stupid
Locked