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.

New BogusTrivia 2.06.4.5 Released

Support & discussion of released scripts, and announcements of new releases.
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

New BogusTrivia 2.06.4.5 Released

Post by SpiKe^^ »

The new version of BogusTrivia has just been released. Get your copy today at the egghelp script archive.

Code: Select all

###################################################################
#                                                                 #
#  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
.
K
Koo
Voice
Posts: 37
Joined: Fri Apr 02, 2010 7:43 pm

Post by Koo »

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.
Tcl error [TJoin]: can't read "t2(-als)": no such element in array
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:
Bot: Welcome
Bot: <Trivia Question 1>
Then after 5 or more questions:
Bot: to
Bot: <Trivia Question 2>
And again:
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. :D

Edit: Oh, I forgot to tell you that I'm running this script on eggdrop version 1.6.20.
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

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
.
K
Koo
Voice
Posts: 37
Joined: Fri Apr 02, 2010 7:43 pm

Post by Koo »

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. :?
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

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
.
K
Koo
Voice
Posts: 37
Joined: Fri Apr 02, 2010 7:43 pm

Post by Koo »

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. >__>
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

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
.
K
Koo
Voice
Posts: 37
Joined: Fri Apr 02, 2010 7:43 pm

Post by Koo »

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?
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

try this for me please. find this in the settings file...

Code: Select all

# 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
.
K
Koo
Voice
Posts: 37
Joined: Fri Apr 02, 2010 7:43 pm

Post by Koo »

Tried that solution and the bot crashed with this error message:
<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? :cry:
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

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
.
K
Koo
Voice
Posts: 37
Joined: Fri Apr 02, 2010 7:43 pm

Post by Koo »

I changed the TCL version into 8.5 in the shell but still doesn't solve the problem. :(
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

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
.
d
diegobh
Voice
Posts: 3
Joined: Mon Mar 25, 2013 7:54 pm

Post by diegobh »

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 ;)
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

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: Select all

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...
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: Select all

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
.
Post Reply