Version: 2.0 (using KDE 4.5.1) OS: Linux Hard to tell which planets are mine because all players show up as the same color background. Fonts are messed up because many planet names show up as a rectangle, rather than a letter or number. Reproducible: Always Steps to Reproduce: Start Konquest, click new game, choose any number of planets, any grid size, play. OS: Linux (x86_64) release 2.6.35-28-generic Compiler: cc
I cannot test 4.5 but it looks fine here in 4.4.5 and 4.6.1. Can you please attach a screen shot of the game? Maybe someone can tell what might be wrong by the looks. Regards
Created attachment 59747 [details] Color depends on player number not on generated name number I can confirm this bug. To reproduce: * Create a new game * add a player (blue color) * change name to smth. different (e.g foo) * add another player (again blue color) The color and player number depend on the number of the generated unique name. The attached patch changes this behavior and creates a new function to return a unique name. The color selection is independ of this function. The last hunk is a hack as the svn version crashed with an out of index exception. With this hack the new dialog works even if index is -1, but this might introduce a new bug. I think the conditional should be index >=0 and index - 1 should only be index but I've not digged deeper into the code and don't fully understand the purpose of the function.
Meh, just read your text, dug into the code and fixed the crash ... and then found your patch and saw that you came to the same conclusion. Sorry for the missing credits. :/
Bug fixed by schwarzer...
As far as I see this bug is not fixed in the SVN (trunk) nor in 4.6.2. The attached patch for 05-07 should introduce a similar bug when players are removed. I will attach a patch that fixes it. Btw. the game does at no point care for unique player names, why here?
Created attachment 63292 [details] Fix
Nothing fixed here, so back to UNCONFIRMED. schwarzer fixed a crash which was also fixed by the crash, but that is not related to the actual bug.
Jeffrey fixed the remaining bugs in trunk. No backport to 4.7 at the moment because the patch is quite involved. Any other opinions on that?