Jump to content

Credits total restrained by 2^31-1, hitting signed 32-bit integer limit


Blaine

Recommended Posts

This one is really easy to reproduce with the /give <playername> <#> credits command, and isn't a bug per se. I went over the signed 32-bit integer maximum while trading legitimately, no cheats/server commands used until I hit the limit and needed to test (I would have had 2.5bn after the trade).

 

a1b9dabdd3.png

 

Giving yourself 1 credit or more after reaching this amount resets credits to 0. I recommend implementing a signed 64-bit integer, as none of us will live long enough to make that many credits in Avorion.

 

In the meantime, I'll keep track of my balance in Notepad++.  :D

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...