| View previous topic :: View next topic |
| Author |
Message |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Sat Jan 10, 2009 11:25 am Post subject: 4.2.5 available |
|
|
| The new script is available from the archive now. |
|
| Back to top |
|
 |
Icari Voice
Joined: 01 Dec 2008 Posts: 4
|
Posted: Thu Jan 15, 2009 3:01 pm Post subject: |
|
|
when trying to do
i get
| Code: |
Tcl error [pub_wz]: can't read "fwhat(1)": no such variable
|
the error info is
| Code: |
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: |
Tcl error [pub_wz]: can't read "outtitle": no such variable
|
and the errorinfo
| Code: |
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"
|
|
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Fri Jan 16, 2009 12:06 am Post subject: |
|
|
Apparently you have done something to break your copy of the script.
| Code: | [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 === |
|
|
| Back to top |
|
 |
Icari Voice
Joined: 01 Dec 2008 Posts: 4
|
Posted: Fri Jan 16, 2009 8:47 am Post subject: |
|
|
| DragnLord wrote: | Apparently you have done something to break your copy of the script.
| Code: | [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. |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Fri Jan 16, 2009 12:08 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
Icari Voice
Joined: 01 Dec 2008 Posts: 4
|
Posted: Fri Jan 16, 2009 12:12 pm Post subject: |
|
|
| copying your version over [localhost not shell] made it work, thanks for the suggestion. |
|
| Back to top |
|
 |
sharpie1664 Voice
Joined: 05 Aug 2007 Posts: 28
|
Posted: Mon Feb 02, 2009 9:07 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Mon Feb 02, 2009 10:06 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
sharpie1664 Voice
Joined: 05 Aug 2007 Posts: 28
|
Posted: Mon Feb 02, 2009 12:52 pm Post subject: |
|
|
Thanks m8 yup it was exactly that i had a vhost set on my nick
Cheers |
|
| Back to top |
|
 |
koldfusion Voice
Joined: 03 Feb 2009 Posts: 1
|
Posted: Tue Feb 03, 2009 2:43 am Post subject: |
|
|
I am getting the
| Code: | | 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 |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Sun Apr 05, 2009 3:00 am Post subject: |
|
|
I get no such error.
What location are you asking for?
Post errorInfo results, as specified when posting about problems. |
|
| Back to top |
|
 |
Gordon Voice
Joined: 04 Apr 2007 Posts: 34
|
Posted: Wed Sep 16, 2009 1:31 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
CtrlAltDel Halfop
Joined: 02 Jun 2004 Posts: 49
|
Posted: Wed Sep 16, 2009 5:03 pm Post subject: |
|
|
| 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? |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Thu Sep 17, 2009 2:22 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
Kein Voice
Joined: 09 Apr 2008 Posts: 21
|
Posted: Sun Sep 27, 2009 3:26 pm Post subject: |
|
|
| 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.
| Quote: |
[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:
| Quote: |
[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: |
## 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 |
|
| Back to top |
|
 |
|