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.
Support & discussion of released scripts, and announcements of new releases.
DragnLord
Owner
Posts: 711 Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA
Post
by DragnLord » Sat Jan 10, 2009 11:25 am
The new script is available from the archive now.
Icari
Voice
Posts: 4 Joined: Mon Dec 01, 2008 5:49 pm
Post
by Icari » Thu Jan 15, 2009 3:01 pm
when trying to do
i get
Code: Select all
Tcl error [pub_wz]: can't read "fwhat(1)": no such variable
the error info is
Code: Select all
Tcl: can't read "fwhat(1)": no such variable
Tcl: while executing
Tcl: "regsub -all {<([^<])*>} $fwhat($f) {} fwhat($f)"
Tcl: (procedure "wz_socket" line 72)
Tcl: invoked from within
Tcl: "wz_socket $nick $webpage $location $city $outtarg $wzoutput $zip $country"
Tcl: (procedure "wz_parse" line 291)
Tcl: invoked from within
Tcl: "wz_parse $nick $handle $location $outtarg"
Tcl: (procedure "pub_wz" line 18)
Tcl: invoked from within
Tcl: "pub_wz $_pub1 $_pub2 $_pub3 $_pub4 $_pub5"
This is using the 4.2.5 version of the script
if i try
i get
Code: Select all
Tcl error [pub_wz]: can't read "outtitle": no such variable
and the errorinfo
Code: Select all
Tcl: can't read "outtitle": no such variable
Tcl: while executing
Tcl: "string first Search $outtitle"
Tcl: (procedure "wz_socket" line 23)
Tcl: invoked from within
Tcl: "wz_socket $nick $webpage $location $city $outtarg $wzoutput $zip $country"
Tcl: (procedure "wz_parse" line 291)
Tcl: invoked from within
Tcl: "wz_parse $nick $handle $location $outtarg"
Tcl: (procedure "pub_wz" line 18)
Tcl: invoked from within
Tcl: "pub_wz $_pub1 $_pub2 $_pub3 $_pub4 $_pub5"
DragnLord
Owner
Posts: 711 Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA
Post
by DragnLord » Fri Jan 16, 2009 12:06 am
Apparently you have done something to break your copy of the script.
Code: Select all
[Jan_15 11:05:02pm] <DragnLord> .wz -v piarco TT
[Jan_15 11:05:04pm] <WZ_Test> Piarco, Trinidad And Tobago -- 12:05 AM AST Updated: 12:00 AM AST on January 16, 2009
[Jan_15 11:05:05pm] <WZ_Test> Conditions: 73°F / 23°C | Partly Cloudy
[Jan_15 11:05:06pm] <WZ_Test> Humidity: 88% Dew Point: 70°F / 21°C
[Jan_15 11:05:07pm] <WZ_Test> Pressure: 29.92in / 1013hPa (Falling) Wind: Calm
[Jan_15 11:05:09pm] <WZ_Test> === Weather v4.2.5 by DragnLord ===
Icari
Voice
Posts: 4 Joined: Mon Dec 01, 2008 5:49 pm
Post
by Icari » Fri Jan 16, 2009 8:47 am
DragnLord wrote: Apparently you have done something to break your copy of the script.
Code: Select all
[Jan_15 11:05:02pm] <DragnLord> .wz -v piarco TT
[Jan_15 11:05:04pm] <WZ_Test> Piarco, Trinidad And Tobago -- 12:05 AM AST Updated: 12:00 AM AST on January 16, 2009
[Jan_15 11:05:05pm] <WZ_Test> Conditions: 73°F / 23°C | Partly Cloudy
[Jan_15 11:05:06pm] <WZ_Test> Humidity: 88% Dew Point: 70°F / 21°C
[Jan_15 11:05:07pm] <WZ_Test> Pressure: 29.92in / 1013hPa (Falling) Wind: Calm
[Jan_15 11:05:09pm] <WZ_Test> === Weather v4.2.5 by DragnLord ===
I copied and pasted the latest version of the script into my file and reloaded it, this location has never worked for me since i started using your script. i dont modify scripts like yours as i am not the best at tcl and i know i will break it.
DragnLord
Owner
Posts: 711 Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA
Post
by DragnLord » Fri Jan 16, 2009 12:08 pm
Make sure you have word wrap turned off when you copy it.
The script works, as shown, this would indicate that you have caused your copy not to work.
I suggest using ftp (or sftp) to upload the script to your shell.
Icari
Voice
Posts: 4 Joined: Mon Dec 01, 2008 5:49 pm
Post
by Icari » Fri Jan 16, 2009 12:12 pm
copying your version over [localhost not shell] made it work, thanks for the suggestion.
sharpie1664
Voice
Posts: 28 Joined: Sun Aug 05, 2007 4:44 am
Post
by sharpie1664 » Mon Feb 02, 2009 9:07 am
when i try and set default for ex .wz -d leeds uk the bot responds with
Sorry, dunno who you are, you can't set a default but in the tcl i have it set so anyone can set default
## Allow users to set a default weather city (can just type .wz to get weather)?
## Defaults are saved per user using XTRA fields in the user database.
## yes == 1 no == 0
set allow_user_def_wz 1
any ideas?
Thanks
DragnLord
Owner
Posts: 711 Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA
Post
by DragnLord » Mon Feb 02, 2009 10:06 am
sharpie1664 wrote: when i try and set default for ex .wz -d leeds uk the bot responds with
Sorry, dunno who you are, you can't set a default but in the tcl i have it set so anyone can set default
## Allow users to set a default weather city (can just type .wz to get weather)?
## Defaults are saved per user using XTRA fields in the user database.
## yes == 1 no == 0
set allow_user_def_wz 1
any ideas?
Thanks
The script allows people in the bot's user list to set defaults. This means that the bot must recognize the person's hostmask and match it to a user handle. What you describe is the bot not recognizing you, up to you to fix that, it has nothing to do with the script.
sharpie1664
Voice
Posts: 28 Joined: Sun Aug 05, 2007 4:44 am
Post
by sharpie1664 » Mon Feb 02, 2009 12:52 pm
Thanks m8 yup it was exactly that i had a vhost set on my nick
Cheers
koldfusion
Voice
Posts: 1 Joined: Tue Feb 03, 2009 2:22 am
Post
by koldfusion » Tue Feb 03, 2009 2:43 am
I am getting the
Code: Select all
Tcl error [pub_wz]: can't read "outtitle": no such variable
problem as well.
I have tried multiple different ways of getting the file over.
FTP/SFTP
Local login on the account then extracting via GUI
Through shell, nano weather425.tcl pasting the script in (no word wrap),
Always the same issue
Anyone else with this issue?
If so, how did you fix this?
I have installed tons of tcls in the past, Linux is basically my second OS. I'm not new but I'm not Pro either. (10 years Linux use)
I'm sure its something simple
DragnLord
Owner
Posts: 711 Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA
Post
by DragnLord » Sun Apr 05, 2009 3:00 am
I get no such error.
What location are you asking for?
Post errorInfo results, as specified when posting about problems.
Gordon
Voice
Posts: 35 Joined: Wed Apr 04, 2007 11:45 am
Post
by Gordon » Wed Sep 16, 2009 1:31 pm
same error here,
it happens when you write only name of the city without country code,
for example,
.wz Paris ('.wz Paris FR ' works)
Tcl error [pub_wz]: can't read "outtitle": no such variable
.wz Denver (i dont know how to make this work..)
Tcl error [pub_wz]: can't read "outtitle": no such variable
also i would like to know how to look for cities like New York or New Orleans..
reply i get, Sorry, orleans is not supported. Try .wzc <country> or /msg b0t .wzc <country> to find your 2 letter country code
CtrlAltDel
Halfop
Posts: 49 Joined: Wed Jun 02, 2004 7:58 am
Post
by CtrlAltDel » Wed Sep 16, 2009 5:03 pm
Gordon wrote: same error here,
it happens when you write only name of the city without country code,
for example,
.wz Paris ('.wz Paris FR ' works)
Tcl error [pub_wz]: can't read "outtitle": no such variable
.wz Denver (i dont know how to make this work..)
Tcl error [pub_wz]: can't read "outtitle": no such variable
also i would like to know how to look for cities like New York or New Orleans..
reply i get, Sorry, orleans is not supported. Try .wzc <country> or /msg b0t .wzc <country> to find your 2 letter country code
.wz denver, co
.wz new york, ny
.wz new orleans, la
that help?
DragnLord
Owner
Posts: 711 Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA
Post
by DragnLord » Thu Sep 17, 2009 2:22 am
CtrlAltDel wrote:
.wz denver, co
.wz new york, ny
.wz new orleans, la
that help?
This is correct.
You can also use ".wz help" to get some basic instructions.
Kein
Voice
Posts: 21 Joined: Wed Apr 09, 2008 9:57 pm
Post
by Kein » Sun Sep 27, 2009 3:26 pm
DragnLord wrote: CtrlAltDel wrote:
.wz denver, co
.wz new york, ny
.wz new orleans, la
that help?
This is correct.
You can also use ".wz help" to get some basic instructions.
Same problem as above.
Header-readme says:
## Usage: .wz [-d] [-o] [-u imc] [-t] [-h] [-short] [help] <city,state|zip|ICAO code> [country]
[country] -> I always thought that the args in [] brackets is optional.
[23:18:01] <Kein> $weather boston
[23:22:34] <Bot> [22:22] Tcl error [pub_wz]: can't read "outtitle": no such variable
Looks like I was wrong all my life.
Can you just make it... optional? Let it return the first result, c'mon. It will not break anything or destroy the eternity.
Also:
[23:29:07] <Kein> $weather -help
[23:29:08] <Bot> [22:29] Tcl error [pub_wz]: can't read "outtitle": no such variable
Lol?
Changes made:
Code: Select all
## set these to whatever you want, it will carry over into the help now.
## Change .wz .wzc & .wzf to whatever you prefer.
set wflag "$"
set wzbind ${wflag}weather
set wzcbind ${wflag}wzc
set wzfbind ${wflag}forecast
Also, help-string still says "[23:27:09] -Bot- Check your syntax, use .wz -help", but well, you see, I have changed the prefix and cmd... Just make it variable in help-text
I'm too lazy for all of this