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.
Old posts that have not been replied to for several years.
crazy-nic
Voice
Posts: 19 Joined: Wed Jul 02, 2003 12:44 am
Post
by crazy-nic » Wed Jul 02, 2003 12:49 am
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
Posts: 1452 Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway
Post
by user » Wed Jul 02, 2003 1:16 am
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.
crazy-nic
Voice
Posts: 19 Joined: Wed Jul 02, 2003 12:44 am
Post
by crazy-nic » Fri Jul 04, 2003 3:32 pm
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 ????
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Fri Jul 04, 2003 3:45 pm
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.
crazy-nic
Voice
Posts: 19 Joined: Wed Jul 02, 2003 12:44 am
Post
by crazy-nic » Sat Jul 05, 2003 7:45 am
so where can i unpack the .gz files????
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Sat Jul 05, 2003 8:11 am
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.
crazy-nic
Voice
Posts: 19 Joined: Wed Jul 02, 2003 12:44 am
Post
by crazy-nic » Sat Jul 05, 2003 2:41 pm
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?
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Sat Jul 05, 2003 3:38 pm
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 ?
crazy-nic
Voice
Posts: 19 Joined: Wed Jul 02, 2003 12:44 am
Post
by crazy-nic » Sun Jul 06, 2003 10:54 am
Thanks alot.. i wasnt quite sure about it. i'm new to this.