HOW THE PROGRAM QUALIFIES TEAMS FOR EUROPEAN CUPS

Before all, at offset 14e1f8 we have the routine that, at the end of the career year, proccesses all the leagues and the cups:

2e 00 01 02 4c 03 04 05 06 07 08 0a 0b 0c 0d 0e 0f 10
11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 4e
22 23 24 25 26 27 28 29 2a 45 4f 2b 2d 2e 30 31 32 40
41 42 47 4d 33 3c 49 37 43 4b 2c 3e 00 01 4c 02 03 04
05 06 07 08 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15 16 17
18 19 1a 1b 1c 1d 1e 1f 20 21 4e 22 23 24 25 26 27 28
29 2a 4f 45 2b 2d 2e 30 31 32 40 41 42 47 4d 33 3c 49
4b 37 43 2c 3e ff

It's simply a list of alla countries present in Swos. Countries with national cup are repeated.

Following, at 14e20a there's Champions League routine. It's a list of european countries (43) ordered by importance:

0e 14 23 08 02 0d 1d 1e 1f 29 01 03 06 07 0f 19 1c 21
24 25 26 10 0c 00 11 05 1b 1a 18 12 17 04 0a 0b 13 15
16 20 22 27 28 4c 4e

I told "ordered by importance" because at 14e27c (before Champions League routine) you'll find:

a0 94 00 00 04 00 04 00 a4 94 00 00 06 00 05 00 aa 94
00 00 0b 00 05 00 b5 94 00 00 16 00 02 00.

Explanation. The program tells: "from a0 94 to a4 94 (= first 4 countries of Champions) qualifies always all the teams the won leagues of this 4 countries (04 00 04) for the next year's Champions League. And then "from a4 94 to aa 94 (=following six countries) qualifies for Champions 5 of the 6 teams that won leagues in his countries". And so on. You can notice that
04 + 06 + 0b + 16 = 43 in decimal (total of European countries in Swos) and
04 + 05 + 05 + 02 = 16, the teams that partecipate at the Champions League!

The same functioning for Cup Winners Cup at 14e2ef:

0e 14 23 08 02 0d 1d 1e 1f 29 01 03 06 07 0f 19 1c 21
24 25 26 10 0c 00 11 05 1b 1a 18 12 17 04 0a 0b 13 15
16 20 22 27 28 4c 4e

and for Uefa Cup at 14e33e:

0e 0e 0e 0e 14 14 14 14 23 23 23 23 08 08 08 02 02 02
0d 0d 0d 1d 1d 1d 1e 1e 1e 1f 1f 1f 29 29 29 01 01 03
03 06 06 07 07 0f 0f 19 19 1c 1c 21 21 24 24 25 25 26
26 10 0c 00 11 05 1b 1a 18 12 17 04 0a 0b 13 15 16 20
22 27 28 4c 4e ff

In Uefa cup you can notice that there are countries repeated (es. Turkey, "25 25"). The reason is simple: Italy qualifies 4 teams for Uefa, so we have "14 14 14 14" (and 14 is thenumber of italian data file...), Turkey 2 (so "25 25").

Based on this logic, I tried to substitute european teams with south american teams in Champions League, to convert this cup in Libertadores, but after 1 year of career the game hangs on New Zeland league.

Copyright © by Swos Working Group