negative word overflow

You can get help here if Freeciv doesn't start on your computer, or if you keep getting fatal errors while playing etc.
Wahazar
Veteran
Posts: 131
Joined: Mon Jul 02, 2018 1:49 pm

negative word overflow

Postby Wahazar » Wed Aug 29, 2018 8:11 am

I have sometimes following messages while playing with my own ruleset:
Trying to put -1 into 16 bits; it will result 65535 at receiving side.
Version 2.5.11.
Probably there is subtraction from 0, any idea how to track this problem to check which part of ruleset is responsible for?

User avatar
Caedo
Elite
Posts: 465
Joined: Sun Feb 10, 2013 10:21 pm
Location: Stuttgart, Germany

Re: negative word overflow

Postby Caedo » Wed Aug 29, 2018 10:09 am

You could start the server with verbose logging, i.e. "freeciv-server -d 3", and then, when the error occurs, look at what came before (presumably attempting to send something to the client).
~S.C. L.