Blocktrix
Welcome, Guest. Please Login or Register.
12/04/26 at 7:27pm

Home Home Help Help Search Search Login Login Register Register


Pages: 1
/team error (Read 415 times)
scooter
New Member
*


Blocktrix Rules!

Posts: 18
/team error
07/16/06 at 8:23pm
 
When using a [ before the team, it doesn't work. It does work with every other character, but not with [ and {. I want to be on team [LøÅ] and i can't update that way. It's not so important, but i would like to use it.
 
Thanks.
Back to top
 
 
View Profile   IP Logged
strikelight
Administrator
*****


Make Me King

Posts: 288
Re: /team error
Reply #1 - 07/16/06 at 9:30pm
 
Hi,
 
open up aliases.tcl in your text editor,
look for the line:
Code:
  set arg [join [lrange [split $text] 1 end]]
 


 
and replace it with:
Code:
  set arg "\{[join [lrange [split $text] 1 end]]\}"
 


 
And then save and rehash or restart btrix.
 
Thanks.
Back to top
 
 

-=) StrikeLight
-=) Blocktrix developer
-=) www.blocktrix.org
Email View Profile WWW   IP Logged
strikelight
Administrator
*****


Make Me King

Posts: 288
Re: /team error
Reply #2 - 07/16/06 at 9:52pm
 
Actually.. that'll break some of the other aliases... might be a problem inherent in the program itself... I'll look into it...
Back to top
 
 

-=) StrikeLight
-=) Blocktrix developer
-=) www.blocktrix.org
Email View Profile WWW   IP Logged
strikelight
Administrator
*****


Make Me King

Posts: 288
Re: /team error
Reply #3 - 07/16/06 at 10:04pm
 
Ok, leave that line the way it was originally....
 
Instead change:
Code:
set alias(/slap) { plineact "slaps $arg with a large trout" }
set alias(gg) { plinemsg "good game $arg" }
set alias(/quit) { catch {disconnect} }
set alias(/rehash) { catch {rehash} }
set alias(/errorinfo) { alias:errorinfo }
set alias(/eval) { exec:tcl $arg }
set alias(/start) { startalias $arg } ;# See Below for startalias procedure
set alias(/install) { installscript $arg } ;# See Below for installscript procedure
set alias(/team) { teamalias $arg } ;# See Below for teamalias procedure
set alias(/ppm) { ppmalias $arg } ;# See Below for ppmalias procedure
 


 
To:
Code:
set alias(/slap) { plineact {slaps $arg with a large trout} }
set alias(gg) { plinemsg {good game $arg} }
set alias(/quit) { catch {disconnect} }
set alias(/rehash) { catch {rehash} }
set alias(/errorinfo) { alias:errorinfo }
set alias(/eval) { exec:tcl $arg }
set alias(/start) { startalias $arg } ;# See Below for startalias procedure
set alias(/install) { installscript $arg } ;# See Below for installscript procedure
set alias(/team) { teamalias {$arg} } ;# See Below for teamalias procedure
set alias(/ppm) { ppmalias {$arg} } ;# See Below for ppmalias procedure
 


 
Thanks.
Back to top
 
 

-=) StrikeLight
-=) Blocktrix developer
-=) www.blocktrix.org
Email View Profile WWW   IP Logged
scooter
New Member
*


Blocktrix Rules!

Posts: 18
Re: /team error
Reply #4 - 07/17/06 at 1:19am
 
Thank you, it worked. =)
 
Btw, is there a /unteam command or similar?
Back to top
 
 
View Profile   IP Logged
scooter
New Member
*


Blocktrix Rules!

Posts: 18
Re: /team error
Reply #5 - 07/17/06 at 12:01pm
 
Ok, i got another problem now. I can't use the command '/team list [LøÅ]' (for example) on tetridome.com. Before changing what you said it worked normally. Now it update the team with 'list [LøÅ]'.
 
Thanks.
Back to top
 
 
View Profile   IP Logged
strikelight
Administrator
*****


Make Me King

Posts: 288
Re: /team error
Reply #6 - 07/17/06 at 5:41pm
 
Change the alias in aliases.tcl from "/team" to "/t" or something else then, to avoid conflicting commands with your server of choice.
Back to top
 
 

-=) StrikeLight
-=) Blocktrix developer
-=) www.blocktrix.org
Email View Profile WWW   IP Logged
strikelight
Administrator
*****


Make Me King

Posts: 288
Re: /team error
Reply #7 - 07/17/06 at 10:04pm
 
Oh, also, for /unteam, you'll need to create another alias....
 
near the top of aliases.tcl for example:
Code:
set alias(/unteam) { unteam }
 


 
and then later down somewhere...
Code:
proc unteam {} {
  if {[catch {setteam ""} err]} {
    plinelog "Error: $err"
  }
}
 


 
 
Enjoy...
Back to top
 
 

-=) StrikeLight
-=) Blocktrix developer
-=) www.blocktrix.org
Email View Profile WWW   IP Logged
scooter
New Member
*


Blocktrix Rules!

Posts: 18
Re: /team error
Reply #8 - 07/21/06 at 7:28pm
 
Tks, it worked =)
Back to top
 
 
View Profile   IP Logged
Pages: 1