Help with <delay> tag?
Posted: Thu Aug 23, 2018 6:04 am
Hello. 
I'm trying to re-do the USA definitions to an updated model and I'm at the point where I have the league files done for the 4 different associations and I'm trying to get the play-off files working but I'm coming up with a problem.
To this point, I've changed the definitions by updating the MLS, USL and PDL leagues and adding the NPSL league, as an equivalent one to the PDL league. I don't have the US Cup or Concacaf added yet but I want to keep it simple enough and expand it to include the Canadian teams as well as the US teams that are listed in the USA definitions. So right now it simply plays the (level 1) MLS Eastern and Western Conference teams, the (level 2) USL Eastern and Western Conference teams, and the (level 3) PDL (4 conferences and 11 divisions with 74 teams) and (level 3) NPSL (4 conferences and 13 divisions with 98 teams) teams. There's also a play-off system for those leagues and I've also added a promotion and relegation factor in which seems kind of fun I think.
Now my problem relates to I believe the <delay> tag when I'm using it in a cup defintion. When I used the <delay> tag for a period of 1 week, the next week the round would play normally but then the next round would be played in the same week but separate round. i.e. round one would be played in week 33-1 and round two would be played in week 33-2. This would not be my intention for the game as I wanted a whole week to be played for round one (week 33) and round two (week 34). Is this something that is supposed to happen or what per say? The code I'm using is as follows for a cup definition:
For the above listed code, the league season ends in week 31. I have a delay for week 32 to give the teams a fair chance to be at full health when playing and play is supposed to start in week 33. The two winners from round one then play the two division leaders in week 34 and those winners play each other in week 35 to have a champion for the PDL Central Conference. Although when I tried it on my system, the second round was played in week 33-2 and the final round was played in week 34, instead of week 35.
I don't use the <last_week> tag and really, it shouldn't matter, but if I did use it, would it resolve this issue or is this <delay> tag an issue of a different sort?
Thanks in advance,
will_the_canuck
PS - looking at the code for a promotion game for mexico2, there is a <cup_round> tag of <two_match_week> with a value of 1. I'm just wondering if I were to use this tag but with a value of 0, would this resolve my issue? I guess the real issue is that two rounds are being played in the one week but the code doesn't necessarily say that, to my knowledge. Oh well.

I'm trying to re-do the USA definitions to an updated model and I'm at the point where I have the league files done for the 4 different associations and I'm trying to get the play-off files working but I'm coming up with a problem.
To this point, I've changed the definitions by updating the MLS, USL and PDL leagues and adding the NPSL league, as an equivalent one to the PDL league. I don't have the US Cup or Concacaf added yet but I want to keep it simple enough and expand it to include the Canadian teams as well as the US teams that are listed in the USA definitions. So right now it simply plays the (level 1) MLS Eastern and Western Conference teams, the (level 2) USL Eastern and Western Conference teams, and the (level 3) PDL (4 conferences and 11 divisions with 74 teams) and (level 3) NPSL (4 conferences and 13 divisions with 98 teams) teams. There's also a play-off system for those leagues and I've also added a promotion and relegation factor in which seems kind of fun I think.
Now my problem relates to I believe the <delay> tag when I'm using it in a cup defintion. When I used the <delay> tag for a period of 1 week, the next week the round would play normally but then the next round would be played in the same week but separate round. i.e. round one would be played in week 33-1 and round two would be played in week 33-2. This would not be my intention for the game as I wanted a whole week to be played for round one (week 33) and round two (week 34). Is this something that is supposed to happen or what per say? The code I'm using is as follows for a cup definition:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<cup>
<name>PDL Central Conference Playoffs</name>
<short_name>PDL_CC_Playoffs</short_name>
<symbol>flag_usa.png</symbol>
<sid>united_states_pdl_cent_playoffs</sid>
<add_week>1000</add_week>
<week_gap>1</week_gap>
<property>national</property>
<property>highlight1</property>
<yellow_red>2</yellow_red>
<cup_rounds>
<cup_round>
<home_away>0</home_away>
<delay>1</delay>
<choose_teams>
<choose_team>
<choose_team_sid>united_states3a01</choose_team_sid>
<number_of_teams>2</number_of_teams>
<start_idx>2</start_idx>
<end_idx>3</end_idx>
</choose_team>
<choose_team>
<choose_team_sid>united_states3a02</choose_team_sid>
<number_of_teams>2</number_of_teams>
<start_idx>2</start_idx>
<end_idx>3</end_idx>
</choose_team>
</choose_teams>
</cup_round>
<cup_round>
<home_away>0</home_away>
<choose_teams>
<choose_team>
<choose_team_sid>united_states3a01</choose_team_sid>
<number_of_teams>1</number_of_teams>
<start_idx>1</start_idx>
<end_idx>1</end_idx>
</choose_team>
<choose_team>
<choose_team_sid>united_states3a02</choose_team_sid>
<number_of_teams>1</number_of_teams>
<start_idx>1</start_idx>
<end_idx>1</end_idx>
</choose_team>
</choose_teams>
</cup_round>
<cup_round>
<home_away>0</home_away>
</cup_round>
</cup_rounds>
</cup>
I don't use the <last_week> tag and really, it shouldn't matter, but if I did use it, would it resolve this issue or is this <delay> tag an issue of a different sort?
Thanks in advance,
will_the_canuck
PS - looking at the code for a promotion game for mexico2, there is a <cup_round> tag of <two_match_week> with a value of 1. I'm just wondering if I were to use this tag but with a value of 0, would this resolve my issue? I guess the real issue is that two rounds are being played in the one week but the code doesn't necessarily say that, to my knowledge. Oh well.