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.

How to Script TCL???

Old posts that have not been replied to for several years.
Locked
c
crazy-nic
Voice
Posts: 19
Joined: Wed Jul 02, 2003 12:44 am

How to Script TCL???

Post by crazy-nic »

hello... i'm new... i just want to ask how to script tcl can someone help me in it? and also what programe to script tcl?
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

http://tcl.tk/man/tcl8.4/TclCmd/Tcl.htm

I recommend reading and understanding everything on that page first (or at least try to) because it covers all the basics.

http://tcl.tk/man/tcl8.4/TclCmd/contents.htm has all the avaliable core commands explained in detail.

doc/tcl-commands.doc (in your eggdrop dir) contains a list of commands and variables added to the interpreter when running under eggdrop.

Looking at other people's scripts can also be a good way to learn. But there are incredible amounts of [censored] code released every day, so don't assume everything you see is done the "right" way.

Here's a page with a couple of useful links:
http://forum.egghelp.org/viewtopic.php?t=3870

Use your favorite (pure) text editor to create/edit the scripts.
c
crazy-nic
Voice
Posts: 19
Joined: Wed Jul 02, 2003 12:44 am

Post by crazy-nic »

okie... i got a slight idea on how it works... but i checked out some scripts but i cant read how to read those scripts??? espcially sme of those in egghelp.org???? with the extention *.tcl.gz ????
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

The .tcl.gz, .gz or .zip means that is packed in an archive and it should be unpacked before beeing used.
Once the game is over, the king and the pawn go back in the same box.
c
crazy-nic
Voice
Posts: 19
Joined: Wed Jul 02, 2003 12:44 am

Post by crazy-nic »

so where can i unpack the .gz files????
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Usualy in the scripts/ dir if you want them loaded on your eggdrop, to unpack a .tgz or tar.gz use: tar zxvf file, as for the .zip file unzip or gunzip file, or something like this anyway, depends on the OS.
Once the game is over, the king and the pawn go back in the same box.
c
crazy-nic
Voice
Posts: 19
Joined: Wed Jul 02, 2003 12:44 am

Post by crazy-nic »

u mean if the file name is like

hello.tgz

or

hello.tgz.gz

in the SSH programe just type tar hello.tgz

is this what u mean?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

no what he ment is that :

if a file is named hello.tgz or hello.tar.gz
type tar zxvf hello.tgz (in case of hello.tgz)
or tar zxvf hello.tar.gz (in case of hello.tar.gz)

if u have hello.gz type gunzip hello.gz
if u have hello.zip type unzip hello.zip

wasn't Ceasar clear enough ?
c
crazy-nic
Voice
Posts: 19
Joined: Wed Jul 02, 2003 12:44 am

Post by crazy-nic »

Thanks alot.. i wasnt quite sure about it. i'm new to this.
Locked