Blocktrix Forums
https://www.blocktrix.net/cgi-bin/Ya.cgi
Blocktrix >> Bugs >> /team error
https://www.blocktrix.net/cgi-bin/Ya.cgi?num=1153099412

Message started by scooter on 07/16/06 at 8:23pm

Title: /team error
Post by scooter on 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.

Title: Re: /team error
Post by strikelight on 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.

Title: Re: /team error
Post by strikelight on 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...

Title: Re: /team error
Post by strikelight on 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.

Title: Re: /team error
Post by scooter on 07/17/06 at 1:19am

Thank you, it worked. =)

Btw, is there a /unteam command or similar?

Title: Re: /team error
Post by scooter on 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.

Title: Re: /team error
Post by strikelight on 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.

Title: Re: /team error
Post by strikelight on 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...

Title: Re: /team error
Post by scooter on 07/21/06 at 7:28pm

Tks, it worked =)

Blocktrix Forums