egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help us to help you

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat Aug 06, 2005 1:08 am    Post subject: Help us to help you Reply with quote

(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
Back to top
View user's profile Send private message Visit poster's website
Ofloo
Owner


Joined: 13 May 2003
Posts: 953
Location: Belguim

PostPosted: Sun Aug 07, 2005 10:19 am    Post subject: Reply with quote

great suggestions
_________________
XplaiN but think of me as stupid
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber