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 

Announce: Tarot script

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Tue Jun 13, 2006 4:50 am    Post subject: Announce: Tarot script Reply with quote

A New, original script by yours trully Smile

Code:

###################################################################
# Tarot.tcl by Rosc (copyright C.Leonhardt 2006) rosc2112 at yahoo com
# http://members.dandy.net/~fbn/tarot.tcl.txt
#
# The *first* eggdrop tcl tarot script, well, at least the first I've seen ;)
# I whipped this up in about an hour, most of which was writing the card descriptions.
#
# Commands:
# .tarot 1   or   .tarot single     for a 1-card spread
# .tarot 3   or   .tarot            for a 3-card spread
# .tarot help                       brief helpfile
#
# History:
#          June 10 2006 - Initial creation.
###################################################################

Will upload to the archive as well.
Back to top
View user's profile Send private message
chelle21
Voice


Joined: 29 Sep 2006
Posts: 3

PostPosted: Fri Sep 29, 2006 7:43 am    Post subject: Reply with quote

Tcl error [tarot]: bad format string "%s"
it appears when i try to do the tarot reading
Back to top
View user's profile Send private message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Fri Sep 29, 2006 9:11 am    Post subject: Reply with quote

You will help the author when posting the full error from errorInfo and your TCL version. If the error occurs within a format or scan it should be not bad for anything 8.x at least.
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
chelle21
Voice


Joined: 29 Sep 2006
Posts: 3

PostPosted: Fri Sep 29, 2006 11:49 am    Post subject: Reply with quote

Edited: You were asked to post the results of '.set errorInfo' not post something that is already known (the script) - Alchera
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Fri Sep 29, 2006 4:51 pm    Post subject: Reply with quote

chelle21 wrote:
Tcl error [tarot]: bad format string "%s"
it appears when i try to do the tarot reading


I have the script, I don't need to see another copy of it. I need to see the output of .set errorInfo and I need to know what version of eggdrop and tcl you're using.

The script works fine for me, so if there is an error with the "format" command, I'd suspect it's your version of eggdrop and/or tcl.
Back to top
View user's profile Send private message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Fri Sep 29, 2006 5:14 pm    Post subject: Reply with quote

I just looked over the TCL man pages and it seems %s for clock came with TCL 8.4, so you are encuraged to upgrade. If not possible just remove the clock format and just make [unixtime] the seed for the "randomness".
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Fri Sep 29, 2006 5:38 pm    Post subject: Reply with quote

Thanks De Kus, I didn't realize the clock format command was only in the newer tcl's, so I made the following minor change to the script:

Code:

       # newer tcl's can use the clock format command.
        #set tarotseed [clock format [clock seconds] -format "%s"]
        set tarotseed [unixtime]

I'll upload the fix as well to the url posted above for the script.
Back to top
View user's profile Send private message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Sat Sep 30, 2006 7:05 am    Post subject: Reply with quote

clock format is older, but the format string %s is kind of new... well tcl 8.4 isnt actually really new Very Happy.
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
chelle21
Voice


Joined: 29 Sep 2006
Posts: 3

PostPosted: Sat Sep 30, 2006 10:06 am    Post subject: Reply with quote

that worked. thank u guys. Smile sorry for being a newbie Wink
Back to top
View user's profile Send private message
elamont
Voice


Joined: 20 Feb 2007
Posts: 1

PostPosted: Tue Feb 20, 2007 2:50 pm    Post subject: Reply with quote

Thanks so much for asking that question. I was wondering the same thing.
Erin

EDIT: removed spam links - user
Back to top
View user's profile Send private message
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Wed Feb 21, 2007 2:54 pm    Post subject: Reply with quote

not sure if you know, but [clock format [clock seconds] -format %s] is infact the exact same as [clock seconds] Rolling Eyes
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases 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