cup_load_choose_team_from_league warning

Here you can... report bugs. Open a new thread for each bug, please.
Post Reply
gyboth
Site Admin
Posts: 1421
Joined: Sat Dec 18, 2004 8:42 am
Location: Passau, Germany
Contact:

cup_load_choose_team_from_league warning

Post by gyboth »

If Bygfoot exits at the end of a season with a message similar to

Code: Select all

** (bygfoot:9638): WARNING **: cup_load_choose_team_from_league (1): not enough teams (that don't participate in international cups yet) found in chooseteam greece1 for cup Greek Supercup (1 specified, 0 found) cup group 160.
you should download an updated definitions directory here

and replace your definitions directory with it.

In the Linux binary and Windows versions, your defs dir is to be found at ./support_files. In an installed version (from RPM, or with make install) you should find it at /usr/local/share/bygfoot/support_files, if I recall correctly.

Afterwards, delete the defs dir from the .bygfoot directory your home directory (~ on Linux, not entirely sure where on Windows... probably something like C:\Documents and Settings\username\).

This won't fix your savegame, only make sure you won't get the problem again in future games. I'll post instructions on fixing a savegame later for those who've grown really fond of their team (or their bank account).

========================

...and here it is:
  1. Unzip your savegame.
  2. Locate the cup XML file by searching for the name within the files (in our example from above you'd search for a file containing the text "Greek Supercup").
  3. Open the file with a text editor. Look for the two blocks between _3005 tags, e.g. something like this:

    Code: Select all

    	<_3005>
    		<_3006>germany_dfb</_3006>
    		<_3007>1</_3007>
    		<_3008>1</_3008>
    		<_3009>2</_3009>
    		<_3010>0</_3010>
    		<_3011>0</_3011>
    		<_3012>0</_3012>
    		<_3013>0</_3013>
    		<_3014>1</_3014>
    	</_3005>
    	<_3005>
    		<_3006>germany1</_3006>
    		<_3007>1</_3007>
    		<_3008>1</_3008>
    		<_3009>1</_3009>
    		<_3010>0</_3010>
    		<_3011>0</_3011>
    		<_3012>0</_3012>
    		<_3013>0</_3013>
    		<_3014>1</_3014>
    	</_3005>
  4. Change the order of the two blocks, so that the second one comes first, like this:

    Code: Select all

    	<_3005>
    		<_3006>germany1</_3006>
    		<_3007>1</_3007>
    		<_3008>1</_3008>
    		<_3009>1</_3009>
    		<_3010>0</_3010>
    		<_3011>0</_3011>
    		<_3012>0</_3012>
    		<_3013>0</_3013>
    		<_3014>1</_3014>
    	</_3005>
    	<_3005>
    		<_3006>germany_dfb</_3006>
    		<_3007>1</_3007>
    		<_3008>1</_3008>
    		<_3009>2</_3009>
    		<_3010>0</_3010>
    		<_3011>0</_3011>
    		<_3012>0</_3012>
    		<_3013>0</_3013>
    		<_3014>1</_3014>
    	</_3005>
  5. Save the file and zip everything back into the savegame archive.
  6. Done. Your savegame should work now.
(I don't know why the text size got screwed up, but I don't think it's my fault...)
Press any key to continue or any other key to quit.
Post Reply