Game freeze when int is too big

This is less of a bug and more of a user error that can cause an infinite unplayable loop.

When inputting integers e.g. hq capacity, you can accidentally add a number so big it is too big for int32 and get an error popup.

The problem is that as soon as you press “ok” on the popup, a new one comes up so you can never edit the number back down.

There are probably loads of fixes - here are two potential ones

  1. Make it impossible to type anything that goes over the int32 memory value
  2. If you do, have the game reset the value back below it e.g. to the starting default of 1k, so the loop is broken
6 Likes