View previous topic :: View next topic |
Author |
Message |
Xpro Voice
Joined: 08 Feb 2005 Posts: 2
|
Posted: Wed Feb 09, 2005 4:29 am Post subject: need some help with stats.mod |
|
|
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  |
|
Back to top |
|
 |
^DooM^ Owner

Joined: 26 Aug 2003 Posts: 772 Location: IronForge
|
Posted: Wed Feb 09, 2005 7:02 am Post subject: |
|
|
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 |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Wed Feb 09, 2005 7:20 am Post subject: |
|
|
"language/stats.lang" <== missing file  _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
Back to top |
|
 |
KrzychuG Master

Joined: 16 Aug 2003 Posts: 306 Location: Torun, Poland
|
Posted: Wed Feb 09, 2005 10:50 am Post subject: |
|
|
In my oppinion stats module isn't loaded, probaly isn't installed/compiled too ;) _________________ Que? |
|
Back to top |
|
 |
YooHoo Owner

Joined: 13 Feb 2003 Posts: 939 Location: Redwood Coast
|
Posted: Wed Feb 09, 2005 1:26 pm Post subject: |
|
|
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 |
_________________
Johoho's TCL for beginners
 |
|
Back to top |
|
 |
Xpro Voice
Joined: 08 Feb 2005 Posts: 2
|
Posted: Wed Feb 09, 2005 1:27 pm Post subject: |
|
|
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  |
|
Back to top |
|
 |
YooHoo Owner

Joined: 13 Feb 2003 Posts: 939 Location: Redwood Coast
|
Posted: Wed Feb 09, 2005 4:58 pm Post subject: |
|
|
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? |
uh-huh _________________
Johoho's TCL for beginners
 |
|
Back to top |
|
 |
KiLL Voice
Joined: 02 Aug 2005 Posts: 1
|
Posted: Tue Aug 02, 2005 4:16 pm Post subject: |
|
|
is this problem solved yet
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 |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Tue Aug 02, 2005 4:37 pm Post subject: |
|
|
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 |
|
 |
testebr Halfop
Joined: 01 Dec 2005 Posts: 86
|
Posted: Thu Dec 25, 2008 9:41 pm Post subject: |
|
|
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 |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2854
|
Posted: Mon Dec 29, 2008 6:40 am Post subject: |
|
|
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 |
|
 |
|