PC2 Team.tab

From PC2wiki
Jump to: navigation, search

The ICPC Registration system creates a file named 'PC2_Team.tab' containing the data needed to initialize PC² with the current ICPC contest registration information (teams, schools, etc.; see PC2_Team.tab). Regional Contest Directors and others with access to the ICPC Registration system can download this file and use it to initialize PC² (so that team names and such don't have to be entered into PC² manually).

However, the PC2_Team.tab file does not have any information assigning any specific PC² team numbers (PC² login names) to registered teams. To establish a mapping between ICPC registration data and PC² team numbers, a new file named '_PC2_Team.tab' must be created (note that this is the same file name but with a leading "_" character appended. The _PC2_Team.tab file is used to map/reference ICPC Team accounts to PC² account data.

Creating _PC2_Team.tab

The _PC2_Team.tab file is nearly identical to the PC2_Team.tab; the only difference is that in the _PC2_Team.tab there is a additional (new) column of data. The new column goes on the left (i.e. becomes the first column) and contains an ascending list of integers; these are interpreted by PC² as the PC² Team Numbers associated with the corresponding ICPC team.

Steps for creating a '_PC2_Team.tab' file are:

  1. download PC2_Team.tab from the ICPC Registration system
  2. copy PC2_Team.tab to _PC2_Team.tab
  3. add a new field (pc2 team number) in the front of each line

Example:

Before

24314	902	A	Hoos	University of Virginia	U Virginia	http://www.cs.virginia.edu	USA	Y

After

1 24314	902	A	Hoos	University of Virginia	U Virginia	http://www.cs.virginia.edu	USA	Y

Important note: The PC2_Teams.tab fields are tab (ASCII 8) delimited. For the example above the prepended field is a 1[Tab].

See Also