This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

need some help with stats.mod

Discussion of Eggdrop's code and module programming in C.
Post Reply
X
Xpro
Voice
Posts: 2
Joined: Tue Feb 08, 2005 6:31 pm

need some help with stats.mod

Post by Xpro »

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 :cry:
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

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
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

"language/stats.lang" <== missing file :?:
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
KrzychuG
Master
Posts: 306
Joined: Sat Aug 16, 2003 2:51 pm
Location: Torun, Poland
Contact:

Post by KrzychuG »

In my oppinion stats module isn't loaded, probaly isn't installed/compiled too ;)
Que?
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

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: Select all

cd eggdrop1.6.17/src/mod/stats.mod/language
cp * ~/yourbotdirectory/language
X
Xpro
Voice
Posts: 2
Joined: Tue Feb 08, 2005 6:31 pm

Post by Xpro »

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:
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

Installation instructions for stas.mod1.3.2.........
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?
:mrgreen: uh-huh
K
KiLL
Voice
Posts: 1
Joined: Tue Aug 02, 2005 4:00 pm

Post by KiLL »

is this problem solved yet :P
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... ?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

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)
t
testebr
Halfop
Posts: 86
Joined: Thu Dec 01, 2005 12:22 pm

Post by testebr »

My eggdrop.conf:

Code: Select all

...
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: Select all

# 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: Select all

[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
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

The following piece of code is flawed:

Code: Select all

catch {source scripts/$script} error
if {$error != ""} {putcmdlog "\002SCRIPT ERROR\002:$script\: $::errorInfo"}
} 
Try something like this instead:

Code: Select all

if {[catch {source scripts/$script} error]} {
 putcmdlog "\002SCRIPT ERROR\002:$script\: $error"}
} 
NML_375
Post Reply