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.

mysqltcl - for dummies

Discussion of Eggdrop's code and module programming in C.
Post Reply
User avatar
TC^^
Voice
Posts: 22
Joined: Tue Jul 05, 2005 11:50 am

mysqltcl - for dummies

Post by TC^^ »

Is it at all possible to install mysqltcl if you don't have any basic understanding of compiling and have no clue what to to with all the files that comes with mysqltcl-3.01.tar.gz?!

I've gone over alot of text and helpfiles, mostly aquired at http://www.xdobry.de/, and used hours browsing this forum to find any usefull help, but I can't find enough help to install mysqltcl with my experience.

I have yet to find a really simple explanation, a step by step guide if you will, suitable for someone with nearly no experience with Linux, and what not.. :?

Can someone direct me to a guide, documentation or some kind of explanation I can use?.. or should I just give up :(
User avatar
TC^^
Voice
Posts: 22
Joined: Tue Jul 05, 2005 11:50 am

Post by TC^^ »

Well.. I got this far..

Finally figured out how to compile the .so file.. But now I have run into a wall again.. I have compiled the libmysqltcl3.01.so file, and copied it to the module directory of the bot.. Then I've added "loadmodule libmysqltcl3.01.so" to the bots config file.

The bot then starts with this message:
Eggdrop v1.6.17 (C) 1997 Robey Pointer (C) 2004 Eggheads
[15:57] --- Loading eggdrop v1.6.17 (Fri Mar 3 2006)
[15:57] Listening at telnet port 11130 (all).
[15:57] Module loaded: dns
[15:57] Module loaded: channels
[15:57] Module loaded: server
[15:57] Module loaded: ctcp
[15:57] Module loaded: irc
[15:57] Module loaded: notes (with lang support)
[15:57] Module loaded: console (with lang support)
[15:57] Module loaded: blowfish
[15:57] Module loaded: uptime
[15:57] Can't load modules libmysqltcl3.01: No start function defined.
[15:57] oidentd.tcl loaded
[15:57] Userinfo TCL v1.07 loaded (URL BF GF IRL EMAIL DOB PHONE ICQ).
[15:57] use '.help userinfo' for commands.
[15:57] Userfile loaded, unpacking...
[15:57] === Terabot1: 1 channels, 6 users.
Launched into the background (pid: 5336)
[15:57] Can't load modules libmysqltcl3.01: No start function defined.

Did I skip some important steps in installing the module? Or does it need some more information in the config file?

Can someone please help?
K
Kappa007
Voice
Posts: 38
Joined: Tue Jul 26, 2005 9:53 pm

Post by Kappa007 »

Hehe I got no clue about MySQLTCL but i HIGHLY doubt you load it as module ;)

I'd say you compile and install it and then use "package require mysqltcl" or something in your Tcl script....
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

have you added in the .conf file 'loadmodule libmysqltcl' to load the module? To use a module you'll have to load it first Kappa007.
Once the game is over, the king and the pawn go back in the same box.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

libmysqltcl is not an eggdrop module but a Tcl extension; it should have been installed where your Tcl libraries are when you did make install; then you load it in your scripts by declaring:

Code: Select all

package require mysqltcl
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
User avatar
TC^^
Voice
Posts: 22
Joined: Tue Jul 05, 2005 11:50 am

Post by TC^^ »

It's working .. Thanks alot for the help..
Post Reply