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 issues

Support & discussion of released scripts, and announcements of new releases.
s
sanchezz
Voice
Posts: 4
Joined: Fri Dec 20, 2013 3:40 pm

BogusTrivia issues

Post by sanchezz »

Hey All,

I've got an eggdrop bot set up currently, running multiple scripts with no issues. I'm trying to get BogusTrivia working, but no matter what I do, the t-2.tcl script can't locate the t-2.settings.tcl within the same directory.

From what I can see, it's calling for that file in the working directory of the main script (where it currently resides) but for some reason it can't find it.

Here's the error:
[11:32] Couldn't find the BogusTrivia settings file: /home/xxxx/eggdrop/scripts/t-2.settings.tcl

Any advice? I've applied all the correct permissions and whatnot.

Thanks!
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

That is not a BogusTrivia issue that I've seen before.
I've got an eggdrop bot set up currently, running multiple scripts with no issues. I'm trying to get BogusTrivia working,...
Please try running BogusTrivia as the only scrip loaded on the bot.
This would rule out a possible script conflict.
What other scripts are you running on this bot?
From what I can see, it's calling for that file in the working directory of the main script (where it currently resides) but for some reason it can't find it.
Yes, the settings file must be in the same directory as the t-2.tcl
Here's the error:
[11:32] Couldn't find the BogusTrivia settings file: /home/xxxx/eggdrop/scripts/t-2.settings.tcl
Is that the correct route to the script and settings file?
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
s
sanchezz
Voice
Posts: 4
Joined: Fri Dec 20, 2013 3:40 pm

Post by sanchezz »

Thanks Spike,

I'll give it a shot. The other scripts that it's loading are a regex script, the !bomb game and a weather script.

And yes, the path is correct, it's calling for the settings in the same directory that the t-2.tcl resides in.

I'll give that a shot in a bit, it's very odd!
s
sanchezz
Voice
Posts: 4
Joined: Fri Dec 20, 2013 3:40 pm

Post by sanchezz »

Spike,

I just tried loading the bot with only t-2, and still got the same issue.

Here's the log:
[15:46] Rehashing ...
[15:46] Loading BogusTrivia v2.06.4.6 by SpiKe^^...
[15:46] Couldn't find the BogusTrivia settings file: /home/xxxx/eggdrop/scripts/t-2.settings.tcl
[15:46] BogusTrivia game script not loaded!
[15:46] use '.help userinfo' for commands.
[15:46] Userfile loaded, unpacking...

Any other thoughts?

Thanks!
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

Seems to me more of a file permissions issue, than a BogusTrivia issue.

If the file is there and the eggdrop bot can't see it, there's little bogus can do.

Double check ALL of the directory permissions, for every directory in the route.
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
s
sanchezz
Voice
Posts: 4
Joined: Fri Dec 20, 2013 3:40 pm

Post by sanchezz »

Will do. I'm heading home now, but I'll check it when I get back to work Monday.

Thanks again!
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

unix file permissions.

Post by SpiKe^^ »

From http://www.dartmouth.edu/~rc/help/faq/permissions.html
Remember that to read a file, You need execute access to the directory it is in AND read access to the file itself...
You also need execute access to all parent directories back to the root.
Note: When working with egg scripts, "You" Is The Eggdrop Bot.
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
s
saliu
Voice
Posts: 2
Joined: Sun Mar 09, 2014 3:26 pm

Post by saliu »

sanchezz wrote:Spike,

I just tried loading the bot with only t-2, and still got the same issue.

Here's the log:
[15:46] Rehashing ...
[15:46] Loading BogusTrivia v2.06.4.6 by SpiKe^^...
[15:46] Couldn't find the BogusTrivia settings file: /home/xxxx/eggdrop/scripts/t-2.settings.tcl
[15:46] BogusTrivia game script not loaded!
[15:46] use '.help userinfo' for commands.
[15:46] Userfile loaded, unpacking...

Any other thoughts?

Thanks!





Hello sanchez


Just put t-2.tcl and t-2.settings.tcl to scripts folder and everything should be fine
K
Koo
Voice
Posts: 37
Joined: Fri Apr 02, 2010 7:43 pm

Post by Koo »

I'm having the same problem with my 1.6.21 eggy bot. Already put the setting file in the /scripts directory but the bot still couldn't find it. :(
User avatar
starr
Voice
Posts: 26
Joined: Sun Mar 18, 2007 1:18 am
Location: Tennessee
Contact:

Post by starr »

I have a couple questions:

1. Is this your own machine and is it Ubuntu?

2. What are the file permissions on the bot folder and the scripts folder?

3. Have you edited the script in any way?

4. Are you calling the t-2 settings file?

5. Are you running a patched 1.6.21 bot?
K
Koo
Voice
Posts: 37
Joined: Fri Apr 02, 2010 7:43 pm

Post by Koo »

starr wrote:1. Is this your own machine and is it Ubuntu?
Nope. I'm using a free shell account somewhere so I have no idea which Linux the owner uses for the machine.
starr wrote:2. What are the file permissions on the bot folder and the scripts folder?
It should be the same permission required for the script since I already set the file permission exactly as stated in the BogusTrivia installation note. I'll double check later to confirm.
starr wrote:3. Have you edited the script in any way?
Well, the setting file needs to be edited in order to work, right? So I did. If you're talking about the main script then no I don't.
starr wrote:4. Are you calling the t-2 settings file?
Erm...I'm not sure whether I understand this question. Mind doing some clarification/rephrase?
starr wrote:5. Are you running a patched 1.6.21 bot?
I just grabbed the eggdrop1.6.21.tar.gz from the eggdrop site and then compiled it. I'm not sure whether it's patched or not.

Code: Select all

I am running eggdrop v1.6.21, on Linux 2.6.32-042stab084.17.
Taken from the bot. Hopefully that helps. :mrgreen:
w
willyw
Revered One
Posts: 1197
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

Koo wrote:
starr wrote: ...
starr wrote:4. Are you calling the t-2 settings file?
Erm...I'm not sure whether I understand this question. Mind doing some clarification/rephrase?
This is referring to the source line(s) that you add to eggdrop.conf to load a script.
Show him all those lines, currently in eggdrop.conf, that have to do with BogusTrivia.
starr wrote:5. Are you running a patched 1.6.21 bot?
I just grabbed the eggdrop1.6.21.tar.gz from the eggdrop site and then compiled it. I'm not sure whether it's patched or not.

It is not patched then.

While you wait for starr to reply to you, you might as well check out:
http://www.egghelp.org/files.htm#patches
Find the patch described as:
timerworkaround.patch.gz by thommey
Read the description there, and follow the link in the description. It leads to a lengthy forum thread that should explain itself.
(This is not the cause of your current problem - but since patches came up, and you are waiting, you might as well check it out and become aware of what to do. )
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

I'll have to admit that I have no idea where this error is coming from.
It still seems more like a file permissions issue, than a BogusTrivia issue.

The script looks for it's settings file and is unable to find it, though you say it is clearly there.
If the file is there and the eggdrop bot can't see it, there's little bogus can do.

I would start by getting a real shell and all will be good.
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 »

willyw wrote: This is referring to the source line(s) that you add to eggdrop.conf to load a script.
Show him all those lines, currently in eggdrop.conf, that have to do with BogusTrivia.
I see. I tried calling the script but the problem still persisted.
willyw wrote: It is not patched then.

While you wait for starr to reply to you, you might as well check out:
http://www.egghelp.org/files.htm#patches
Find the patch described as:
timerworkaround.patch.gz by thommey
Read the description there, and follow the link in the description. It leads to a lengthy forum thread that should explain itself.
(This is not the cause of your current problem - but since patches came up, and you are waiting, you might as well check it out and become aware of what to do. )
Thank you. I will try to patch the bot later. :wink:
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

This is the code responsible for checking if the settings file is available:

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  }
source $ttmp(temp)

Try bypassing the file check by editing that part of the script file to be more like:

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  }
#source $ttmp(temp)

Then source the settings file in the bot conf file, before the script file...

Code: Select all

source scripts/t-2.settings.tcl
source scripts/t-2.tcl

SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
Post Reply