| View previous topic :: View next topic |
| Author |
Message |
juanamores Master
Joined: 15 Mar 2015 Posts: 317
|
Posted: Sat Aug 29, 2015 5:57 am Post subject: BogusTrivia: Couldn't find the BogusTrivia settings file |
|
|
06:49 Trivi ¦ [06:55:23] Loading BogusTrivia v2.06.4.7 (14Aug14) by SpiKe^^...
06:49 Trivi ¦ [06:55:23] Couldn't find the BogusTrivia settings file: /home/juan/eggdrop/scripts/t-2.settings.tcl
06:49 Trivi ¦ [06:55:23] BogusTrivia game script not loaded!
In /home/juan/eggdrop/scripts/ is the tcl file! (t-2.settings.tcl)
and I modified only de channel name and on off command
CONFIG BOT FILE
source /home/juan/eggdrop/scripts/t-2.tcl
source /home/juan/eggdrop/scripts/alltools.tcl
source /home/juan/eggdrop/scripts/action.fix.tcl
t-2.settings.tcl
######## Script Settings & Options ########
set t2(chan) "#mytrivial" ;# channel to run bogustrivia in <- !! YOU MUST SET THIS !! #
set t2(mflag) "m|m" ;# flags for /msg commands (.add .mix) #
set t2(on) ".on" ;# public trigger to turn game on #
set t2(off) ".off" ;# public trigger, game off ("" = same as on trigger) #
set t2(oflag) "o|o" ;# flags to turn the game on ("" = everyone) #
set t2(sflag) "" ;# flags to turn game off ("" = same as on flags) #
What is wrong? _________________ If you do not understand my ideas is because I can not think in English, I help me with Google Translate. I only speak Spanish. Bear with me. Thanks  |
|
| Back to top |
|
 |
SpiKe^^ Owner

Joined: 12 May 2006 Posts: 792 Location: Tennessee, USA
|
Posted: Sat Aug 29, 2015 10:21 am Post subject: |
|
|
As the error states... | Quote: | | Couldn't find the BogusTrivia settings file: /home/juan/eggdrop/scripts/t-2.settings.tcl | The file is either not there, or the eggdrop bot does not have proper permissions to see/use the file.
This is the code where the script stops loading... | Code: | if {![file exists [set ttmp(temp) $t2(pwdpath)$t2(scrpath)t-2.settings.tcl]]} {
putlog "Couldn't find the BogusTrivia settings file: $t2(scrpath)t-2.settings.tcl"
putlog "\00310BogusTrivia\003 game script not loaded!" ; unset ttmp ; return } |
_________________ SpiKe^^
Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
. |
|
| Back to top |
|
 |
SpiKe^^ Owner

Joined: 12 May 2006 Posts: 792 Location: Tennessee, USA
|
Posted: Sat Aug 29, 2015 12:00 pm Post subject: Couldn't find the BogusTrivia settings file: |
|
|
Seems maybe some OS's/setups return an unexpected value for [file dirname [info script]]
Let's try this...
1. Make an unedited backup copy of your t-2.tcl file.
2. Open your working copy of that file and search for this line, at or about line number 351 | Code: | | set ttmp(pwdpath) [pwd]/ ; set ttmp(scrpath) [file dirname [info script]]/ | and make it look more like this | Code: | | set ttmp(pwdpath) [pwd]/ ; set ttmp(scrpath) scripts/ |
3. Save and close that file. (if you edited the file locally, upload the new edited file to your bot's /scripts/ dir)
4. Restart your bot (NOT REHASH!) and see if it will find the settings file and load the script. _________________ SpiKe^^
Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
. |
|
| Back to top |
|
 |
juanamores Master
Joined: 15 Mar 2015 Posts: 317
|
Posted: Sun Aug 30, 2015 1:27 am Post subject: |
|
|
SpiKe^^ with this modification worked.
02:16 ? @Trivi ¦ BogusTrivia: New Questions Found: /home/juan/eggdrop/scripts/bogus.ques.sample
02:16 ? @Trivi ¦ Type /msg Trivi .add now to load these questions.
As they are in English i will wait for them in spanish before loading.
Thank you!!!
 _________________ If you do not understand my ideas is because I can not think in English, I help me with Google Translate. I only speak Spanish. Bear with me. Thanks  |
|
| Back to top |
|
 |
|