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 issues
Goto page 1, 2  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
sanchezz
Voice


Joined: 20 Dec 2013
Posts: 4

PostPosted: Fri Dec 20, 2013 3:46 pm    Post subject: BogusTrivia issues Reply with quote

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


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

PostPosted: Fri Dec 20, 2013 7:21 pm    Post subject: Reply with quote

That is not a BogusTrivia issue that I've seen before.

Quote:
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?

Quote:
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

Quote:
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
.
Back to top
View user's profile Send private message Visit poster's website
sanchezz
Voice


Joined: 20 Dec 2013
Posts: 4

PostPosted: Fri Dec 20, 2013 7:29 pm    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
sanchezz
Voice


Joined: 20 Dec 2013
Posts: 4

PostPosted: Fri Dec 20, 2013 7:48 pm    Post subject: Reply with quote

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


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

PostPosted: Fri Dec 20, 2013 8:38 pm    Post subject: Reply with quote

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
.
Back to top
View user's profile Send private message Visit poster's website
sanchezz
Voice


Joined: 20 Dec 2013
Posts: 4

PostPosted: Fri Dec 20, 2013 8:39 pm    Post subject: Reply with quote

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

Thanks again!
Back to top
View user's profile Send private message
SpiKe^^
Owner


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

PostPosted: Sat Dec 21, 2013 1:42 pm    Post subject: unix file permissions. Reply with quote

From http://www.dartmouth.edu/~rc/help/faq/permissions.html
Quote:
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
.
Back to top
View user's profile Send private message Visit poster's website
saliu
Voice


Joined: 09 Mar 2014
Posts: 2

PostPosted: Sun Mar 09, 2014 4:29 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Koo
Voice


Joined: 02 Apr 2010
Posts: 37

PostPosted: Wed Mar 19, 2014 8:34 am    Post subject: Reply with quote

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. Sad
Back to top
View user's profile Send private message
starr
Voice


Joined: 18 Mar 2007
Posts: 26
Location: Tennessee

PostPosted: Wed Mar 19, 2014 9:37 am    Post subject: Reply with quote

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?
_________________
Starr
www.dcs-computer-services.net
Back to top
View user's profile Send private message Visit poster's website
Koo
Voice


Joined: 02 Apr 2010
Posts: 37

PostPosted: Wed Mar 19, 2014 5:53 pm    Post subject: Reply with quote

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:
I am running eggdrop v1.6.21, on Linux 2.6.32-042stab084.17.

Taken from the bot. Hopefully that helps. Mr. Green
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Sat Mar 22, 2014 8:58 am    Post subject: Reply with quote

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.

Quote:

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


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

PostPosted: Sat Mar 22, 2014 6:34 pm    Post subject: Reply with quote

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
.
Back to top
View user's profile Send private message Visit poster's website
Koo
Voice


Joined: 02 Apr 2010
Posts: 37

PostPosted: Sun Mar 23, 2014 6:05 pm    Post subject: Reply with quote

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


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

PostPosted: Sun Mar 23, 2014 6:44 pm    Post subject: Reply with quote

This is the code responsible for checking if the settings file is available:
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  }
source $ttmp(temp)



Try bypassing the file check by editing that part of the script file to be more like:
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  }
#source $ttmp(temp)


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

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
.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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