Refined Storage

Refined Storage

77M Downloads

Larger item abbreviations.

Opened this issue ยท 10 comments

commented

When you have over 100k items the number of items overflows slightly. To have 0.1M is better than 100k IMO. A result M (million) B (billion) and T (trillion) labels should be implemented.

(Sorry if they are already present, can't be bothered to wait to have a million cobble to find out ๐Ÿ˜†)

commented

I'll make K and M round to 1 number instead of 2, that saves space. B / T symbols aren't possible as itemcount can't go that high.

commented

Question:
So what would happen if I had over a billion items? At what point would something overflow when I have enough items?

commented

Max signed integer would be an issue so: 2,147,483,647 (2 billion something)

commented

What are the chances of you reaching more than a billion items though?

commented

An interesting way to get around it would be to create a second "stack" of items when it reaches 2 billion. So if I had 3 billion cobble I'd see a 2B stack and a 1B stack in the grid.

commented

Not impossible. ๐Ÿ˜ cobble generators can be scaled up pretty well. Compacting storage drawers hold a lot of items. Works very well backwards, say I have a million iron blocks, that's 9 million ingots and 81 million nuggets. Super circuit maker adds tiny pile of redstone which is 1/9th of a redstone.

commented

It won't be possible either way, even if I split them up. It still has to combine them. And RS uses MC itemstacks which have the integer limit.

commented

OK, thanks. I won't try to get over 2 billion cobble then ๐Ÿ˜›

commented

I can probably make it so it doesn't overflow, and stays at INT_MAX.

commented

There ^ It will no longer overflow and stay at the maximum value if you go over the limit.