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 

New BogusTrivia 2.06.4.5 Released
Goto page 1, 2  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
SpiKe^^
Owner


Joined: 12 May 2006
Posts: 792
Location: Tennessee, USA

PostPosted: Tue Jul 24, 2012 8:13 am    Post subject: New BogusTrivia 2.06.4.5 Released Reply with quote

The new version of BogusTrivia has just been released. Get your copy today at the egghelp script archive.
Code:
###################################################################
#                                                                 #
#  Version 2.06.4.5 Release Notes:                                #
#                                                                 #
# -> New Settings in v2.06.4.5 :  t-2.settings.tcl <-             #
#  1. Set separate user flags to turn the game off                #
#  2. Allows much lower point ranges for questions and kaos       #
#  3. Allows much lower pause times between questions and hints   #
#  4. Change all command prefixes with one setting                #
#  5. Change hint placeholder default character                   #
#  6. Allows longer questions (max character limit & multi-line)  #
#  7. Several new question presentation options                   #
#  8. Strip color codes from players answers                      #
#  9. Strip extra spaces from players answers                     #
# 10. New public commands: .info .webstats & .stats <nick>        #
# 11. User defined public triggers and replies options            #
# 12. Sample user defined commands: .commands .rules .time        #
#                                                                 #
# -> New Updated File:  t-2.tcl <-                                #
# Bug Fix:  Fixed an issue where public stats command reply       #
#  was showing the \002 bold code.                                #
# Added code to support new options and public commands.          #
#                                                                 #
# -> New Updated File:  t-2.commands.tcl <-                       #
# Added code to support the new public commands.                  #
#                                                                 #
# -> New Updated File:  bogus.ques.sample <-                      #
# Cleaned Many Doubles and Removed Bad Questions.                 #
#                                                                 #
###################################################################

_________________
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
Back to top
View user's profile Send private message Visit poster's website
Koo
Voice


Joined: 02 Apr 2010
Posts: 37

PostPosted: Wed Jul 25, 2012 7:17 pm    Post subject: Reply with quote

Thank you for releasing such a wonderful game script Spike^^.

However, I have two problems with this script so far. First, I have this kind of error message displayed in my bot's partyline whenever someone joins my channel.

Quote:
Tcl error [TJoin]: can't read "t2(-als)": no such element in array


Quote:
Tcl error [TJoin]: can't read "t2(-aoff)": no such element in array


Second, let's say the ad that I set is something like this: "Welcome to my IRC channel". When in game my bot displays the ad like this:

Quote:
Bot: Welcome
Bot: <Trivia Question 1>


Then after 5 or more questions:

Quote:
Bot: to
Bot: <Trivia Question 2>


And again:

Quote:
Bot: my
Bot: <Trivia Question 3>


And then it goes on. Is there something wrong with my eggdrop setting/TCL version/etc? If yes, how do I fix these problem?

Thanks in advance. Very Happy

Edit: Oh, I forgot to tell you that I'm running this script on eggdrop version 1.6.20.
Back to top
View user's profile Send private message
SpiKe^^
Owner


Joined: 12 May 2006
Posts: 792
Location: Tennessee, USA

PostPosted: Wed Jul 25, 2012 7:52 pm    Post subject: Reply with quote

I can't recreate any of those issues here. Give me any other info that may help.

I need the entire error text, all the lines if there are several.

Have you been editing the t-2.tcl file? Perhaps a translation attempt?

What settings have you changed in the settings file?
_________________
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
Back to top
View user's profile Send private message Visit poster's website
Koo
Voice


Joined: 02 Apr 2010
Posts: 37

PostPosted: Wed Jul 25, 2012 8:01 pm    Post subject: Reply with quote

SpiKe^^ wrote:
I can't recreate any of those issues here. Give me any other info that may help.

I need the entire error text, all the lines if there are several.

Error text? I don't know where to find that because I only saw the error in the partyline.

SpiKe^^ wrote:
Have you been editing the t-2.tcl file? Perhaps a translation attempt?

Nope, not at all.

SpiKe^^ wrote:
What settings have you changed in the settings file?

Erm...not much except setting the channel, added couple of random ads and changed the flag for stopping the game from op-only into everyone.

Edit: The greet message worked on me with BogusTrivia 2.06.4.2 before but stopped working when I upgraded into BogusTrivia 2.06.4.4 and BogusTrivia 2.06.4.5. Now I suspect this might relate to either my shell or my setting. Confused
Back to top
View user's profile Send private message
SpiKe^^
Owner


Joined: 12 May 2006
Posts: 792
Location: Tennessee, USA

PostPosted: Wed Jul 25, 2012 8:16 pm    Post subject: Reply with quote

Quote:
Error text? I don't know where to find that because I only saw the error in the partyline.

The rest of the lines related to the errors from the partyline.

I would try with the default settings file unedited except for the channel.
See if it will run like that, so far you're the only one with such errors and I don't know where it may be coming from.

Have we killed the bot and start it fresh to clear everything from memory?
Do you have other tcl scripts loaded on the same bot?
Do you have player stats or has no one played yet?
_________________
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
Back to top
View user's profile Send private message Visit poster's website
Koo
Voice


Joined: 02 Apr 2010
Posts: 37

PostPosted: Thu Jul 26, 2012 7:04 pm    Post subject: Reply with quote

SpiKe^^ wrote:
The rest of the lines related to the errors from the partyline.

I still don't know where to find those error except in partyline. Now I feel stupid. x__x

SpiKe^^ wrote:
I would try with the default settings file unedited except for the channel.
See if it will run like that, so far you're the only one with such errors and I don't know where it may be coming from.

Have we killed the bot and start it fresh to clear everything from memory

Did that (more than once, in fact) but the errors are still there.

SpiKe^^ wrote:
Do you have other tcl scripts loaded on the same bot?

Nope.

SpiKe^^ wrote:
Do you have player stats or has no one played yet?

Yes but I don't use any web stats.


EDIT: Spike^^, I've tested your script in other shell and it worked well. Now my suspicion has become true, there must be a problem with my shell or setting. >__>
Back to top
View user's profile Send private message
SpiKe^^
Owner


Joined: 12 May 2006
Posts: 792
Location: Tennessee, USA

PostPosted: Thu Jul 26, 2012 7:37 pm    Post subject: Reply with quote

OK, we need to find out more information on the shell that is giving the problems. I would like to know the operating system the shell is running and the tcl library version too. Is that a free shell? Maybe any other shell related info you may be able to gather.

I'm very interrested in where your issues with bogus are coming from, we will try to get to the bottom of this:)
_________________
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
Back to top
View user's profile Send private message Visit poster's website
Koo
Voice


Joined: 02 Apr 2010
Posts: 37

PostPosted: Fri Jul 27, 2012 12:00 am    Post subject: Reply with quote

SpiKe^^ wrote:
OK, we need to find out more information on the shell that is giving the problems. I would like to know the operating system the shell is running and the tcl library version too. Is that a free shell? Maybe any other shell related info you may be able to gather.

I'm very interrested in where your issues with bogus are coming from, we will try to get to the bottom of this:)

I checked through the bot's partyline and it said that the shell is running on FreeBSD 8.1-RELEASE. About the TCL library, I selected TCL8.6 in the shell. Does this info help?
Back to top
View user's profile Send private message
SpiKe^^
Owner


Joined: 12 May 2006
Posts: 792
Location: Tennessee, USA

PostPosted: Fri Jul 27, 2012 12:32 am    Post subject: Reply with quote

try this for me please. find this in the settings file...
Code:
# on-join auto-start #
# automaticly start bogustrivia when someone joins the channel ??  (0 = no) #
# Note:  for this to function, Idle-stop Must Be Turned ON!  #
# Note:  using the public off command overrides auto-start!  #
#        use the public on command to reactivate auto-start. #
# Note:  auto-start only triggers if bogus was idle-stopped. #
# 1 = silently start game  |  2 = say public  |  3 = say channel notice #
#  see below:  Advanced On-Join Auto-Start Settings #
set t2(autostart) "2"

change that setting to: set t2(autostart) "0"
and see if it helps on that shell
_________________
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
Back to top
View user's profile Send private message Visit poster's website
Koo
Voice


Joined: 02 Apr 2010
Posts: 37

PostPosted: Fri Jul 27, 2012 3:48 am    Post subject: Reply with quote

Tried that solution and the bot crashed with this error message:
Quote:
<Cleo> [08:46:48] Loading 10BogusTrivia v2.06.4.5 by SpiKe^^...
<Cleo> [08:46:48] Tcl error in file 'Cleo.conf':
<Cleo> [08:46:48] can't unset "t2(-als)": no such element in array
<Cleo>     while executing
<Cleo> "unset t2(-aoff) t2(-als) t2(-lastank) t2(-lastaut)  "
<Cleo>     invoked from within
<Cleo> "if {$t2(autostart)=="0"} {  unset t2(a-xflag) t2(a-xnick) t2(a-delay) t2(a-same) t2(A01) t2(A11)
<Cleo>   unset tscl(as1) tscl(as2)
<Cleo>   if {[info exists t2(-ao..."
<Cleo>     (file "scripts/CScripts/t-2.tcl" line 931)
<Cleo>     invoked from within
<Cleo> "source scripts/CScripts/t-2.tcl"
<Cleo>     (file "Cleo.conf" line 1362)
<Cleo> [08:46:48] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
DCC session closed

I restarted the bot from the shell and it is now works fine with the greet message. Meaning that my first problem is solved. Thank you Spike^^.

However, that doesn't solve my second problem. Is there any solution for my second problem with the ad display? Crying or Very sad
Back to top
View user's profile Send private message
SpiKe^^
Owner


Joined: 12 May 2006
Posts: 792
Location: Tennessee, USA

PostPosted: Fri Jul 27, 2012 5:04 pm    Post subject: Reply with quote

My guess is that BogusTrivia will not run without error with tcl 8.6
Not running the tcl 8.6 so I have no way to work out the fixes yet.
_________________
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
Back to top
View user's profile Send private message Visit poster's website
Koo
Voice


Joined: 02 Apr 2010
Posts: 37

PostPosted: Sat Jul 28, 2012 12:25 pm    Post subject: Reply with quote

I changed the TCL version into 8.5 in the shell but still doesn't solve the problem. Sad
Back to top
View user's profile Send private message
SpiKe^^
Owner


Joined: 12 May 2006
Posts: 792
Location: Tennessee, USA

PostPosted: Sat Jul 28, 2012 12:35 pm    Post subject: Reply with quote

Well there is something up with that shell, and I'm done guessing what that might be:) Use another shell, as bogus runs fine everywhere else.
_________________
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
Back to top
View user's profile Send private message Visit poster's website
diegobh
Voice


Joined: 25 Mar 2013
Posts: 3

PostPosted: Mon Mar 25, 2013 7:57 pm    Post subject: Reply with quote

How could i config Bogus to ask random question?

Its asking question number one, after number two, after number three ...

I want to random choose the questions.

Thank you! xD

Its a verynice tcl Wink
Back to top
View user's profile Send private message
SpiKe^^
Owner


Joined: 12 May 2006
Posts: 792
Location: Tennessee, USA

PostPosted: Mon Mar 25, 2013 9:14 pm    Post subject: Reply with quote

Run the BogusTrivia mixer occasionally, and all the questions will be in a new random order.
The fact that the script then numbers them in the order read, doesn't mean they aren't in a new random order.
Every time you do a .mix, the questions Are in a Different Random Order!

Try turning off the question numbering display if you don't want to see the script number the questions in the order read.
Code:
set t2(shonum) "0"     ;# show the question number ?? (1=yes | 0=no) #
Sure enough, after a mix, the questions Are in a New Random Order:)

The BogusTrivia mixer is run by private message command with your trivia bot...
Quote:
Example:

/msg botnick .mix

Note: Replace "botnick" with the actual nick of your trivia bot.
The BogusTrivia mixer isn't all that efficient, so you may want to do the .mix command several times,
Waiting a few seconds between each .mix command.

Note: The default permissions for using the .mix command are set to: m|m
You can change these flags to any other flags that may work for you...
Code:
set t2(mflag) "m|m"   ;# flags for /msg commands  (.add .mix) #


I hope this info helps you.
_________________
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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