Question about LEAGUE1 and CUP1
Posted: Sat Dec 12, 2020 2:25 am
In cup definitions, what is the advantage of using LEAGUE1 and CUP1 for the sid instead of using the league or cup name (e.g. england1)?
a football (a.k.a. soccer) management game
https://bygfoot.sourceforge.io/forum/
Hello tstellar. To answer your question, it basically comes down to a simple answer. If you were to use the references of LEAGUE1 and/or CUP1 in a cup file definition, it would potentially allow you to reuse that cup definition for multiple country definitions. All you would need to do is reference the same filename given to that cup file and it could apply to as many different country definitions that its parameters would apply to. Now if you were to use instead a specific league or cup sid within a particular cup file definition, that cup file would then only be specific to that particular country definition and could most likely not be used by another country definition, in its current form.
Now onto billys_boots' reply. As it appears he is referencing some files that I worked on, his answer is slightly wrong and can use a little more explanation. In reference to the <LEAGUE1> tag, it goes along with the <start_idx> and <end_idx> tags to select any number of teams from the first league file listed in the country_sid.xml file for the country definition you are playing. So for example, if you were playing the English definitions, the league files from the country_england.xml file in order would be: england1, england2, england3, etc.. The <LEAGUE1> tag would make reference to the first league file listed in the <league> section/area, which in this case would be england1. So any team selections you may make with the <start_idx> and <end_idx> tags would be taken from england1, in this example. You could have the top 2 teams or the bottom 2 teams. It all depends on which teams you wanted to select.billys_boots wrote: As I understand it, using <LEAGUE1> tag means the current champions of the league you are playing is used in international competitions, like the UEFA Champions League. The same applies to <CUP1> or <CUP2> tags where <CUP1> usually refers to the national cup and <CUP2> is the national League Cup, although this is not set in stone and depends on where the tag for that cup is placed in the country file.
I have found that leaving <LEAGUE1> or <CUP1> tag out of a UEFA definition means the teams from the league you are playing are omitted even though the country <choose_team> code is present.