A while ago I spent some time playing with the new feature that allows teams to be brought into a cup part-way through. I realised that the automatic bye system doesn't allow much flexibility.
For example, in the real FA cup, 80 teams play in round 1, 40 in round 2, and then in round 3, the 44 teams from leagues 1 and 2 join in to make up 64. The rest of the rounds then work out correctly. If you try to do this in bygfoot, it awards 48 byes in round 1 to provide 64 teams in round 2.
I've got round to making a small patch that allows a new tag <byes> in a cup round, so you can specify the exact number of byes you want. If it's not specified, the original "power of two" system is used. My new FA cup definition has 70 teams in round 1 with 10 byes, then 40 teams in round 2 with 0 byes, then in round 3 leagues 1 and 2 come in and the default bye system is OK.
I've attached my patch and a new FA cup file. I've tested a whole season and some load/save stuff and it all seems OK. At least I think I changed everything that's needed for a completely new XML tag...
Note that the cup is now one round longer, so it starts in week 19.
This brings up another issue. The default round names "Last 256" and so on are no longer accurate in a case like this. A <round_name> tag would be nice, and would allow for special round names such as qualifying rounds, but the disadvatage of this is that the same name would be used regardless of the user's locale. (i.e. no translation).
Better cup round bye system
Better cup round bye system
- Attachments
-
- round_byes.zip
- Patch & new FA cup file
- (1.88 KiB) Downloaded 47 times
Re: Better cup round bye system
excellent idea, excellent patch. i cvs-ed it already. thank you!
is the league cup definition ok?
gyözö
i looked at the changes and tested a season, too. it really works perfectly, i'd say.MarkC wrote:I've attached my patch and a new FA cup file. I've tested a whole season and some load/save stuff and it all seems OK.
i couldn't have done it better myselfAt least I think I changed everything that's needed for a completely new XML tag...
the round names weren't accurate before, either, byes always have this effect. i'd say we leave the round names, the users will simply have to get used to them and recognise that the names don't always refer to the number of teams but simply to the cup round (and to the number of teams that would participate if we'd have a perfect binary 'cup tree').This brings up another issue. The default round names "Last 256" and so on are no longer accurate in a case like this. A <round_name> tag would be nice, and would allow for special round names such as qualifying rounds, but the disadvatage of this is that the same name would be used regardless of the user's locale. (i.e. no translation).
is the league cup definition ok?
gyözö
Press any key to continue or any other key to quit.
Re: Better cup round bye system
You're welcome!gyboth wrote:excellent idea, excellent patch. i cvs-ed it already. thank you!
Yes, that sounds fair enough. But I'll bet now that somebody, sometime, will report it as a bug.gyboth wrote:the round names weren't accurate before, either, byes always have this effect. i'd say we leave the round names, the users will simply have to get used to them and recognise that the names don't always refer to the number of teams but simply to the cup round (and to the number of teams that would participate if we'd have a perfect binary 'cup tree').
I was hoping you wouldn't ask that, because I had no clue how the league cup worked. Not to be defeated, though, I found some information in Wikipedia:gyboth wrote:is the league cup definition ok?
http://en.wikipedia.org/wiki/League_Cup
Simplifying the information there, I think we should say:
Round 1: 72 teams (3 x 24), no byes
This leaves 36. Bring in the Premiership (20).
Round 2: 56 teams with 8 byes
Round 3: 32 and so on.
Example attached.
- Attachments
-
- cup_england_league.xml.zip
- League Cup definition with byes
- (460 Bytes) Downloaded 49 times
Re: Better cup round bye system
probably after the release at the latest.MarkC wrote: Yes, that sounds fair enough. But I'll bet now that somebody, sometime, will report it as a bug.
oops. sounds complicated.I was hoping you wouldn't ask that, because I had no clue how the league cup worked. Not to be defeated, though, I found some information in Wikipedia:
http://en.wikipedia.org/wiki/League_Cup
yes, yes, let's simplifySimplifying the information there, I think we should say:
works well, i've cvs-ed it. thanks a lot.Example attached.
gyözö
Press any key to continue or any other key to quit.