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.

BogusTrivia: Couldn't find the BogusTrivia settings file

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
j
juanamores
Master
Posts: 317
Joined: Sun Mar 15, 2015 9:59 am

BogusTrivia: Couldn't find the BogusTrivia settings file

Post by juanamores »

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

Post by SpiKe^^ »

As the error states...
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: Select all

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

Couldn't find the BogusTrivia settings file:

Post by SpiKe^^ »

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

set ttmp(pwdpath) [pwd]/  ;  set ttmp(scrpath) [file dirname [info script]]/
and make it look more like this

Code: Select all

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
.
j
juanamores
Master
Posts: 317
Joined: Sun Mar 15, 2015 9:59 am

Post by juanamores »

SpiKe^^ with this modification worked. :D

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 :)
Post Reply