supertuxkart-sourceforge-migration / stk-migration-test2

0 stars 0 forks source link

Grand Prix standings don't play nicely with ties (in Follow the Leader) #96

Open supertuxkart-sourceforge-migration opened 10 years ago

supertuxkart-sourceforge-migration commented 10 years ago

Author: rjaguar3

In Follow the Leader mode, after 2 races, I and another kart had 9 points, while the third kart had 2 points. The cumulative standings after that race displayed the top two karts overlapping each other in the second position. Also, after the third race, while the points were being added, my kart (which appeared first and won) did not have +6 listed next to it, and the points kept counting upward past 15 to 27 or so. However, by the fourth race, the correct subtotal (15) was displayed.

This probably has to do with FTL not having a good way to break ties (like the other modes do with the total time).

Migrated-From: https://sourceforge.net/apps/trac/supertuxkart/ticket/96

supertuxkart-sourceforge-migration commented 10 years ago

Author: hikerstk I've tried to reproduce it in 0.7 and current trunk without success. I had several times duplicated points, but never any problems with the display of the karts.

Do you have any idea on how to reproduce the issue? It might be good enough to get the ranks of all karts after each race.

Cheers, Joerg

supertuxkart-sourceforge-migration commented 10 years ago

Author: rjaguar3 I'm sorry I cannot be more specific.

It only happens in the Follow The Leader grand prix. Weirdly, I played this past weekend and I got a glitch after the first race (in all tracks FTL, I believe it was). It didn't fix itself until about the fifth race.

I find it happens when I do follow the leader with 4 AI karts.

What information should I try to get in case I can reproduce this glitch?

supertuxkart-sourceforge-migration commented 10 years ago

Author: hikerstk Is it possible that his happens if the 'leader' is not the first kart (i.e. the first kart gets eliminated?) - this case is pretty difficult to reproduce, so if there is anything wrong in this special case, I would have missed that.

Are you using our SVN version (or could you switch to using it)? I could then add some debug prints that print out summary information. Otherwise I (hopefully) would only need the order of the kart after each individual race (e.g. a screenshot of the first&second result screen after each race) - which admittedly is annoying to do :(

Thanks a lot! Joerg

supertuxkart-sourceforge-migration commented 10 years ago

Author: rjaguar3 I am using SVN, so you can go ahead and put in the debug code. Let me know when this happens so I can update to the latest SVN.

Thanks,

rjaguar3

supertuxkart-sourceforge-migration commented 10 years ago

Author: hikerstk I actually found a major bug which could affect a FTL-GP race (while I couldn't reproduce the issue you saw, I can see that it might have an impact on the FTL result list). Fixed in r8016.

Additionally I also added some debug information (r8018) in case that r8016 did not fix your bug - use --ftl-debug as a command line option.

For now I'll close this ticket, since I am reasonable certain that r8016 fixed your problem. But please re-open if you should see any more problems (or even let me know if you don't ;) ).

Thanks a lot for the report! Joerg