New Builds: 2.3.3-alpha2
Posted: Sun Mar 07, 2021 5:12 pm
I've put up some new builds in my github repo:
https://github.com/tstellar/bygfoot/rel ... 3.3-alpha2
For people using Fedora I've also created a copr, so you can install the builds by doing:
dnf copr enable tstellar/bygfoot-snapshots
dnf install bygfoot (or dnf upgrade bygfoot if you already have it installed).
For other RPM based Linux distributions, you can try downloading the RPMs directly from here: https://copr.fedorainfracloud.org/coprs ... d/2059277/ No guarantees this will work though.
For these new builds, I've imported all the country and uefa cup definitions from the forums. I also removed all the real team names and replaced them either with a Bygfoot name, or a place holder name like "England 100"
In order to get the uefa cups to work, I had to make some changes to the xml, and also introduce some new xml tags to bygfoot. Here are the changes I made to the XML:
To use this interface, put json comands in a file and pass it to bygfoot using the --json option. Note that this feature is disabled in the prebuilt binaries on github. To use this feature, you will either need to build bygfoot yourself or use the RPM builds from the COPR. The interface is still a work in progress, so it doesn't support all bygfoot functionality yet.
If you are interested in these new builds, try them out and let me know if you run into any issues.
https://github.com/tstellar/bygfoot/rel ... 3.3-alpha2
For people using Fedora I've also created a copr, so you can install the builds by doing:
dnf copr enable tstellar/bygfoot-snapshots
dnf install bygfoot (or dnf upgrade bygfoot if you already have it installed).
For other RPM based Linux distributions, you can try downloading the RPMs directly from here: https://copr.fedorainfracloud.org/coprs ... d/2059277/ No guarantees this will work though.
For these new builds, I've imported all the country and uefa cup definitions from the forums. I also removed all the real team names and replaced them either with a Bygfoot name, or a place holder name like "England 100"
In order to get the uefa cups to work, I had to make some changes to the xml, and also introduce some new xml tags to bygfoot. Here are the changes I made to the XML:
- The generate tag is now obsolete, teams outside of the user's league are now automatically generated.
- You can put the sid for league cups in the choose_team_sid for international cups.
- The LEAGUE1 and CUP1 special tags are no longer necessary. If an international cup definition has for example, england1 and you are playing with a team from England, then a team from england1 will be correctly loaded into the international cup.
- Added optional tag for choose_team. This tells bygfoot to not through an error if it can't find a team to match the choose_team definition. This can be used for cups like Champions League where you can qualify in multiple ways. (Example)
- Added alternatives tag to choose_team, this allows you specify 1 or more alternative choose_team definitions in case no team can be found for the parent choose team. This is useful for cups like Europa cup, where if the cup winner from a league is choosen for Champions league, then the next highest ranked league team is selected.(Example)
Code: Select all
{ 'commands' : [
{ 'add_country' : { 'name' : 'england' }},
{ 'start_bygfoot' : { }},
{ 'simulate_games' : {'seasons' : 2 }},
{ 'get_tables' : {}},
{ 'get_players' : {}},
{ 'get_fixtures' : {}}
]}
If you are interested in these new builds, try them out and let me know if you run into any issues.