Hi Will and tstellar,
thank you for your reactions.
Will, I found the UEFA 20/21 definitions on the forum. There were several zips, I'm afraid I missed yours. I didn't know about your Kosovo update, so I included an update of Kosovo (with real names, but only one playable layer) in my zip. Thank you for your attachment, I'll look into it.
For now I'll stay with version 2.3.2, I prefer the readable definitions. Updated and tested versions of germany, switzerland and liechtenstein (playable!) are included in my zip.
Tstellar, these cup_uefa2024* files are generated, from three template xml's (CL, EL, ECL resp.). 55 European countries, so there are 165 files, created with a click.
These templates are quite close to the UEFA definitions, with tags not known to bygfoot. Example:
<!-- 16 domestic cup winners from associations 40–55 -->
<choose_team>
<qualified_as>CW</qualified_as>
<choose_team_rank_lower>55</choose_team_rank_lower>
<choose_team_rank_upper>40</choose_team_rank_upper>
<number_of_teams>1</number_of_teams>
<randomly>1</randomly>
<generate>1</generate>
</choose_team>
CW means cup winner of the national cup. This is Liechtensteins special entry...
Thank you for the link to the python script. I'll take a look, too. Maybe you should update the old readme, and talk about your latest changes/achievements .
Topic "Tokens and Cups": For now the code can handle LEAGUE1 and CUP1, which refer to the domestic Premier League winner / FA cup winner of the last season, respectively.
Most of the last season is wiped out at the beginning of a new season. Some remnants are preserved in the misc.xml file (in the save zip). It only contains useful stuff in the last week of the season, and includes the cup winners of the season. Introducing new tokens (CL1, EL1, ECL1) to the code, the international cup definitions could refer to the CL winner of the last season, when the teams of the new seasons are selected, and the fixtures are (partially) written.
The same way as now CUP1 and LEAGUE1 are used.
I must concede, I think, it really is no fun to dive into 20 year old C code. So I don't expect any actions. But, thumbs up tstellar, there are now glade files included in the latest version! Maybe the code handling CUP1 and LEAGUE1 is expandable.
Best Regards
bygkicker
N.B. The bygfoot xml reader is really,
really forgiving.