RuneScape Wiki
Advertisement
This talk page is for discussing the Stackable items page.

Untitled[]

The limit is there because Jagex uses java, and they are using int. If they wish for a higher limit, they should use long.

  • I don't think this is true. Last time I looked at the code a short was sent for item stack amounts, and if the highest bit was set (that is, the number is negative), then an additional short is used to determine the value. The reason that you only get 2^31 - 1 is that one bit was used to indicate a large quantity. If Jadex wanted to they could repeat this process and easily store the value in a long, but they probably don't want anyone to have too much of any one thing anyways.Subanark 06:17, 5 February 2008 (UTC)

no your both wrong. it's because all those items have the same mass and 2,147,483,648 times that would cause a black hole and destroy runescape, jagex, and everyone's computers. so the game stops the singularity by creating counter gravity so great no item can pass the event horizon at 2,147,483,647. duh 70.201.30.237 23:00, 28 June 2008 (UTC)

  • I certainly hope for your sake you're kidding. Sorry, but that's probably one of the stupidest things I've ever heard. Except for those detox foot pad commercials... Kopachris 22:03, 21 July 2008 (UTC)

What happens?[]

If you try to get 2,147,483,647 of an item what happens? Like, if you have that much in your bank, will the game just not let you deposit another coin? Will the game crash? Will you just lose it all? 64.2.133.76 00:18, 5 March 2009 (UTC)

Yeah that would be hard. Getting 2billion coins ( its the easiest method because the value of a coin is exactly 1) would take centuries.

Just to comment on this, in RuneScape Classic, it is reported that if you deposit more than 2,147,483,647 of any item, you'll be disconnected and everytime you try to open up the bank, the same will happen; making the game basically unplayable.--Jlun2 (talk) 11:56, April 27, 2013 (UTC)

Does it really matter[]

well, i dont know about you, but im lucky to keep hold of 1 million, does anyone here have 2,147,483,647 gold? and if so.... SHARE THE WEALTH, but seriously, if you have 2,147,483,647 rune platebodies, do you need MORE? Corhen 21:18, 13 August 2008 (UTC)

I would care more about the Magic experience I would get from high-alching those ^^ Icy001 01:06, 30 September 2008 (UTC)



It is easy to create a class that keeps track of a giant number. I think it even is a standardclass in java. But jagex are not java experts. They are amateurs. Creating a class that handles BIG numbers n some methods for +,- etc. shouldn't even take an hour. But like the person abouve said. When u do get that much money u can start stacking up that amount in the most expensive item in the game. when u get that amount in that item u start with the second most expensive n so on. Unless you are smart n blow it all on stuff that gives u xp.....


it's because they cant count more then that: look @ wikipedia for UNIX Epoch, the same stupid problem


They could recreate the milleniumbug....(dates on computers use 2 ints, chars or whatever xx:xx, early unix programs with a clock like that didn't account for the fact that after 19:00 comes 20.00..so if u run em now on unix-like stuff the year is is 20:108(u see it as 20108) use an class with an int pointer, if once it gets to 1short of maximum length it adds one more in to the allocated array, meaning u can have a number twice the leangth of normal(though there is some loss coz it doesnt go from 0-99999(any number of nines, u lose a few bits, but considering 1int is enouth 2 go around 4 many ppl...2 goes even further an so on...) Coz java doesnt have pointers one would have to create a class that contains an instance of the class itself, and use recursive programming, ez as pie. (but there really is no need 2 solve the problem,) The interesting thing though is if they have anything that catches the eception/error when one get 2 much cash....or if rs crashes temporary....whould be funny!

any item stack in bank?[]

Is it true? Satchels and tea flasks don't stack in bank Serducho1 18:49, 1 November 2008 (UTC)

Search in memory finds unsigned ints[]

How? they are just bytes - you can't see whether they are signed or unsigned No really, you can't. If you find 0xFFFFFFFF how do you know whether it is -1 (signed) or 4.294.967.295 (unsigned)?

Java doesn't use unsigned ints. Butterman62 (talk) 21:45, 21 July 2009 (UTC)

Going over the limit[]

What actually happens if you try and go over the limit of the stackable items, and should this be in the article? TzTok-Gas talk 21:58, December 19, 2009 (UTC)

Unsigned vs signed[]

It doesn't matter that Java doesn't supports unsigned ints. It's just bits. With a little more code you can treat a signed int as unsigned int. Actually only division and up-casting to longs (which is trivial to implement, you just need to AND with 0xFFFFFFFF to remove the sign extension) would have to change, multiplication addition and subtraction remain the same (yes even multiplication, since it only gives the low half of the result), and of course the implementation of toString would have to change.


But of course it's probably not worth the effort.

If you have more than 2.147 billion of an item and you try to pick one up you will be prevented from doing so. That is what happens with max of any item.

How RSC displays 1B items[]

http://i.imgur.com/2vyCCdL.png

--Jlun2 (talk) 10:47, October 8, 2014 (UTC)

Seeds[]

this is missing all the seeds lul -AWE5ME 00:36, December 27, 2017 (UTC)

--Iiii I I I 00:48, December 27, 2017 (UTC)
Advertisement