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.

addme problem !

Old posts that have not been replied to for several years.
Locked
D
DjGorilla

addme problem !

Post by DjGorilla »

i became this errors !
[07:21] Tcl error [addme_addname]: can't read "addme_server(#gorillascripting)": no such variable
[07:21] Tcl error [addme_server]: can't read "addme_server(#gorillascripting)": no such variable
the code =

Code: Select all

###############################################
#
# Add Me ! - v 1.00
#
# Short A Propos :
#
# Organize pickup games in an IRC channel
# With commands like !addme and !removeme, players can enrole themselves into a player list,
# and when the player list is full, the bot notices everyone to join a given server
# More details & manual : see readme.txt
#
# tested on Eggdrop 1.6.4 and TCL 8.0.5
# Tcl 8.3 : NOT WORKING (regexp & regsub b0rked, what the hell)
#
# Contact stuff :
# Ozh, ozh@planetquake, #SARL on irc.quakenet.org
# The bot is probably working on #ctfpickup.fr and #pickup.fr on Quakenet,
# if you want to have a look
###############################################


################# customize ###################

# Channels where the bot manages topics
# For example :
# set addme_channels "#lame"
# set addme_channels "#lame #lamer #lamest"
set addme_channels "#gorillascripting"

# Web page where the channels rules are explained
set addme_rules "http://FrenchFragFactory.net/pickup.shtml"

# Number of players wanted for a game, set for each channel
# Specify for each channel mentionned above !
# For example : set addme_nombre (#lame) 4 if you need 4 players to start a game
set addme_nombre(#ctfpickup.fr) 10
set addme_nombre(#pickup.fr) 8


# If you want to modify bot's messages, read through the script
# and modify yourself :) Each message is commented for you to know
EDIT: Removed half the code, so long, for so little (ppslim).

plz help ! thx !
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Please read through the settings section again, as it is not as simple as chaning only the channels it should operate in.

While you have set the channel up, you have3 failed to changes settings like
set addme_nombre(#ctfpickup.fr) 10
D
DjGorilla

Post by DjGorilla »

i forgot it only here ! in eggdrop in have added the channel !
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Does this mean you ahve solved it, or it still fails to work?
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

ppslim wrote:Does this mean you ahve solved it, or it still fails to work?
It will fail.

Removing the code from the original posting does not help pinpoint the problem. Can I ask you to put it back?

The script itself has various weak points.

One of them is that the setting is done through:

set addme_channels "#gorillascripting"

where the code (which is now not visible anymore) uses:

[array names addme_channels]

which will not work and likely lead to the error message indicated.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

The solution to which I have allready pointed.

No, I can't put ti back. I used to be in the habit of uploading ti to some webspace, but didn't do it here (OOPS).

For each channel that is listed in $addme_channels, there needs to be a coresponding line, EG "set addme_nombre(#ctfpickup.fr) 10"

This is why the error are cause.

Failure to read, and configure the script correctly.
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

ppslim wrote:The solution to which I have allready pointed.

No, I can't put ti back. I used to be in the habit of uploading ti to some webspace, but didn't do it here (OOPS).

For each channel that is listed in $addme_channels, there needs to be a coresponding line, EG "set addme_nombre(#ctfpickup.fr) 10"

This is why the error are cause.

Failure to read, and configure the script correctly.
You are pointing to something different. Afaik, what you indicate is not (yet) an issue.

Just below the configuring part, there is a statement like:

foreach i [array names addme_channels]

and thats were the "addme_server" array variable get set.

However, "addme_channels" is not an array. And consequently the foreach fails and the addme_server does not get set. Which in turn leads to the error message initially indicated.

This seems to be (an updated version of) the script:

http://www.egghelp.org/files/tcl/addme.zip
Locked