SWOS team file structure

- General file structure:
A team file with n teams sizes 2 + 684 * n bytes.

hex position
0
1
2
2+2AC
...
2+(n-1)*2AC
content
00
n
team 1
team 2
...
team n
number of bytes
1
1
684
684
...
684
notes
number of teams

- Structure of the team:
Each team has 16 players and sizes 76 + 38*16 = 684 bytes

hex position
0
1
2
3
4
5
18
19
1A
1B
1C
1D
1E
1F
20
21
22
23
24
3D
4C
...
286
content
nation
team number
swos general team number
00
team name
tactics
division
type
first color
second color
short color
socks color
type
first color
second color
short color
socks color
coach name
player position in file
player 1
...
player 16
number of bytes
1
1
2
1
19
1
1
5
5
25
15
38
...
38
notes
primary kit
secondary kit

- Structure of the player:
Each player sizes 38 bytes

hex position
0
1
2
3
1A
1B
1C
1D
1E
1F
20
21
22
23
24
25
content
nationality
00
number
player name
multi purpose
0000
-
passing
shooting
-
heading
tackling
-
ball control
speed
-
finishing
value
0
0
0
0
0
number of bytes
1
1
1
23
1
1
1
1
1
1
1
1
1
1
1
1
notes
first name-space -family name
used in career file

- Tables

Tactics
Hex code
Tactics name
00
4-4-2
01
5-4-1
02
4-5-1
03
5-3-2
04
3-5-2
05
4-3-3
06
4-2-4
07
3-4-3
08
sweep
09
5-2-3
0A
attack
0B
defed
0C
user a
0D
user b
0E
user c
0F
user d
10
user e
11
user f

Divisions
Hex code
Division
00
Premier
01
First
02
Second
03
Third
04
Non league

Kit type
Hex code
Type
00
Plain
01
Colored sleeves
02
Vertical
03
Horizontal

Multipurpose byte: field position (3 bit) + head type (2 bit) + unknown (3 bit)
Field position
Head type
Unknown
Binary code
Position
Binary code
Type
Binary code
000
goalkeeper
00
white skin, black hair
000
001
right back
01
white skin, blonde hair
001
010
left back
10
black skin, black hair
010
011
defender
11
undefined
011
100
right wing
100
101
left wing
101
110
midfielder
110
111
attacker
111

Color coding
Hex code
Color
00
gray
01
white
02
black
03
orange
04
red
05
blue
06
brown
07
light blue
08
green
09
yellow

Value Coding
Hex Code
Value
00
less than 25k
01
25k
02
30k
03
40k
04
50k
05
65k
06
75k
07
85k
08
100k
09
110k
0A
130k
0B
150k
0C
160k
0D
180k
0E
200k
0F
250k
10
300k
11
350k
12
450k
13
500k
14
550k
15
600k
16
650k
17
700k
18
750k
19
800k
1A
850k
1B
950k
1C
1M
1D
1.1M
1E
1.3M
1F
1.5M
20
1.6M
21
1.8M
22
1.9M
23
2M
24
2.25M
25
2.75M
26
3M
27
3.5M
28
4.5M
29
5M
2A
6M
2B
7M
2C
8M
2D
9M
2E
10M
2F
12M
30
15M
31
more than 15M

Nationality Codes
Hex
Code
SWOS
Code
FIFA
Code
Nationality           Hex
Code
SWOS
Code
FIFA
Code
Nationality           Hex
Code
SWOS
Code
FIFA
Code
Nationality          
00 ALB ALB Albania 40 CAN CAN Canada 80 IRN IRN Iran
01 AUT AUT Austria 41 BAR BRB Barbados 81 VIE VIE Vietnam
02 BEL BEL Belgium 42 ELS SLV El Salvador (nat) 82 MLY MAS Malaysia 
03 BUL BUL Bulgaria 43 SVC VIN St.Vincent - Grenad. 83 SAU KSA Saudi Arabia 
04 CRO CRO Croatia 44 ARG ARG Argentina 84 YEM YEM Yemen
05 CYP CYP Cyprus 45 BOL BOL Bolivia 85 KUW KUW Kuwait
06 TCH CZE Czech Republic 46 BRA BRA Brazil 86 LAO LAO Laos
07 DEN DEN Denmark 47 CHL CHI Chile 87 NKR PRK North Korea
08 ENG ENG England 48 COL COL Colombia 88 OMA OMA Oman
09 EST EST Estonia 49 ECU ECU Ecuador 89 PAK PAK Pakistan
0A FAR FRO Far Oer 4A PAR PAR Paraguay 8A PHI PHI Philippines
0B FIN FIN Finland 4B SUR SUR Surinam 8B CHN CHN China
0C FRA FRA France 4C URU URU Uruguay 8C SGP SIN Singapore
0D GER GER Germany 4D VEN VEN Venezuela 8D MAU MRI Mauritius
0E GRE GRE Greece 4E GUY GUY Guyana 8E MYA MYA Myanmar
0F HUN HUN Hungary 4F PER PER Peru 8F PAP PNG Papua New Guinea
10 ISL ISL Iceland 50 ALG ALG Algeria 90 TAD THA Thailand
11 ISR ISR Israel 51 SAF RSA South Africa 91 UZB UZB Uzbekistan
12 ITA ITA Italy 52 BOT BOT Botswana 92 QAT QAT Qatar
13 LAT LVA Latvia 53 BFS BFA Burkina Faso 93 UAE UAE United Arab Emirates
14 LIT LTU Lithuania 54 BUR BDI Burundi 94 AUS AUS Australia
15 LUX LUX Luxembourg 55 LES LES Lesotho 95 NZL NZL New Zealand
16 MLT MLT Malta 56 ZAI COD Congo,D.R.(Zaire) 96 FIJ FIJ Fiji
17 HOL NED Holland 57 ZAM ZAM Zambia 97 SOL SOL Solomon Islands
18 NIR NIR Northern Ireland 58 GHA GHA Ghana 98 CUS   Custom
19 NOR NOR Norway 59 SEN SEN Senegal        
1A POL POL Poland 5A CIV CIV Ivory Coast        
1B POR POR Portugal 5B TUN TUN Tunisia        
1C ROM ROM Romania 5C MLI
MLI Mali        
1D RUS RUS Russia 5D MDG MAD Madagascar        
1E SMR SMR San Marino 5E CMR CMR Cameroon        
1F SCO SCO Scotland 5F CHD CHA Chad        
20 SLO SVN Slovenia 60 UGA UGA Uganda        
21 SWE SWE Sweden 61 LIB LBR Liberia        
22 TUR TUR Turkey 62 MOZ MOZ Mozambique        
23 UKR UKR Ukraine 63 KEN KEN Kenia        
24 WAL WAL Wales 64 SUD SUD Sudan        
25 YUG YUG Serbia Montenegro 65 SWA SWZ Swaziland        
26 BLS BLR Belarus 66 ANG ANG Angola        
27 SVK SVK Slovakia 67 TOG TOG Togo        
28 ESP ESP Spain 68 ZIM ZIM Zimbabwe        
29 ARM ARM Armenia 69 EGY EGY Egypt        
2A BOS BIH Bosnia Herzegovina 6A TAN TAN Tanzania        
2B AZB AZE Azerbaijan 6B NIG NGA Nigeria-Niger(NIG)        
2C GEO GEO Georgia 6C ETH ETH Ethiopia        
2D SWI SUI Switzerland 6D GAB GAB Gabon        
2E IRL IRL Rep.Ireland 6E SIE SLE Sierra Leone        
2F MAC MKD FYR Macedonia 6F BEN BEN Benin        
30 TRK TKM Turkmenistan 70 CON CGO Congo        
31 LIE LIE Liechtenstein 71 GUI GUI Guinea        
32 MOL MDA Moldova 72 SRL   Sri Lanka        
33 CRC CRC Costa Rica 73 MAR MAR Morocco        
34 SAL SLV El Salvador 74 GAM GAM Gambia        
35 GUA GUA Guatemala 75 MLW MWI Malawi        
36 HON HON Honduras - Hong Kong(HKG) 76 JAP JPN Japan        
37 BHM BAH Bahamas 77 TAI TPE Taiwan (Taipei)        
38 MEX MEX Mexico 78 IND IND India - Indonesia(IDN)        
39 PAN PAN Panama 79 BAN BAN Bangladesh        
3A USA USA U.S.A. 7A BRU BRU Brunei        
3B BAH BHR Bahrain 7B IRA IRQ Iraq - Iran(IRN)        
3C NIC NCA Nicaragua 7C JOR JOR Jordan        
3D BER BER Bermuda 7D SRI SRI Sri Lanka        
3E JAM JAM Jamaica 7E SYR SYR Syria        
3F TRI TRI Trinidad Tobago 7F KOR KOR South Korea