[T2] Support.vl2 update and new script

UberGuy (FT)
02-10-2003, 02:30 PM
I've updated support.vl2 (scripts.tribalwar.com/uberguy/files/support/support.vl2) with a new utility script called flag_tracker.cs. Please note that if you grabbed the 02/09/03 release, please get the 02/10/03 version, as there was a bug in the 9th's release.

Flag tracker is a central point of information for all the information about the current state of the flag. Currently it supports only CTF, but I plan to quickly add support for TR2.

In CTF, you can query each team's flag status (At home, in field, or taken) and what player was responsible for the last state change (ie, who has the flag, or who dropped it).

It also provides callbacks for the following events: Flag taken from stand, flag dropped, flag returned, flag captured, and flag picked up midfield. While all of these callbacks except the midfield one were available in T2, they didn't have consistent data passed. Flag_tracker normalizes the data and passes it in a very simple data structure.

There were some additions to team_tracker.cs to support flag_tracker.cs. Nothing that was already there should have changed.

Finally, I've put out there a script called UberFlagSounds (scripts.tribalwar.com/uberguy/uberflagsounds.htm) that uses flag_tracker to provide unique sounds for all the flag status changes, and to make sure that the sounds are different for each team. Also midfield grabs now sound different from stand grabs. Note that this isn't a soundpack - it uses normal T2 sounds, though some are from other gametypes (Hunters and TR2).

This new support will also be used to add flag statistics to UberTracker.

Mad Monk
02-10-2003, 02:40 PM
i haven't looked in awhile, but while you're on the issue of normalizing flag data, why not include rabbit?

UberGuy (FT)
02-10-2003, 03:17 PM
Also a possiblilty. If people want it it's definitely do-able. The flag states in rabbit should work very similarly to the one in TR2, but perhaps even more simply.

_Gummeh_
02-13-2003, 03:20 AM
found some bugs, looks like length and periods dont register, might wanna take a look at it?

[i.e. - Gumz.1 shows up as 'Gumz1 takes the inferno flag']

Mad Monk
02-13-2003, 11:30 AM
Originally posted by _Gummeh_
found some bugs, looks like length and periods dont register, might wanna take a look at it?

[i.e. - Gumz.1 shows up as 'Gumz1 takes the inferno flag']

that was a bug in how the names were stripped. that's being taken care of.

_Gummeh_
02-13-2003, 04:14 PM
also has problems with length too, i was in server w/ someone from [smile] there name was cut off .. it was a pretty long name: 'mr^ArchAngel[smile]' would only show 'mr^ArchAngel[smi'

Mad Monk
02-13-2003, 06:56 PM
Originally posted by _Gummeh_
also has problems with length too, i was in server w/ someone from [smile] there name was cut off .. it was a pretty long name: 'mr^ArchAngel[smile]' would only show 'mr^ArchAngel[smi'

that's part of the name stripping method.

and as a note to everyone:

the strToPlayerName function only returns a name the length of the maximum name length in t2. that means if you use it on a long name + tag it'll truncate at the number of characters available for a name only.

it also rips out periods.

UberGuy (FT)
02-13-2003, 09:12 PM
Yep, Monk told me about this two days ago. I'm releasing the update fix tonight.