[FIXED] Table highlighting for international cups

Here you can... report bugs. Open a new thread for each bug, please.
Post Reply
ircarrascal
definitions team
Posts: 39
Joined: Thu Aug 23, 2007 8:50 pm
Location: Munich, Germany
Contact:

[FIXED] Table highlighting for international cups

Post by ircarrascal »

A minor bug ...

I've created a master definition for Libertadores cup, similar to UEFA CL (europe_champ_league or something like that). So I can use the same one in all the south-american leagues.

So for example I have, for choosing teams:

...
<choose_team>
<choose_team_sid>LEAGUE1</choose_team_sid>
<number_of_teams>3</number_of_teams>
<start_idx>1</start_idx>
<end_idx>3</end_idx>
</choose_team>
....
<choose_team>
<choose_team_sid>peru1</choose_team_sid>
<number_of_teams>1</number_of_teams>
<start_idx>1</start_idx>
<end_idx>6</end_idx>
<randomly>1</randomly>
<generate>1</generate>
</choose_team>
...

So the first part of this code selects the first three from the country league, whichever it is (could be Peru for example). But then, so other countries can use it too I have to add a line for the Peru definition, hence the second part of the code.

Here's the problem: The table for peru1 highlights the first 6, not the first three, as it should be. Problem goes away if I don't use start_idx, end_idx but then sometimes that results in the very unlikely event of low ranked teams going through. I can also do star_idx=1, end_idx=3 but then you have the same teams from each country over and over every season.
gyboth
Site Admin
Posts: 1421
Joined: Sat Dec 18, 2004 8:42 am
Location: Passau, Germany
Contact:

Post by gyboth »

Use your code (with 1-3, 1-6), this is a bug and is going to get fixed.
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 »

Fixed in SVN, thanks for the reminder ;-)
Press any key to continue or any other key to quit.
Post Reply