Number Limit

Where we find trouble with the latest release... and shoot it.

User avatar

Posts: 10

Joined: Thu Nov 23, 2017 10:34 pm

Post Sat Nov 25, 2017 6:22 am

Number Limit

What changes did you make to get the numbers go higher? On my server the score maxes out at just over 2 billion. Just wondering if there is a fix to put in the code or if it's part of the modifications you are running on your server.
User avatar

Site Admin

Posts: 211

Joined: Thu Apr 17, 2014 10:15 am

Post Sat Nov 25, 2017 5:25 pm

Re: Number Limit

newadmin wrote:What changes did you make to get the numbers go higher? On my server the score maxes out at just over 2 billion. Just wondering if there is a fix to put in the code or if it's part of the modifications you are running on your server.

We changed to BIGINT (20) which is a 64bit number which will give you either of the following:
Signed: -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
Unsigned: 0 to 18,446,744,073,709,551,615

Where as by default you normally get:
Signed: -2,147,483,648 to 2,147,483,647
Unsigned: 0 to 4,294,967,295

While you end up with bigger numbers the precision breaks, we were lazy and used BIGINT's due to it was easier than fixing the pricing of stuff.

I think we just changed the score to BIGIN (20) the rest can stay the same.
TheMightyDude::Blacknova Development.
Development Blog Twitter

Return to Troubleshooting



Who is online

Users browsing this forum: No registered users and 1 guest

cron