Error repeatedly when opening a specific fleet window

Hi Steve,

I am getting this error repeatedly when opening a specific fleet window:

“2.7.1 Function #900: Value was either too large or too small for an Int32.”

The fleet itself continues functioning normally after closing the popup, so the game does not crash. However, the error appears every time I open that fleet.

Some context that may help:

  • The fleet is extremely large.

  • It contains many tanker subfleets and cargo/logistics ships.

  • I use it for very long-distance refueling operations between systems/colonies.

  • Some tankers have “Refuel Fleet” orders while others use “Refuel Tankers”.

  • Previously I had issues where isolated tankers would stop receiving fuel correctly during long trips, although splitting the tanker force into smaller subfleets mostly solved that problem.

The fleet currently contains a very large amount of fuel and many active logistics orders, so I am wondering if the error could be related to:

  • fuel calculations,

  • cumulative fuel values,

  • tanker logistics,

  • or some fleet-related integer overflow.

I attached a screenshot of the fleet window when the error appears.

Do you know what specifically causes Function #900 Int32 errors in this situation, and if there is a recommended way to avoid them?

Thanks.

Probably the total fuel (or fuel capacity) of the fleet exceeds the maximum value allowed for the data type being used to display it (INT32, max value is just over 2 billion).

Sorry, I forgot to attach the screenshot earlier! Here it is.

But you are probably right, because if I split the ships into multiple separate fleets, the error disappears completely.

So is there any way to fix or avoid this, or is it simply an INT32 limitation/cap related to total fleet fuel values?

Thanks for the very quick reply!

No way to prevent the error popup from appearing if the fleet has a fuel capacity over that limit.
Steve could maybe correct the issue for the next release.
In the meantime, you’ll have to avoid making superextradoublebig fuel fleets.

Thanks for the help!

Yeah, I will avoid making fleets with that much total fuel from now on. Splitting the logistics convoy into two separate fleets already seems to solve the issue completely.

Also, just in case it helps and it has not already been considered, maybe Steve could check if the fleet TotalFuel variable in C# is still using an int instead of a long (or something similar), since it looks very much like an Int32 overflow issue.

In any case, thanks again for the quick explanation!