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 

need some help with stats.mod

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Modules & Programming
View previous topic :: View next topic  
Author Message
Xpro
Voice


Joined: 08 Feb 2005
Posts: 2

PostPosted: Wed Feb 09, 2005 4:29 am    Post subject: need some help with stats.mod Reply with quote

can somone help me with this one? :

Tcl error in file 'eggdrop.conf':
[23:27] invalid command name "loadslang"
while executing
"loadslang language/stats.lang"
(file "scripts/stats.conf" line 65)
invoked from within
"source scripts/stats.conf"
(file "eggdrop.conf" line 1331)
[23:27] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)


it should be ok, but i still get this error Crying or Very sad
Back to top
View user's profile Send private message
^DooM^
Owner


Joined: 26 Aug 2003
Posts: 772
Location: IronForge

PostPosted: Wed Feb 09, 2005 7:02 am    Post subject: Reply with quote

There is something wrong with stats.conf in your scripts directory. Make sure you have filled everything out properly. Also What editor did you use to alter the config file? Dont use MS Word to edit configs or scripts use Notepad or a decent editor such as editplus.
_________________
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
Back to top
View user's profile Send private message Visit poster's website
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Wed Feb 09, 2005 7:20 am    Post subject: Reply with quote

"language/stats.lang" <== missing file Question
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
KrzychuG
Master


Joined: 16 Aug 2003
Posts: 306
Location: Torun, Poland

PostPosted: Wed Feb 09, 2005 10:50 am    Post subject: Reply with quote

In my oppinion stats module isn't loaded, probaly isn't installed/compiled too ;)
_________________
Que?
Back to top
View user's profile Send private message Visit poster's website
YooHoo
Owner


Joined: 13 Feb 2003
Posts: 939
Location: Redwood Coast

PostPosted: Wed Feb 09, 2005 1:26 pm    Post subject: Reply with quote

this is the error that is returned if stats.mod was improperly loaded... You must copy the language files into your bot's language directory... and ffs, read that lil document called "README"...it is all explained well enough there...example:
Code:
cd eggdrop1.6.17/src/mod/stats.mod/language
cp * ~/yourbotdirectory/language

_________________
Mr. Green
Johoho's TCL for beginners
Mr. Green
Back to top
View user's profile Send private message Send e-mail
Xpro
Voice


Joined: 08 Feb 2005
Posts: 2

PostPosted: Wed Feb 09, 2005 1:27 pm    Post subject: Reply with quote

used pico to edit it and i precompiled it and installed it on an other linuxbox (stats.mod works fine there)
after that i uploaded it to my shellserver (i cant compile it there, C is missing)
can this be the problem?

and i copied the file to Wink
Back to top
View user's profile Send private message
YooHoo
Owner


Joined: 13 Feb 2003
Posts: 939
Location: Redwood Coast

PostPosted: Wed Feb 09, 2005 4:58 pm    Post subject: Reply with quote

Installation instructions for stas.mod1.3.2.........
Quote:
Installation:
-------------

Stats.mod will work with eggdrop1.6.x and eggdrop1.4.x.

The following instructions assume, ~/eggdrop1.6/ is the directory
where you installed your eggdrop from. (of course, other source dirs
will work as well)
Unfortunately, you need to compile stats.mod within your eggdrop source,
so if you removed your original compile directory, you'll have to
compile the whole bot again... sorry.

Put stats.mod.1.3.2.tar.gz in ~/eggdrop1.6/src/mod/,
and unpack it (tar xfz stats.mod.1.3.2.tar.gz). Change directory
back to ~/eggdrop1.6/. Type 'make config' (on eggdrop 1.4, you can skip
that part) Type 'make', wait until compiling
is done and use 'make install' to install the bot and stats.mod.

Don't forget to copy the language files from ~/eggdrop1.6/src/mod/stats.mod/ to
~/eggdrop/language/ !

All settings can be found in ~/eggdrop1.6/src/mod/stats.mod/stats.conf
I suggest to copy it to your eggdrop directory (probably ~/eggdrop/),
edit it to fit your needs and put a 'source stats.conf' at the end of
your eggdrop config file. This will execute the config file with every
restart or rehash.
Xpro wrote:
used pico to edit it and i precompiled it and installed it on an other linuxbox (stats.mod works fine there)
after that i uploaded it to my shellserver (i cant compile it there, C is missing)
can this be the problem?
Mr. Green uh-huh
_________________
Mr. Green
Johoho's TCL for beginners
Mr. Green
Back to top
View user's profile Send private message Send e-mail
KiLL
Voice


Joined: 02 Aug 2005
Posts: 1

PostPosted: Tue Aug 02, 2005 4:16 pm    Post subject: Reply with quote

is this problem solved yet Razz
today i was compiling eggdrop and i got the same problem, so i "googled" and found this post... excatly the same...
i did everithing excatly as it should... i did this many times before on different shells and did not have any problems..
so can some on please point me or tell me what to do... ?
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Tue Aug 02, 2005 4:37 pm    Post subject: Reply with quote

there is no problem to solve, you need to do a proper stats.mod install

also make sure that [loadslang] command is used after module is loaded (loadmodule stats)
Back to top
View user's profile Send private message Visit poster's website
testebr
Halfop


Joined: 01 Dec 2005
Posts: 86

PostPosted: Thu Dec 25, 2008 9:41 pm    Post subject: Reply with quote

My eggdrop.conf:

Code:
...
loadmodule stats

######### TCLS #########
set error ""
foreach script {
stats.conf
} {
catch {source scripts/$script} error
if {$error != ""} {putcmdlog "\002SCRIPT ERROR\002:$script\: $::errorInfo"}
}
....


And here my stats.conf:

Code:
# reset old slangs before we load the new ones...
resetslang

# load the default language
loadslang language/stats.lang

##  load additional languages
loadslang pt-br language/stats.pt-br.lang
#
## assign a language to a channel
setchanslang #channel pt-br


But stop with same error:

Code:
[23:32:52] <CoolStatsBeta> Rehashing.
[23:32:52] <CoolStatsBeta> [23:32] Rehashing ...
[23:32:52] <CoolStatsBeta> [23:32] * IDENTITY CHANGE: unixfire1 -> CoolStats
[23:32:52] <CoolStatsBeta> [23:32] Listening at telnet port 5101 (bots).
[23:32:52] <CoolStatsBeta> [23:32] Listening at telnet port 5101 (users).
[23:32:52] <CoolStatsBeta> [23:32] Listening at telnet port 5101 (all).
[23:32:52] <CoolStatsBeta> [23:32] * IDENTITY CHANGE: CoolStats -> xxxxx
[23:32:52] <CoolStatsBeta> [23:32] Loading default slangfile: language/stats.lang
[23:32:52] <CoolStatsBeta> [23:32] Loading slangfile for pt-br: language/stats.pt-br.lang
[23:32:52] <CoolStatsBeta> [23:32] SCRIPT ERROR:stats.conf: errorInfo.txt
[23:32:52] <CoolStatsBeta> [23:32] Userfile loaded, unpacking...


The stats.mod is working fine, but all in default language (english).

And YES, my file stats.pt-br.lang is on correct folder ~/eggdrop/language

Any idea how to fix it?

Thanks
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2853

PostPosted: Mon Dec 29, 2008 6:40 am    Post subject: Reply with quote

The following piece of code is flawed:
Code:
catch {source scripts/$script} error
if {$error != ""} {putcmdlog "\002SCRIPT ERROR\002:$script\: $::errorInfo"}
}


Try something like this instead:
Code:
if {[catch {source scripts/$script} error]} {
 putcmdlog "\002SCRIPT ERROR\002:$script\: $error"}
}

_________________
NML_375, idling at #eggdrop@IrcNET
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 -> Modules & Programming 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