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.

Wont Close

Old posts that have not been replied to for several years.
Locked
R
Rav^4u
Voice
Posts: 19
Joined: Thu Jun 05, 2003 1:16 pm

Wont Close

Post by Rav^4u »

Just a quick one.. using the rcon.tcl script files..

Code: Select all

  global pwf_serverip pwf_serverpassword pwf_maxpl pwf_active pwf_teamaserver pwf_teambserver pwf_serverholder pwf_pickupchan pwf_shutupchan pwf_lastgame pwf_players rcon_password1 rcon_address1 rcon_port1 rcon_path pwf_maptopic
  set rcon [open "|$rcon_path/rcon $rcon_password1 $rcon_address1 $rcon_port1 \"sv_password $pwf_serverpassword\"" r]
for example.. when that line is run the rco function does not close, its shows as [rcon <defunct>]

Now in the rcon.tcl i think he uses $close rcon but not sure if that works.. any ideas?
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

This looks a lot creepy. The author of it should make just a global pwf and add the rest of the variables to it like pwf(something), pwf (somethin_else) and so on and call just call globaly one single pwf. As for your problem, the close should be close $rcon.
Once the game is over, the king and the pawn go back in the same box.
R
Rav^4u
Voice
Posts: 19
Joined: Thu Jun 05, 2003 1:16 pm

Post by Rav^4u »

thanks for that.. the pwf script is massive and no 2 proc need the same globals from what i see does that make sense?
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

How would be more *easier* to carry 1000 pages or carry just one book?
Once the game is over, the king and the pawn go back in the same box.
R
Rav^4u
Voice
Posts: 19
Joined: Thu Jun 05, 2003 1:16 pm

Post by Rav^4u »

wasnt questiong just saying.. jeesh.. whats a book? that like a laptop?
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

I see that you've successfully failed to understand my joke, anyway, it will do the stuff in the proc a lot faster and will consume mem less than it dose right now.
Once the game is over, the king and the pawn go back in the same box.
R
Rav^4u
Voice
Posts: 19
Joined: Thu Jun 05, 2003 1:16 pm

Post by Rav^4u »

lol wasnt a very good one.. :D

ok ill take your word for it and attempt to change it over, anything for efficiency and speed.. Thanks
C
Chack

Post by Chack »

Hi,

I am trying to make a tcl that connects to a Q3 server rcon, so I can enter rcon commands via the eggdrop. Can you please tell me where you got that rcon.tcl you use for your script, becasue I am sure it contains the general stuff I need to rcon connect to a q3 server.

I've got one for mirc, but I have no idea how this socket stuff works in tcl, and this file would save me days of reading online tutorials.
Locked