Login to ZARP





View BBCode Back »

TrueOverL wrote:
wait this is legit runescape max ammount lmao wtf?

2,147,483,647 [zarp adds +1]

??

That's the max amount you can have in a GP stack:
Jagex uses a signed 32-bit integer value which has a max value of +2,147,483,647. This can be represented as 0x7FFFFFFF in hexidecimal or 231 -1 . Java does not used unsigned values, otherwise the max stack size would be 4,294,967,295 for any item.

The next data type after a 32-bit integer is the 64-bit integer type called a long. The signed max value is 9,223,372,036,854,775,807, which is probably higher than the combined wealth of every player in game and useless to change to.

It's likely this is a similar, if not the same issue for the DarkRP game mode. Just hazarding a guess here, nor am I an expert in LUA, but the data type for any instance of a player object is a 32-bit integer or at least the value on the dropped money entity which is then stringified to display how much is there (to me in .NET terms an int, not long), read more at:
forum.facepunch.com/f/gmoddev/lngx/WARNI...ring-is-dangerous/1/

So what happens here, because you've gone over the positive limit for a 32-bit int, it starts from the lowest possible number, which is -2,147,483,647, i.e. en.wikipedia.org/wiki/Integer_overflow

But the real question is why the fuck would you drop 2.9 bil?

BBCode


Time to create page: 0.075 seconds

242 PLAYERS ONLINE

Connect to server View Gametracker DarkRP
16/127
Online
Connect to server View Gametracker Deathrun
0/40
Online
Connect to server View Gametracker TTT
0/47
Online
Connect to server View Gametracker Bhop
0/32
Online
Connect to server View Gametracker Surf
3/32
Online
Connect to server View Gametracker Prop Hunt
0/42
Online
Connect to server View Gametracker Sandbox
0/42
Online
Connect to server Discord
223/977
Online
Top