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 

MEL Eggdrop Logger

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
ron
Voice


Joined: 19 Dec 2008
Posts: 6

PostPosted: Thu Jan 01, 2009 3:23 pm    Post subject: MEL Eggdrop Logger Reply with quote

Hey all, I was wondering if someone can help me with an error message im getting. I just installed the latest MEL eggdrop logger V2 and for some reason when I go to set the channel for logging I get the following error:

Tcl error [::mel::dcc]: couldn't open "C:/DALnet_Gamebot/scripts/mel/logs/ohio.log": no such file or directory

When I try to change a setting I get:
[02:22pm] .mel rotation 7
14:22] #playa# mel rotation
[14:22] mEL 2.0 - Disabling mAC mode...
[14:22] mEL 2.0 - No rotation date found - Binding new timer (logfile switcher)
[14:22] Tcl error [::mel::dcc]: couldn't open "C:/DALnet_Gamebot/scripts/mel/settings.mel": no such file or directory

When I boot up the windrop I get:
[14:18] mEL 2.0 - C:/DALnet_Gamebot/scripts/mel exists and is a directory... OK.
[14:18] mEL 2.0 - C:/DALnet_Gamebot/scripts/mel/logs exists and is a directory... OK.
[14:18] mEL 2.0 - playa is a valid user on this bot... OK.
[14:18] mEL 2.0 - No channels defined. Use +chan first. Unable to add datestamp in logfile.
<OhioBOT> [14:18] mEL 2.0 successfully initialized...

So, as you can see for some reason it is recognizing that the file directories exist, but it wont add a datestamp in the logfile, and I cant change any settings. Its like it knows the directories exist but doesnt believe itself, lol. Any help would be greatly appreciated. Also, I can load MEL v 1.5 with no problems, but the text is all together with no spaces, so I though I would update it and came across these problems. Thanks!

--------
1/1/09 - its like it is not creating any of the log files or settings files when the script installs. Any ideas?
Back to top
View user's profile Send private message Yahoo Messenger
Nimos
Halfop


Joined: 20 Apr 2008
Posts: 80

PostPosted: Thu Jan 01, 2009 8:29 pm    Post subject: Reply with quote

i had problems with my "script testing windrop" too...

but, how about replacing the "/" in your paths with "\"?
Windows uses this for foldernames!

if that does not work, try to take a short path:
If your windrop is in C:\Dalnet_Gamebot\ change the path to "scripts\mel\"
Back to top
View user's profile Send private message
incith
Master


Joined: 23 Apr 2005
Posts: 275
Location: Canada

PostPosted: Fri Jan 02, 2009 12:19 am    Post subject: Reply with quote

/ is actually correct, Tcl (windows) will read this properly.

You can even run into problems if you use "\" instead of "\\" in settings, if you want \ in your paths. Personally in my scripts that require paths I regsub \ (well, "\\") to /, and then regsub // to /\\ (retains escapes basically, if you had c:\foo\\#channel.log for example, you would get c:/foo//#channel.log in the first regsub, and then c:/foo/\#channel.log after the second).

It is also how Windrop/Tcl set its working directory:
a windrop wrote:
(21:54:25) <incith> .tcl pwd
(21:54:25) <vistatant> Tcl: C:/windrop


I can't really be of further help, I used to run this script but then I just went back to eggdrops logfiles.
_________________
; Answer a few unanswered posts!
Back to top
View user's profile Send private message
ron
Voice


Joined: 19 Dec 2008
Posts: 6

PostPosted: Fri Jan 02, 2009 2:07 pm    Post subject: Reply with quote

Thank you both for the replies. I did finally get this script to work after a few days of messing around with it. I got the idea from both Nimos (short path) and incith (/ path separator is correct).

Quote:
if that does not work, try to take a short path:
If your windrop is in C:\Dalnet_Gamebot\ change the path to "scripts\mel\"


All I did was replace my full path:
C:/DALnet_Gamebot/scripts/mel
C:/DALnet_Gamebot/scripts/mel/logs

With the following
"scripts/mel"
"scripts/mel/logs"
(with the "'s, and the /'s type path separator)

And it worked like a charm. Not sure why it wouldnt work with the full path because it recognized it...but bottom line is that it is fixed and you have to use a short path like Nimos stated. Thanks again!!!
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help 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