Bug #1663
openanother overflow bug?
0%
Description
With reference to ticket #1654 I found another potential problem, this time preventing continuation of the game.
When loading the attached savegame (T0752-Y02326) one finds in the server messages two types of warnings/errors:
The first warning/error says "Trying to put 81266 into 16 bits; it will result 15730 at receiving side." which is related to the above mentioned ticket #1654. The value is the tech income (above 65535) and one can ignore the wrong display and still play the game.
Having continued the game, now with more cities/income/everything there are now twelve more warnings/errors, all in the form "Trying to put 65545 into 16 bits; it will result 9 at receiving side." (the twelve warnings show different values but all are slightly above 65535). I cannot relate those values to any number in the game so I dont know, what those values express. But there is a noticable negative effect. I cannot change the production in any newly built city (the production defaults to rifle-men and that cannot be changed anymore). There is 4 new cities in the savegame with this effect (for example "Westlake"). In cities older than one turn, I can still change the production as usual.
Unlike ticket #1654 this time I cannot ignore the error. Its not only a wrong display, functionality is broken.
For comparison I also attached a save-game that is one turn older (T0751-Y02325) that does not show the warnings/errors and that seems to have normal functionality.
The game identifies as:
Dies ist Freeciv Version 3.0.6, gui-gtk-3.22-Klient.
Built against gtk+ 3.24.36, using 3.24.38
Built against glib 2.74.5, using 2.74.6
I'm on Debian bookworm with all updates and use the distribution provided version of FreeCiv
Files