Better cup round bye system

You can add your ideas on how to make Bygfoot better here.
Locked
MarkC
Posts: 96
Joined: Tue Mar 29, 2005 10:34 pm

Better cup round bye system

Post by MarkC »

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).
Attachments
round_byes.zip
Patch & new FA cup file
(1.88 KiB) Downloaded 47 times
gyboth
Site Admin
Posts: 1421
Joined: Sat Dec 18, 2004 8:42 am
Location: Passau, Germany
Contact:

Re: Better cup round bye system

Post by gyboth »

excellent idea, excellent patch. i cvs-ed it already. thank you! :-D
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 looked at the changes and tested a season, too. it really works perfectly, i'd say.
At least I think I changed everything that's needed for a completely new XML tag... :?
i couldn't have done it better myself ;-)
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).
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').

is the league cup definition ok?

gyözö
Press any key to continue or any other key to quit.
MarkC
Posts: 96
Joined: Tue Mar 29, 2005 10:34 pm

Re: Better cup round bye system

Post by MarkC »

gyboth wrote:excellent idea, excellent patch. i cvs-ed it already. thank you! :-D
You're welcome! :)
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').
Yes, that sounds fair enough. But I'll bet now that somebody, sometime, will report it as a bug. :wink:
gyboth wrote:is the league cup definition ok?
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

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
gyboth
Site Admin
Posts: 1421
Joined: Sat Dec 18, 2004 8:42 am
Location: Passau, Germany
Contact:

Re: Better cup round bye system

Post by gyboth »

MarkC wrote: Yes, that sounds fair enough. But I'll bet now that somebody, sometime, will report it as a bug. :wink:
probably :-) after the release at the latest.
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
oops. sounds complicated.
Simplifying the information there, I think we should say:
yes, yes, let's simplify :-)
Example attached.
works well, i've cvs-ed it. thanks a lot.

gyözö
Press any key to continue or any other key to quit.
Locked