Mexico.

Forum devoted to country/league/cup/team definition topics. You can also get help here if you have trouble writing or using a definition.
Post Reply
chunter
definitions team
Posts: 52
Joined: Sun Nov 27, 2005 10:24 pm
Location: USA
Contact:

Mexico.

Post by chunter »

Here I thought I finished up early... there may be more changes on Tuesday if the new feature in the SVN works right (I'm downloading it as I write this 8) ) but for now...

This Mexico definition accounts for the addition of the SuperLiga tournament to be held this July (If I'm remembering correctly.) This definition accounts for sides that qualified for Libertadores and therefore may not be able to take part in both competitions concurrently. This will be revised in a future update.

It does NOT have the InterLiga tournament, the quick round-robin qualifier that chooses the Mexican teams that will enter Libertadores, because without the new 'two matchdays per week' feature it would have to be at the same time as the fall playoff. More on that later.

In the meantime, this definition was finished last night and is playable:
http://chunter.homeip.net/bygfoot/mexico.tgz

Enjoy!
mrsmola
Posts: 38
Joined: Wed Dec 13, 2006 7:14 am
Location: Köln, Germany

Post by mrsmola »

I added the Mexican definitions to subversion.

Mark
chunter
definitions team
Posts: 52
Joined: Sun Nov 27, 2005 10:24 pm
Location: USA
Contact:

Post by chunter »

There was at least one change I made that made this country playable again. There was a mistake in the promotion/relegation that caused a segfault at the end of the season. :P

http://chunter.homeip.net/bygfoot/mexico.tgz
mrsmola
Posts: 38
Joined: Wed Dec 13, 2006 7:14 am
Location: Köln, Germany

Post by mrsmola »

The game writes critical errors to the console by playing the Mexican definition. I tested all versions of the Mexican definition we have in subversion. They all have the problem.

After the live game, during the calculation of the results, the game writes the errors.

(bygfoot:6904): GLib-CRITICAL **: g_strrstr: assertion `needle != NULL' failed

(bygfoot:6904): GLib-CRITICAL **: g_strrstr: assertion `needle != NULL' failed

(bygfoot:6904): GLib-CRITICAL **: g_strrstr: assertion `needle != NULL' failed

(bygfoot:6904): GLib-CRITICAL **: g_strrstr: assertion `needle != NULL' failed

(bygfoot:6904): GLib-CRITICAL **: g_strrstr: assertion `needle != NULL' failed

Other definitions like USA, Japan don't have that problem.

Mark
chunter
definitions team
Posts: 52
Joined: Sun Nov 27, 2005 10:24 pm
Location: USA
Contact:

Post by chunter »

I'll start playing it and staring at it to see if I can figure it out. Do you know what part of the program the error messages pertain to? (It might help me find the mistake faster...)
gyboth
Site Admin
Posts: 1421
Joined: Sat Dec 18, 2004 8:42 am
Location: Passau, Germany
Contact:

Post by gyboth »

chunter wrote:I'll start playing it and staring at it to see if I can figure it out. Do you know what part of the program the error messages pertain to? (It might help me find the mistake faster...)
i believe it's rather something i've done (namely, exclude directories containing "svn" in their names from the support dir list).

i'll look into the problem tonight (or later ;-)).

gyözö
Press any key to continue or any other key to quit.
gyboth
Site Admin
Posts: 1421
Joined: Sat Dec 18, 2004 8:42 am
Location: Passau, Germany
Contact:

Post by gyboth »

hi,

the bug's fixed. it occurred because there's no sid given in the country file, and in one function (in job.c) an existing sid is expected. i've solved the problem by initialising the country sid with "NONAME" instead of NULL.

gyözö
Press any key to continue or any other key to quit.
chunter
definitions team
Posts: 52
Joined: Sun Nov 27, 2005 10:24 pm
Location: USA
Contact:

Post by chunter »

That's embarrassing, sorry about that... :oops:
gyboth
Site Admin
Posts: 1421
Joined: Sat Dec 18, 2004 8:42 am
Location: Passau, Germany
Contact:

Post by gyboth »

chunter wrote:That's embarrassing, sorry about that... :oops:
don't be, it was a bug in the code. the program should have aborted with a clear error message, not just printed a few generic g_strrstr errors.

gyözö
Press any key to continue or any other key to quit.
mrsmola
Posts: 38
Joined: Wed Dec 13, 2006 7:14 am
Location: Köln, Germany

Post by mrsmola »

I added the actual definitions of Mexico to the subversion repository

Mark
Post Reply