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: Couldn't find the BogusTrivia settings file

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
juanamores
Master


Joined: 15 Mar 2015
Posts: 317

PostPosted: Sat Aug 29, 2015 5:57 am    Post subject: BogusTrivia: Couldn't find the BogusTrivia settings file Reply with quote

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 Smile
Back to top
View user's profile Send private message
SpiKe^^
Owner


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

PostPosted: Sat Aug 29, 2015 10:21 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
SpiKe^^
Owner


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

PostPosted: Sat Aug 29, 2015 12:00 pm    Post subject: Couldn't find the BogusTrivia settings file: Reply with quote

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
View user's profile Send private message Visit poster's website
juanamores
Master


Joined: 15 Mar 2015
Posts: 317

PostPosted: Sun Aug 30, 2015 1:27 am    Post subject: Reply with quote

SpiKe^^ with this modification worked. Very Happy

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!!!
Smile
_________________
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 Smile
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 Requests 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