Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+3)

 I was curious what would happen if I reached a max int value, but the game finally stopped counting at a curious number.

Then I went to leave a comment, so I had to log in, and the game started again, at an earlier date - until it froze again at this one:



WHAT HAPPENS IN THE FUTURE AND HOW IS THIS GAME AFFECTING IT???

(+2)

Dates are limited to 100,000,000 days before or after the epoch of 1 January 1970 AD 00:00:00 UTC for precision reasons. You seem to be hitting this future limit (275760 AD), causing your date to stop increasing.

The dates stop earlier than that because adding the time per game tick to the current date goes past the limit.

(1 edit) (+2)

Yep, that's exactly what's happening. Or, to put it differently: according to the ECMA-262 standard, there's no future beyond 275,760 AD ;)

(+2)

Thanks! Curiosity quelled. That's really interesting.

(1 edit) (+1)

This is now fixed in version 1.1 of the game. Technically, there's still a limit but it's very very very very very high :)

(+1)

Do you mean that the limit is so high that the heat death of the universe (and even the collapse of the false vacuum, see https://arxiv.org/pdf/1707.08124.pdf) would have occurred by the time said limit is reached?

10 quintillion years

I understand that this is a huge accomplishment but this is near completely unrelated but this does tell us that the limit is not a 64-bit integer so that's neat I guess

9 quintillion

just wait another 5 billion years to increase it /j