1.9.0: Country 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: Country 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 definition file (which isn't 'finalized', of course):

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<country>
  <name>England</name> // the name that will appear in the game
  <symbol>flag_en.png</symbol> // a pixmap file
  <sid>england</sid> // a unique string id
  <leagues> // the list of leagues in the country
     // the game will look for a file 'league_england1.xml'
    <league>england1</league>
    <league>england2</league>
    <league>england3</league>
    <league>england4</league>
    <league>england5</league>
  </leagues>

  <cups> // the list of cups in the country
     // the game will look for a file 'cup_england_fa.xml'
    <cup>england_fa</cup>
    <cup>england_league</cup>
    <cup>champ_league</cup>
    <cup>cwc</cup>
    <cup>uefa</cup>
  </cups>
</country>
Note: The '//'-comments aren't really fitting, because we have an XML-file here.

see also the posts about the league files and cup files.

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

gyözö
Press any key to continue or any other key to quit.
greenman
Posts: 8
Joined: Sun May 22, 2005 4:29 pm
Location: Cape Town, South Africa
Contact:

Would you like new contributions in 1.8 or 1.9 format

Post by greenman »

I'm considering adding a South African country file, but it seems like there's no point in doing so in 1.8 format, with no more releases planned. Should I wait until the 1.9 format is finalised? The problem mentioned earlier (there aren't five leagues) also applies in SA too.
gyboth
Site Admin
Posts: 1421
Joined: Sat Dec 18, 2004 8:42 am
Location: Passau, Germany
Contact:

Re: Would you like new contributions in 1.8 or 1.9 format

Post by gyboth »

greenman wrote:I'm considering adding a South African country file, but it seems like there's no point in doing so in 1.8 format, with no more releases planned. Should I wait until the 1.9 format is finalised? The problem mentioned earlier (there aren't five leagues) also applies in SA too.
you're right, there's no point in adding definitions for 1.8.

the 1.9 format is already finalised (in case i make changes i'm going to update all definitions i received before), so you can start right away.

have a look at this post for instructions:
http://bygfoot.sourceforge.net/forum/vi ... .php?t=167

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