2.5.0-beta1 city selection window scroll issue

You can get help here if Freeciv doesn't start on your computer, or if you keep getting fatal errors while playing etc.
Post Reply
ILoveLilyAllen
Posts: 29
Joined: Wed Jul 30, 2014 5:50 pm

2.5.0-beta1 city selection window scroll issue

Post by ILoveLilyAllen »

Greetings

I'm not sure whether this is the correct section to post bug reports, as I don't need any technical support :) Please redirect me if wrong!

In a game with a large number of cities, within the "Cities" selection (F4) if you action such as press "Buy" often the window scrolls to an illogical place.

I realise the code must re-sort the cities according to the last selected sort order. There are then two possible logical behaviours which occur until the number of cities goes above a couple of hundred (maybe the "magic" 255 but I didn't take note, sorry):

1) The window re-sorts and moves the city you have just changed, leaving the scroll position more-or-less as it was (so if 1/2 way down it's still about 1/2 way down).
2) The window "follows" the changed city and displays that more-or-less in the middle of the scroll area (I confess not being able to remember how to reproduce this behaviour).

But when the number of cities goes above a magic maximum, the window will often scroll to neither of those two logical positions.

Example #1:
My current game has 363 cities. I build a granary immediately after founding each city. The following turn I sort the cities by "Currently Building" and scroll down to the granary group (maybe a dozen cities) then "Buy" all the granaries. Until fairly recently all that happened in the Cities window was that the city may move to the bottom of the group, but since then the window always scrolls up a screen-full or so.

Example #2:
With this same game, I sort my cities by "Pol" (I know you know that's pollution!), then for the worst offenders I buy a relevant anti-pollution improvement. If I sort ascending so that the biggest polluters are at the bottom when I buy each improvement the window scrolls up alarmingly - 1/3 of the way down from the top maybe! The target city will still be at the bottom of the window of course.

If the selection is at the top of the window this behaviour does not occur, so in Example #2 if I change so the sort is descending with the offenders at the top there is no illogical scrolling.

I can supply my game-file of course if someone wants, just tell me how to get it to you.

Kind regards
sveinung
Elite
Posts: 548
Joined: Wed Feb 20, 2013 4:50 pm

Re: 2.5.0-beta1 city selection window scroll issue

Post by sveinung »

Thank you for your bug report.
ILoveLilyAllen wrote:I'm not sure whether this is the correct section to post bug reports, as I don't need any technical support :) Please redirect me if wrong!
Please file the bug in our bug tracker so it won't get lost. You can report the bug anonymously if you don't wish to register.

What Freeciv client and what Freeciv version you use could be relevant. ("Help"->"About Freeciv" has this information) Knowing what OS/distro/version you run it on may also be helpful.
ILoveLilyAllen
Posts: 29
Joined: Wed Jul 30, 2014 5:50 pm

Re: 2.5.0-beta1 city selection window scroll issue

Post by ILoveLilyAllen »

Many thanks indeed. Now done. It allowed me to attached the save file which hopefully will help.

I did search for bugtracker or equivalent (having used it in the past on other sites) but couldn't find it here.

By the way it gave me a message <quote> Success: New item posted (bug #22535) file #21931 attached CC added. Mail sent to <email address>, -unavailable- </quote> and that email client showed a message received ... but it disappeared before I could read it - very strange! Maybe it's a bugtracker tracking bug!

Kind regards

<edit> and it did ask me for the freeciv version and my operating system (which I gave as gui-gtk-2.0 and windows) so that should also help :) </edit>
<edit> emails now arrived </edit>
Post Reply