Page 1 of 1

Bygfoot 1.9.0 :: Brazil League XML

Posted: Mon Apr 04, 2005 2:45 am
by Oki
Hi,

I'm from Brazil, and i'd like to make the Team list for brazilian teams. In version 1.9 the structure have modified so, my question is "What i need to edit to make team files for brazil league?"

[]'s
Celso Goya

Posted: Mon Apr 04, 2005 6:34 am
by gyboth
thanks for your offer. i didn't expect to receive one so soon, so i didn't write a country/league editing tutorial yet. i promise to do it today, though.

gyözö

Posted: Mon Apr 04, 2005 5:21 pm
by gyboth
see this post describing how to make a new country file. i didn't make the cup definitions howto yet, but i'll do it soon.

gyözö

Posted: Mon Apr 04, 2005 6:41 pm
by Oki
Thanks for your help, i'll try to make some files for Brazilian Leagues, and if i t works i'll send you. :-)

[]'s
Celso Goya

Posted: Tue Apr 05, 2005 1:58 pm
by atd
I'll make the belgian file too

Posted: Tue Apr 05, 2005 2:29 pm
by gyboth
great :-D i hope the new system will work out well. you can of course mail me or post here (maybe rather in the code discussions forum) if you have questions or problems.

gyözö

Championship XML Files

Posted: Tue Apr 05, 2005 11:55 pm
by Oki
Hi,

I'm writing the XML Files for 1.9, but i don't know how can i make the promotion for next league.

e.g: On Brazilian league the eight better teams on the season play and the top two teams advance to next league.

e.g 2:
away/home
winner 1: team 1 x team 8
winner 2: team 2 x team 7
winner 3: team 3 x team 6
winner 4: team 4 x team 5

away/home
winner 1: winner1 x winner 4
winner 2: winner2 x winner 3

away/home
winner1 x winner 2

The last two team advance. I found on HOW-TO:
So, the tags available for cup rounds are:
- home_away
- replay
- neutral
- round_robin_number_of_groups
- round_robin_number_of_advance
- round_robin_number_of_best_advance
My question is "One of this tags could solve the problem?". In all england examples we don't have this kind of case.

[]'s
Celso Goya

Re: Championship XML Files

Posted: Wed Apr 06, 2005 8:12 am
by gyboth
Oki wrote:Hi,

I'm writing the XML Files for 1.9, but i don't know how can i make the promotion for next league.

e.g: On Brazilian league the eight better teams on the season play and the top two teams advance to next league.
this sounds like promotion games. you make a league without prom_rel_elements for promotion, only a promotion game element. you have to write the cup format for the promotion games, something like

Code: Select all

<cup>
  <name>Promotion Games</name>
  <short_name>Prom. Gam.</short_name>
  <symbol>flag_br.png</symbol>
  <sid>brazil_prom_games</sid>
  <type>national</type>

  <cup_rounds>
    <cup_round>
      <home_away>1</home_away>
    </cup_round>
    <cup_round>
      <home_away>1</home_away>
    </cup_round>
    <cup_round>
      <home_away>1</home_away>
    </cup_round>
  </cup_rounds>

  <choose_teams>
    <choose_team>
      <number_of_teams>8</number_of_teams>
      <start_idx>1</start_idx>
      <end_idx>8</end_idx>
    </choose_team>
  </choose_teams>

</cup>
there are two problems: 1. you can't tell the program that the last two teams advance, only the winner advances 2. cup pairings are written randomly, not 1 - 8, 2 - 6 etc.

i'm going to have to introduce tags for these issues, i guess.

gyözö

Posted: Wed Apr 06, 2005 12:32 pm
by gyboth
i've added a tag <prom_games_number_of_advance> to the <prom_games> structure, so you can specify now that the two teams from the final of the promotion games advance (see also the howto file.

gyözö

Posted: Wed Apr 06, 2005 4:44 pm
by mom2pp
i would do the scotland league
its just that i dont know how to get the CVS for the 1.9 version
could you please tell me how to get it

Posted: Wed Apr 06, 2005 5:00 pm
by gyboth
mom2pp wrote:i would do the scotland league
its just that i dont know how to get the CVS for the 1.9 version
could you please tell me how to get it
use the update script bygfoot-update, it's menu-driven and should be fairly easy to use. it's shipped with the official Bygfoot packages but you can get the latest version also here (you might have to do a chmod a+x bygfoot-update after downloading it).

gyözö

Good news

Posted: Wed Apr 06, 2005 10:29 pm
by Oki
Gyözö,
I'll download the latest version, and i'll try to update my xml files, using this new issue.
i've added a tag <prom_games_number_of_advance> to the <prom_games> structure, so you can specify now that the two teams from the final of the promotion games advance (see also the howto file.
Well, this is the most speedy correction i've seemed on a software, hehehe, thanks for correction. The secondary divisions from Brazilian Teams thanks you! :-)

[]'s
Celso Goya

Re: Good news

Posted: Thu Apr 07, 2005 5:07 pm
by gyboth
Oki wrote:Well, this is the most speedy correction i've seemed on a software, hehehe, thanks for correction. The secondary divisions from Brazilian Teams thanks you! :-)
don't be too cheerful, the new tag doesn't mean anything regarding the game internals, because season ending stuff isn't implemented yet ;-) i just added the possibility to use that tag, the consequences of a league using that kind of promotion will have to get implemented later :-P

gyözö