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 

BogusTrivia - time between questions more than 60 seconds?

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


Joined: 16 Jan 2022
Posts: 9

PostPosted: Wed May 04, 2022 4:59 pm    Post subject: BogusTrivia - time between questions more than 60 seconds? Reply with quote

H!

I've just installed BogusTrivia (2.06.4.7 Full Release) and it's working great.

I'd like to have it wait longer between questions - the max wait in "normal time" is 60 seconds. Can someone help me out extending this to a few minutes?

I did try entering "120" and it sends the next question at 60 seconds anyway.

I'd prefer to have much more time between questions - as it it, the trivia is taking over the channel - hehe.
Back to top
View user's profile Send private message
CrazyCat
Owner


Joined: 13 Jan 2002
Posts: 972
Location: France

PostPosted: Wed May 04, 2022 5:58 pm    Post subject: Reply with quote

!summon SpiKe^^

If the config file says "between 1 and 60" (it does), it means that actually it's impossible to use more than 60s.
The script is really complex, I can't read it now and say why there is this limitation
_________________
https://www.eggdrop.fr
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
fusionx
Voice


Joined: 16 Jan 2022
Posts: 9

PostPosted: Wed May 04, 2022 9:59 pm    Post subject: Reply with quote

CrazyCat wrote:

The script is really complex, I can't read it now and say why there is this limitation


I tried to read through all the "rest" and "slow" logic and don't really get it. I'm not a TCL programmer, that's a fact Smile
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1169

PostPosted: Thu May 05, 2022 6:55 am    Post subject: Reply with quote

CrazyCat wrote:
!summon SpiKe^^
...




I like that ! ... I have to remember it, for future use.


Smile
_________________
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
Back to top
View user's profile Send private message
SpiKe^^
Owner


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

PostPosted: Thu May 05, 2022 2:40 pm    Post subject: Change min-max,default for BogusTrivia settings Reply with quote

fusion,

Change the min-max,default for most BogusTrivia script settings:

Note: this works for most script settings that expect a number.

Let's say we want to always have 2 minutes between all questions.
So you go to the t-2.settings.tcl file and find the setting for time between questions...
Code:
set t2(ptime) "20"    ;# play time between questions (6 to 60 seconds) #
The default maximum time for this setting is 60 seconds.

Make note of the setting-element-name, in this case, ptime

While yer here, edit that line in the settings file to be more like...
Code:
set t2(ptime) "120"    ;# play time between questions (6 to 300 seconds) #



BogusTrivia has one process that does verification of all input from the settings file.
Search the t-2.tcl file for this line of code (around line 432)...
Code:
proc TFixSettins {} {  global t2

The data you wish to find & change is somewhere in the next 30 or so lines...
Code:
 set v(nls0) "randfil maxanti match restart custclr stripcolor stripspace"
 set v(nls1) "otherhist shonum shothe descend givansr givkaos ever tda twe tmo lda lwe lmo"
 set v(nls2) "history usrqes krest"
 set v(nds2) "0-2,2   0-2,2  0-2,1"
 set v(nls3) "voice autostart kstyle v-top3 v-top10 v-op l-match"
 set v(nds3) "0-3,3   0-3,2   0-3,1  0-3,3  0-3,3  0-3,3  0-3,3"
 set v(nls4) "maxhow bakhow v-mhow v-msg"
 set v(nds4) "1-2,2  1-2,1  1-2,2  1-2,2"
 set v(nls5) "greet color today yesterda bakupu bakuph newweek kbonus v-how v-max jflud jqtime"
 set v(nds5) "0-4,3 0-8,1 1-3,3  1-3,3   0-9,2  0-9,2   1-7,1  0-9,5  0-4,3 1-9,3 2-9,5 1-9,4"
 append v(nls5) " l-rnum roundques roundbonus roundkaos roundkbon"
 append v(nds5) " 0-9,1  0-9,0     0-9,0      0-9,0     0-9,0"
 set v(nls6) "lpoint hpoint maxbonus klpoint khpoint kbonlo kbonhi"
 set v(nds6) "5000   10000  15000    5000    10000   5000   10000"
 set v(nls7) "dobonus kaos pubcmd randad qslow pslow rest   oldusr v-min   limit minbonus"
 set v(nds7) "99,10  99,10 60,10  99,4   90,20 90,25 120,30 +,365 1000000,0 +,0  +,0"
 append v(nls7) " p-tmax-d p-tmax-w p-tmax-m p-tmax-e"
 append v(nds7) " 500,30   500,60   800,120  2000,250"
 set v(nls8) "qtime   ptime   ktime    maxchar    sqcnt  rqcnt   usrmax"
 set v(nds8) "6-60,15 6-60,20 6-90,20 200-999,400 3-99,6 5-99,15 200-+,500"
 append v(nls8) " a-delay a-same  g-same  v-same  jftime  p-activ"
 append v(nds8) " 5-30,10 1-60,10 1-60,10 1-60,10 5-60,20 1-365,7"
 set v(tls0) "mflag oflag sflag pflag pqflag hflag p-gflag p-tflag"
 set v(tls1) "a-xflag g-xflag v-xflag"
 set v(tls2) "chan on off upubq hint p-cmdpre m-cmdpre hintchar"
 set v(tls3) "p-mystat p-opstat p-info p-owner p-page p-top-d p-t20-d p-tmor-d"
 append v(tls3) " p-top-w p-t20-w p-tmor-w p-top-m p-t20-m p-tmor-m p-top-e p-t20-e p-tmor-e"
 set v(tls4) "a-xnick g-xnick v-xnick"
 set v(tls5) "rndlin g-say g-fludsay p-pwww l-stxt l-rtxt"
 set v(tlsdef) "on .t2 mflag o|o"

Search those lines for the setting-element-name noted earlier, in this case, ptime

Note that line and the one just after it....
Code:
 set v(nls8) "qtime   ptime   ktime    maxchar    sqcnt  rqcnt   usrmax"
 set v(nds8) "6-60,15 6-60,20 6-90,20 200-999,400 3-99,6 5-99,15 200-+,500"
The code you would edit is just below the found setting-element-name, in this case, 6-60,20
Note that the 6-60 part is code for: (6 to 60 seconds)

Make those two lines look more like...
Code:
 set v(nls8) "qtime   ptime    ktime    maxchar    sqcnt  rqcnt   usrmax"
 set v(nds8) "6-60,15 6-300,20 6-90,20 200-999,400 3-99,6 5-99,15 200-+,500"


Goodluck, let me know
_________________
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
fusionx
Voice


Joined: 16 Jan 2022
Posts: 9

PostPosted: Thu May 05, 2022 3:43 pm    Post subject: Re: Change min-max,default for BogusTrivia settings Reply with quote

SpiKe^^ wrote:
fusion,

Change the min-max,default for most BogusTrivia script settings:

Goodluck, let me know


Spike^^ - thanks so much for the reply!

I literally just went through the script and modified those very values, moments before reading your reply. I also modified the equivalents for slow and rest, to make sure they were also set high enough to match/exceed the standard speed. I haven't uploaded the changes yet, but will do so right now.

Thanks again! Your script is awesome Smile

Edit: uploaded and tested, working fine. Thanks again!
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