UberGuy (FT)
02-13-2003, 09:26 PM
Right from my news page:
Time for another update to support.vl2 (http://scripts.tribalwar.com/uberguy/files/support/support.vl2). There was a bug introduced in the 02/10/03 version by an attempt to optimize code that stripped non-printing characters out of player names. Unfortunately I didn't test the function I used well enough - it could truncate long names and remove periods from them.
Thanks to Mad Monk (http://tao.tribesnetwork.com/monk/) for suggestions on how to fix it. Also at his request, there is a new callback in loadout.cs for when a new weapon is received.
You should grab this version if you have the support.vl2 with a last change date (in the changes.txt) of 02/09/03 or 02/10/03. Otherwise name tracking scripts you use (like UberTracker (http://scripts.tribalwar.com/uberguy/ubertracker.htm)) could be affected.
SupaKalel
02-14-2003, 05:31 AM
hope it works or i'll shoot u in the face! ;)
btw answer my pm.. its only been 2 days !!
Barbarian
02-16-2003, 02:02 AM
I ran across this stripMLcontrolchars function the other day, purely by accident while perusing the T2 function list on the depot, trying to make my Chatvotekick script work properly. It was the right function, but it was just luck that I saw it. Just wondering if anyone knows, is there any definitive index of T2 functions with descriptions (not just syntax) available anywhere?
What's the reverse of stripMLcontrolchars, to add them back in to look up players by stripped name with Team tracker or player support?
LouCypher
02-16-2003, 04:15 AM
Originally posted by Barbarian
Just wondering if anyone knows, is there any definitive index of T2 functions with descriptions (not just syntax) available anywhere?
http://www.egotron.com/torque/script.html
UberGuy (FT)
02-16-2003, 10:37 AM
Lou, that freaking rocks. Some of the descriptions in there are recursive, but that's the on;y function reference I've ever seen.
Bararian, there's no way to add the characters back in. The closest thing you can do is something I had to do in flag_tracker.cs. Take the base name of a player (the part with no tribe tags) and compare it to the base name of every other player in the player list. Player names are supposed to be unique in any given game, even if smurfs are allowed.
If there was enough need for it to be more efficient than that, I could provide an index in team_tracker based on the base name. Something like teamTracker.clientIdByBas eName[].
Mad Monk
02-16-2003, 11:05 AM
i got the function out of a t2 exe function list. where i got the function list i don't remember. thought it was from ZOD's site.
Barbarian
02-17-2003, 03:14 AM
Originally posted by UberGuy (FT)
Bararian, there's no way to add the characters back in. The closest thing you can do is something I had to do in flag_tracker.cs. Take the base name of a player (the part with no tribe tags) and compare it to the base name of every other player in the player list. Player names are supposed to be unique in any given game, even if smurfs are allowed.
I did the search through the player list thing. The time it takes isn't even noticable, don't think a more efficient method is needed.
I'm surprised no one noticed these control characters in names until recently...it would have made sense in the first place to write support functions to use the base names. Now if it gets changed it might mess up scripts..
Kaiten Commande
02-17-2003, 03:25 AM
Originally posted by Mad Monk
i got the function out of a t2 exe function list. where i got the function list i don't remember. thought it was from ZOD's site.
You can get a new list Here (http://www.kaiten.barrysworld.ne t/download.php?op=download&id=36&url=files/NewCommands.zip) The functions were grabbed by me & the EXE, Objects by Uberguy.
These are taken from the latest patch.
Mad Monk
02-17-2003, 10:19 AM
Originally posted by Barbarian
I did the search through the player list thing. The time it takes isn't even noticable, don't think a more efficient method is needed.
I'm surprised no one noticed these control characters in names until recently...it would have made sense in the first place to write support functions to use the base names. Now if it gets changed it might mess up scripts..
i think most of us noticed the control characters a long time ago. pj wrote some functions to rip them out for his stuff. personally, i never needed to strip them out until very recently.
UberGuy (FT)
02-17-2003, 11:16 AM
Yeah, it's really more convenient now to leave the control chars in. You receive the names with the control characters from most server calls, so it's easier to look things up with the control characters in there anyway.
Plus that usually causes them to print correctly. It's only when saving them to files that it gets handy to strip them.