• Register

Bygfoot is a football (a.k.a. soccer) management game. It is an original concept by Gyözö Both and has been improved with suggestions by players from all over the world. After Gyözö and later Mark Lawrenz left the project Ronald Sterckx took over and is currently developing and maintaining Bygfoot.

  • View media
  • View media
  • View media
  • View media
  • View media
  • View media
Post article RSS Articles

How to write Bygfoot definition files

Client Side Coding Tutorial

Naming conventions
Suppose you make a definition for France. The corresponding country file should be named country_france.xml.

If there are 4 leagues, say, the definition files should be called league_france1.xml to league_france4.xml.

If there is a national cup called, for instance, Coupe de France, the corresponding definition file is cup_france_coupe_de_france.xml (the important part is cup_france, you can choose the rest; you could also call it cup_france_coupe.xml if you like).

If there is a supercup called Supercoupe de France, the file would be something like cup_supercup_france.xml or so (it starts with cup_ because supercups are just a special type of cup).

All these structures -- country, league, cup -- have to have a unique string identifier (abbreviated sid; see the xml file examples below). The sid and the part between country_ and .xml (or cup_ and .xml for cups) have to be the same. The sid of the first league in France would be france1. The sid of the cup would be france_coupe_de_france. Now this is not only a convention, it``s a must if you want your definitions to work.

To refer within definition files to other definition files, you use the sid. E.g. to specify that 3 teams from the first league in France get relegated to the second league, you have to use the sid france2 in the prom_rel element (see below).

All these files should be moved to a separate subdirectory of $HOME/.bygfoot/definitions, in this case perhaps $HOME/.bygfoot/definitions/france. The game should be able to find them there and you can select country_france.xml from the popdown menu in the startup window (if no users are selected yet).

Add file RSS Files
bygfoot 2.3.2 win GTK

bygfoot 2.3.2 win GTK

Full Version

Latest unstable release: added Turkish translation, news and hints (thanks to Cem Uykun) updated Turkish player names, commentaries (thanks to Cem Uykun...

Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

Follow Report Profile
Icon
Bygfoot Football Manager
Platforms
Windows, Mac, Linux
Creator
ivo000
Engine
Custom
Contact
Send Message
Release date
Game watch
Follow
Share
Style
Genre
Soccer
Theme
Sport
Players
Single Player
Project
Indie
Embed Buttons
Link to Bygfoot Football Manager by selecting a button and using the embed code provided more...
Bygfoot Football Manager
Statistics
Visits
62 (1 today)
Last Update
Watchers
1 member
Files
1
Articles
1