1.9.0: League definition files

The developers will post here to let you peek into future versions and announce new releases.

Moderator: idcarlos

Post Reply
gyboth
Site Admin
Posts: 1421
Joined: Sat Dec 18, 2004 8:42 am
Location: Passau, Germany
Contact:

1.9.0: League definition files

Post by gyboth »

in the 1.9 branch, the country file system will be different from the current system. there will be country files in XML format containing some general information about the country, but no teams or cups. those will be loaded from separate XML files (the names of which will be specified in the country definition file). here's such a league definition file (which isn't 'finalized', of course) that will be loaded:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<league>

  <sid>england2</sid> // string id of the league
    // name of the league which will appear in the game
  <name>Football League Championship</name>
  <short_name>F. L. Champ.</short_name>
   // a pixmap symbol for the league
  <symbol>flag_en.png</symbol>
   // week of the first matchday
  <first_week>1</first_week>
   // weeks between matchdays
  <week_gap>1</week_gap>
   // the average skill in the league (in the first season)
  <average_skill>70</average_skill>
   // the average stadium capacity
  <average_stadium_capacity>30000</average_stadium_capacity>

    // promotion and relegation rules
  <prom_rel>

     // promotion games (like currently between teams ranked 4th to 7th)
    <prom_games>
       // id of the league the winner gets promoted to
      <prom_games_dest_sid>england1</prom_games_dest_sid>
       // the cup which tells us what kind of system is used for the game (e.g. knockout, home and away games etc.)
      <cup>cup_england_prom_games</cup>
    </prom_games>
    
     // regular promotion/relegation
    <prom_rel_element>
      // which teams get moved; in this case the teams finishing 1st and 2nd
      <rank_start>1</rank_start>
      <rank_end>2</rank_end>
       // where they get moved to
      <dest_sid>england1</dest_sid>
    </prom_rel_element>

     // this has the same form, but is of course a relegation
    <prom_rel_element>
      <rank_start>22</rank_start>
      <rank_end>24</rank_end>
      <dest_sid>england3</dest_sid>
    </prom_rel_element>

  </prom_rel>

    // teams; currently only names, in the future maybe also player lists
  <teams>
    <team>
      <team_name>Bradford</team_name>
    </team>
     ........ <snip> ........
    <team>
      <team_name>Wimbledon</team_name>
    </team>
  </teams>

</league>
a feature that's missing here is 'yellow_red' (like 'name') which tells us how many yellow cards a player can accumulate until he gets automatically banned for a game.

Note: The '//'-comments aren't really fitting, because we have an XML-file here.

See also the posts about the country and cup files.

suggestions, criticism and such are, as always, welcome.

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