| View previous topic :: View next topic |
| Author |
Message |
sanchezz Voice
Joined: 20 Dec 2013 Posts: 4
|
Posted: Fri Dec 20, 2013 3:46 pm Post subject: BogusTrivia issues |
|
|
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 |
|
 |
SpiKe^^ Owner

Joined: 12 May 2006 Posts: 792 Location: Tennessee, USA
|
Posted: Fri Dec 20, 2013 7:21 pm Post subject: |
|
|
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 |
|
 |
sanchezz Voice
Joined: 20 Dec 2013 Posts: 4
|
Posted: Fri Dec 20, 2013 7:29 pm Post subject: |
|
|
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 |
|
 |
sanchezz Voice
Joined: 20 Dec 2013 Posts: 4
|
Posted: Fri Dec 20, 2013 7:48 pm Post subject: |
|
|
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 |
|
 |
SpiKe^^ Owner

Joined: 12 May 2006 Posts: 792 Location: Tennessee, USA
|
Posted: Fri Dec 20, 2013 8:38 pm Post subject: |
|
|
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 |
|
 |
sanchezz Voice
Joined: 20 Dec 2013 Posts: 4
|
Posted: Fri Dec 20, 2013 8:39 pm Post subject: |
|
|
Will do. I'm heading home now, but I'll check it when I get back to work Monday.
Thanks again! |
|
| Back to top |
|
 |
SpiKe^^ Owner

Joined: 12 May 2006 Posts: 792 Location: Tennessee, USA
|
Posted: Sat Dec 21, 2013 1:42 pm Post subject: unix file permissions. |
|
|
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 |
|
 |
saliu Voice
Joined: 09 Mar 2014 Posts: 2
|
Posted: Sun Mar 09, 2014 4:29 pm Post subject: |
|
|
| 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 |
|
 |
Koo Voice
Joined: 02 Apr 2010 Posts: 37
|
Posted: Wed Mar 19, 2014 8:34 am Post subject: |
|
|
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.  |
|
| Back to top |
|
 |
starr Voice

Joined: 18 Mar 2007 Posts: 26 Location: Tennessee
|
Posted: Wed Mar 19, 2014 9:37 am Post subject: |
|
|
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 |
|
 |
Koo Voice
Joined: 02 Apr 2010 Posts: 37
|
Posted: Wed Mar 19, 2014 5:53 pm Post subject: |
|
|
| 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.  |
|
| Back to top |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Sat Mar 22, 2014 8:58 am Post subject: |
|
|
| 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 |
|
 |
SpiKe^^ Owner

Joined: 12 May 2006 Posts: 792 Location: Tennessee, USA
|
Posted: Sat Mar 22, 2014 6:34 pm Post subject: |
|
|
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 |
|
 |
Koo Voice
Joined: 02 Apr 2010 Posts: 37
|
Posted: Sun Mar 23, 2014 6:05 pm Post subject: |
|
|
| 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.  |
|
| Back to top |
|
 |
SpiKe^^ Owner

Joined: 12 May 2006 Posts: 792 Location: Tennessee, USA
|
Posted: Sun Mar 23, 2014 6:44 pm Post subject: |
|
|
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 |
|
 |
|