TSI overflow

From Hattrick
Jump to navigationJump to search

· English · Magyar ·

TSI overflow is a bug that is related to limitations in the Hattrick database.

After reaching divinity, a player can be trained even further because there is no cap at divine at all. And TSI can actually go to 2 million+, and then it restarts at 0. TSI-data is stored in a 32 bit number, this means that you can reach up to 2^31 - 1 numbers.
This equals the astronomical amount of


Because TSI is always a multiplicant of 1.000(due to the old player value system), the highest number you can reach is "2.147.483" .

This number would be stored as:

"1111.1111.1111.1111.1111.1111.1111.1111" (binary),

if you add 1 to this number, the result is

"1.0000.0000.0000.0000.0000.0000.0000.0000" (binary)

Since TSI is stored in 32-bits, only the "0000.0000.0000.0000.0000.0000.0000.0000" part is stored, leaving "0" in decimal.

Obviously the developers never meant for this to happen. The first player, to get “TSI overflow” was Herman Vooijs.