@@spacecadet0 I wouldn’t say it’s game breaking because you still have to find the items in the first place and you can still play the game other then that.
The 32 bit integer limit is 2,147,483,647 and since the mines are also stored in that number, 2,147,483,647 - 120 = 2,147,483,527 The game cannot pass the 32 bit integer limit as it'll just crash after or go back to 0 or to - 2,147,483,647
What's interesting is that TH-cam used the 32-bit integer for it's view counter. PSY's Gangnam Style music video reached the view counter limit forcing TH-cam to upgrade it's counter to the 64-bit integer.
Yep, this is the reason it's a max number in a lot of games. Max map space for minecraft, max cash stack for the majority of MMOs, most of anything you can really have in a stack in any game.
For anybody wanting to know reason behind that number, here it is: 2147483648 + 120 (the number of floors in the regular mine) equals 2³¹. This means that the floor number of the mine and skull cavern is stored using 32 bits in the memory. The 1st bit is probably always 0 as the floor number is never negative (a 1 as tge first bit will always give a negative value in most instances with binary) a so the 1st bit is practically not used and only the next 31 bits are used. The largest number, therefore that the floor number can be is 2³¹. But 120 of the floors belong to the mine so the largest skull cavern floor number is 2³¹ - 120.
what is funny, is that for the pure value of a 32bit int 121 floors are missing, that means that the 120 floors from the regular mines are on the same int varible, wich explains the bug from the start of the video, where u could staircase in floor 120 of the regular mines and get into skullcavern bcs 2^32 would be 4.294.967.296 divided by 2 bcs +- gives 2.147.483.648 deepest flor in skullcavern is 2.147.483.527 so 121 floors difference
Going by the depth of skull cavern, assuming it doesn't teleport you to some weird pocket dimension and assuming each floor is about 10 feet, the planet stardew valley is on is about 500 times the size of planet earth, just going off of this size alone. Since you haven't even hit the mantle yet, it's either even larger, or the composition of their planet is completely different to everything else in existence. The people that live here have to skeletal structure of pure titanium to not be crushed the gravity. Moreover the pressure as well as heat of skull cavern's bottom floor would be so intense it probably should just kill everything, mumps and monsters included. Pam would probably be fine though.
DF: The final floor of Skull Cavern is floor number two billion, one hundred and fourty seven million- Me, a computer science student: oh no NOT THIS AGAIN
@@z0orb it's actually 120 less, but since the game considers floor 1 of skull cavern floor 121, (as seen in a previous glitch) the value of the bottom of skull cavern is 120 less than the 32-bit hard limit
I'm a little impressed that the developer (edit: yes, ONE developer, I get it!) took the time to ensure that attempts to bypass the limit simply failed instead of crashing the game.
Yeah, that's definitely the interesting part here. I was expecting the floor count to overflow or the game to just crash. It's understandable most other games seem to ignore integer overflow problems with 32 bit integers, cause there's no way you're getting to that obscenely high of a number without already having clearly broken or modified the game.
I don't think the devs did it I think it was just the game doing what its supposed to if the devs put time in it I think they would've done something special
Since I don't see it pinned, the reason is basically just that the floor level integer has a maximum value based on how many bits it contains. Its genuinely impressive that Concerned Ape took the time to create exceptiom handling for this that prevented the game from crashing
Interesting though because a 32 bit integer should be 2,147,483,648, that 527 is strange I think the 121 difference is the 1 offset (2^32/2-1) + the 120 mine levels
It could have rolled over unto the first level of the regular dungon @pudding143 true my mistake, ment more that it would have been more fun if it had sent him back to floor 1 of the regular dungon, but you are correct that is not how integers works unless specifically set to it
its weird since that was my EXACT gear when going to skull cavern. well until a mystic stone spawned in my quarry and gave me a prismatic shard in which i got the galaxy sword edit: ik this is a year late reply
I bought the lava sword, then literally 2 days later got a shard from omni geodes, i was happy but also genuinely tilted fot the wasted 25k, to the point that i shafted the lava sword even though i only got 500g for it :p
I got a prismatic shard, didn't know what it was and donated it to the museum, now I've found out what it does and I've been struggling with the skull cavern mine, big rip 😭
Using pixel measurements and some math I was curious how deep that would actually be. Harvey is about 6'2 or 188 centimeters. Harvey is 34 pixels tall which is 5.529 centimeters per pixel. The cave walls of Stardew Valley in skull caverns are 63 pixels tall 5.2941176471 x 63 = 348.353 CM per floor, or about 137 feet. If you multiply 348.353 by the 32 bit integer which is the max number of floors, then convert centimeters to kilometers you get an astounding 17480822.02758 KM deep into the earth. For reference, the earth is only 6371 KM thick, so Skull caverns is as deep as around 2744 earths! Thanks for reading, this was fun to calculate.
so assuming each floor is about 10 feet high (for simplicity) the entirety of skull cavern is 4,067,203 Miles deep. But the diameter of the earth is only 7,197 Miles, meaning skull cavern has to loop around the entire world multiple times. If we assume it stays just below the surface the entire way we can use the earths circumference of 24,901 Miles to figure out that it loops around the earth a total of 163 times. for further reference, skull cavern is over 300 times longer than the Great Wall of China, it more than qualifies to be a world wonder, and DF just sets off bombs in it.
or stardew valley takes place on planet that has a diameter of 8m miles, a circumference of 25.5m miles, and a surface area of 708 trillion miles. that's roughly 10 times bigger than the sun. a planet of that size and earth like material would surely collapse on itself into a black hole
Lol I had the same idea except with 7ft ceilings. With 7ft ceilings it comes out to 2,847,042 miles which would be 12 trips to the Moon and back to the surface of Earth 😂
The skull caverns are actually a labyrinth under the planet with a strange gravity of their own making you think you're falling down but actually spiralling across and into the planet. (Thats my explaination 😂)
"...the entirety of skull cavern is 4,067,203 Miles deep." "...skull cavern is over 300 times longer than the Great Wall of China." Well...you're not wrong, I guess.
it's related to the 32-bit integer limit. this game uses that sistem too, so it can't count bigger number than 2,147,483,647 (2,147,483,527+120 mines). The same happens with gold if you go over that limit you'll get negatve numbers.
The reason for such the high number is that the number 2,147,483,647 is the max you can go before it overflows and jumps to an insanely low negative number. However, you'll notice the number here isn't 2,147,483,647, but rather 2,147,483,527. Well, if you remember what DF said about the 120 floor glitch with the bomb, and how the 121st floor is just the 1st floor of skull cavern, that's exactly it. 2,147,483,527 + 120 = 2,147,483,647, the max limit of the 32 bit integer limit.
@Edward Thang Is this a dword value that can be changed with cheat engine? Why not split the data into an array of two sets? I'm no expert, and I should probably brush up on my computer science and math stuff again. Anywho..
which makes you wonder WHY he decided to use an i32 to store the level depth, considering you weren't likely to ever get past 1000 or so. I believe minecraft used a u16 for their map data (65536) which would have been plenty
@@joshdevio because it's just... easy? considering the way the floors are procedurally generated, it's likely that the level depth is literally just a signed int. It looks like he just made a check to prevent overflow. ConcernedApe never intended anyone to reach the bottom of Skull Cavern with conventional means, it's meant to be impossible unless you're cheating. The overflow prevention is probably just there to keep unexpected corruption from happening.
@@granderondeproductions3286 this value can't be changed by regular users, you can enhance it as developer by changing the data type from integer to long.
So, the start of Skull Cavern is definitely being treated as "Floor 121" in game.. and the final floor is just Maxed-Signed-Integer of the 64 bit system.. minus 120 (indicating it *was* max signed integer and shifted slightly for the display in the top left). Super neat! And, good on the developer for having checks in place to keep the game from crashing due to integer rollover. Thanks for finding this!
if you find a shaft on every floor and every floor drops you say like 7 levels and it takes you about 2 seconds to locate and jump down the shaft then what does that add up to
@@blueflamefae7898 If the floor count was updated to 64 bit instead of 32 bit, floor 9223372036854775808 would take 83563202479.2960 years. Further, if a long double at 128 bit was used as the data type to store the number, floor 170141183460469231731687303715884105727 would take 1541469010115144884138647022141.44475 years.
If you really Really REALLY want to calculate that, then you have no choice but to assume a fixed value per floor. First mine the first floor and ship the contents and then multiply the total amount with 2,147,483,527.
@@codingking9000 That simplistic of a calculation would never work as the floors have multiple layouts that drastically alter available space for the various available item types and their spawn rates the deeper you go, though you've got the very general idea. This is more a question/challenge for a person like Blade, who searches the code and calculates much of the numerical and percentage information regarding Stardew Valley that we know today. I know ConcernedApe is still working his way down Skull Caverns floor-by-floor, though I can't remember what floor he'd reached, last I heard; my memory just hates me like that.
Recognized the number, it is close to the 32 bit integer a max limit for 32 bit engines which is 2,147,483,647 and this number is the same as skull cavern plus the normal cavern since in is technically a continuation of that the first floor of skull cavern is 121 so by proxy the the lowest floor is the 32 bit integer, also assuming. you can do 1 floor a second it would take about 74 years
If you managed to do the 700 floors (presumably in a single in-game day) that DF mentioned, it would take around 114 or more years to get to the bottom, granted you had a mod that gives you an elevator.
@@AchiBellarosa464 that's assuming you do it "legitly", but I was assuming that time was frozen and you are Immortal in really life just to get the simplest start to finish number
you asked about those grey stones on the deepest floor, DF, here's your answer: Those bigger, dark grey stones are 'stone ore', so to say. They give you more stones than a normal rocks, and, as one can see from your video, clusters of different ores are possible to spawn in iridium-only floors. So, instead of a cluster of copper, iron or gold, you simply got a cluster of, well, stone.
I was actually going down the skull cavern then I got tired so i just searched this to know the bottom floor, and boy what a good choice I made. Imagine the resources I must have wasted
Thank you for doing this for me. I'm rather disappointed that ConcernedApe didn't have SOME kind of surprise coded in, but my hat is off to him that the game doesn't crash.
@@patrickrocheleau8185 The thing is its a signed integer, meaning that it has both positive and negative numbers, with the negative using the final bit. It would increment past that and end up at -2147483647.
It's really interesting that game creators were prepared for someone reaching the int value in floors. It's like they predicted someone would be crazy enough to go there EDIT Btw even if you used the mod that skips 1000 floors, it would still take over 8 days straight. Without mods it would take 34 years straight at best, meaning that assuming your PC doesn't break it would be a multi-generation feat
Unfortunately as it's procedurally generated, they weren't prepared for it, it was just the physical limitations the game would allow. Would be very cool if ConcernedApe had prepared for it and put something special on the last floor though!
Alexander Rollison Theoretically, it isn’t difficult to implement a couple checks before and/or during floor generation. Not sure how the dev implemented it, but one way would be to check the current floor against a preset variable. If the value is equal to or greater than the limit, then you could simply fail to generate a floor. The load times are very speedy, which suggests that the next floor could be generated in advance before you actually do go down, probably before ladders are ever generated. In this case, a failed floor generation can return a value (a boolean perhaps) that can be used to prevent further progression. Shafts would probably require special handlings due to their variability. This video didn’t display the behavior of shafts within reach of the bottom floor, so I can’t say with any certainty how it will handle potential overflow situations. The safest means I know of would probably involving generating the random number (floors to jump down by) in advance, then run a loop in the background to increment the floor value while running the checks against the floor limit. If the limit is hit, then the difference returned will be the amount of floors you skip, preventing further progression.
@@kyroh-bf2tf You forget the original 120 floors in the mines Add those to the massive number of levels in skull cavern and you get the limit^^ As the “121st” floor of the mines was Skull Cavern #1 until the bug was patched^^
If someone wants to know why it's the limit: An integer in programming languages is usually 2^32 big or in other words it can count up to 4.294.967.295 but because we have negatives and positives it goes from -2.147.483.648 to 2.147.483.648. So what happens if you hit 2.147.483.649? Right it goes back to -2.147.483.648. I guess the level -8 is a compiler error following this logic.
BunnyJumps Interesting, so since the regular mine is included as part of the levels (seeings as skull cavern level 1 is counted as level 121) the floor number DF lands on makes sense. I has a question! Do you plan on releasing the skull cavern level jump mod for the public? Asking for me 👀
-8 would probably be the result of integer overflow, which explains the crashing. A neat trick I show students is counting up and show how it wraps down to MIN_INT after MAX_INT, because of how 2s Compliment binary works.
@@Cyrathil Yeah, it's pretty simple. The first bit usually declares if the number is positive or negative. So going from 01111...(31 1's) to 1000...(31 0's) increases the number from 2147483647 to 2147483648 - Though since it's already in the negative domain (1 as first bit) it's translated to -1 in common programming languages
I noticed that during the Community Center Completion cutscene, all the NPCs have dialogue bubbles. Can you use your modded shenanigans to see if they really have anything to say?
Wait... they patched out the secret ladder on floor 120? Oh no... I was hoping to take my more action-based friends to Skull Cavern early to make the experience a bit more fun for them...
It's the limit because the floor number is stored as a 32 bit signed integer. So 31 bits of precision and 1 sign, means 2^31 possible floors. We ignore the fact that it can be negative as this is just the way that the integer is stored. So 2^31 = 2147483648
Anyone who watches AntVenom’s Minecraft videos knows by heart that that number (around 2.14 billion) is the 64-bit integer limit. Most games have this number as a limit in the code at least once.
Erm actually no, 64 bit limit is (2^63)-1 which is exponentially higher than this (exactly 2^32^2÷2-1) or a little more than 9.2 quintillion (won't bother typing a 19 digit number) This case, on the other hand, is actually a 32 bit limit which is 2^31-1 which is 2147483647 or the maximum floors
I think the Grey rocks are technically different than the brown ones. They always seem to drop multiple rocks, my theory is they are "ore nodes" that drop rocks.
So concerned Ape expected you trying that and implemented a function that sets you to the lowest floor every time you pass this floor. Otherwise you would be sent to to floor -(max int lenght)
The bottom of skull cavern is the upper limit of an int32 number minus 120 floors for the mines. It would crash if it passed that limit, so most games loop back to the beginning (which is the same limit but negative) or in the case is Stardew Valley it looks like it prevents the number from incrementing
@DangerouslyFunny I'm pretty sure someone already pointed this out. Stardew Valley is a 32bit game, The number 2,147,483,647 (or hexadecimal 7FFFFFFF) is the maximum positive value for a 32-bit signed binary integer in computing. I added 120 to 2,147,483,527 because the mines do count as the first 120 floors. So basically you reach the end of the possible numbers generated in hex value.
Computers use a base 2 number system, i.e. looking at things in the form 2^(x). Our society generally uses a base 10 number system, which is why base 2 numbers might look a little weird to the human eye. You’re used to organizing numbers in terms of 1, 10, 100, 1000, etc. but a computer thinks of things in terms of 1, 2, 4, 8, 16, etc. In this case, 2^(16) = 2,147,483,648. So, ending at 2,147,483,648 is similar to ending at something like 1,000,000,000,000 in the base 10 number system that you’re used to. It just makes sense to end at an even number like that, and makes the most of the memory available. The size of the memory set aside for rooms in this area was probably 2^16 (aka, an integer with a limited memory size of 2^16). In Stardew Valley, the skill cavern number is a little less than 2,147,483,648 but very close. I’m guessing that ~100 extra rooms were set aside for other locations in the desert or something. Either way, seeing something so clearly based on a base 2 number system is typical for anything with computers!
geez, you CAN go lower, yet you don't know? i mean, it's not in skull cavern, but i think you did make a video on it what video it was? "marry Pam" of course!!
2147483527 is not far off the 32-bit integer overflow value (probably like 100 off or something) so my vaguely educated guess would be that when you consider all of the components that go into each floor, this is the highest number that can be reached without hitting the integer overflow. Concerned Ape probably put something in place to prevent overflow, or maybe the software used to develop the game has built in features that prevent it, but yeah. It's most likely just to prevent overflow, which would break the game and cause all sorts of crazy crap. For those interested, computers don't count up in ones like humans do, they use binary. The integer function in many programming languages is naturally 32-bit, because then it can be run on both 32 and 64-bit computers. Also usually software engineers don't need 64-bits worth (which is like 9 billion or something) of information, whatever it may be (money, health, exp etc.). Often this will be like a max limit for things in games, providing there aren't other limiting factors (like weight loads preventing you from pocketing 2 billion healing potions in Skyrim). I'm a physics student not a computer science student, so if some of this is a little off my apologies. Edit: I hadn't fully watched the video before posting this, but yeah, that -8 floor is what I was talking about, the game code overflowed and ended up back at zero but you obviously can't go to the zeroth floor so the game doesn't know how to deal with it and it breaks.
From what I know you are right the difference is not far off the 32 bit integer value. I learned it by watching a video explaining how because of the 32 bit integer that if you go past that many blocks out by getting out of the world border the world itself breaks. Now I didn't compare the difference in floor level by removing bottom most floor number from the 32 bit integer number but I have seen a few people saying the exact difference is 120 I believe. And 120 is how many floors there are in the normal dungeon / the mines which as shown by that old bomb glitch that DF mentioned skull cavern floor one is technically the next floor below the mines floor 120 making skull cavern floor one technically floor 121 which means that the difference if the other comments I saw were correct then basically you do hit the 32 bit integer but it just doesn't look like you do because it calls the first floor of Skull Cavern floor 01 instead of mines floor 121. At least if what I have seen in some other comments is correct.
Getting to floor 2,147,483,527 in one lifetime without cheating? Is it possible? Here is a rough math breakdown coming from me. (Not a math buff by any means.) I got some of this info from Wiki. Lets Start with this. "Time is the process in which Stardew Valley proceeds. Each day is 24 hours, and each hour is sixty minutes. Time passes in ten minute intervals. Each interval equates to about seven seconds in real-time. There are 7 days per week. An hour of the game consumes 42 seconds of real-time. From that, we can assume that a full game-day duration is about 17 minutes." So if each day is 17 minutes of real life time. And the record for legit vanilla (No modded help etc.) Skull Mine Depth is 500ish give or take 100 or so? Is that true? I don't know even on a full day and really good luck I have hard time getting to 100. My record is 115 ish. But in the video you said you got to 500! I don't know if you used a little help from like a time slow down mod but you said others have gotten a little further? So I'm going to use 750 floors as a value for the current record for vanilla. I don't know how wrong that is. But I assume it's very difficult to beat that? Heck personally I think it's absolutely impossible but after seeing speeds runs and Good Games Done Quick anything is possible. But it's better to over estimate when it comes to the math I'm about to do. And it's fair to assume that 750 is over estimating. So 750/17 = about 44.117 floors per minute. More Info from Wiki. In Canada, the average life expectancy was 80 years for males and 84 years for females in 2018. So I'm going to pick 85 years as general over estimation. I'm also ignoring work, sleep, eating, bathing all that does not matter. So 85 years of dedicating time traveling downward in Stardew Valley Skull Mine. So that alone is a MASSIVE over calculation. 85 Years = 44,676,000 Minutes 44,676,000 ( 85 Years ) x 44.117 ( Floors Per Minute ) = 197,097,109.2 (Floors Deep) So yeah the average Canadian or let just say person if they started mining downward in Skull Cavern the moment they were born till the there death. On average without sleep, work, eating, or anything else they would be extremely lucky to reach just floor 197,097,109.2 (Target Floor) 2,147,483,527 / (Projected Maximum) 197,097,109.2 = 10.895. So even after all this we are still off by 10.985. So even 10 lifetimes would not be enough. And I'm to lazy to figure out how much time someone has to eat, sleep minimum there whole life and deduct the ages where someone is to young. Like the 1st 4-5 years of there life. The real calculation is at best half of the one I put up. Like any real person trying this would have to eat, sleep etc... So DangerouslyFunny your 100% correct when it comes to billions of pretty much anything it's beyond human life time.
Concerned Ape used an int primitive data type to store the value of the floors. An int data type can count up to the value of 2,147,483,647 or 2^31 - 1. If you subtract the amount of floors in the regular mines you get 2,147,483,527
7:50 The Integer Value Range already got posted You would need roughly 204 Years and 288 Days to get to that level with an theoretically infinite supply of stairs.
The dev must of added error checking for the floor switching function, 2.147 billion is the signed 32 bit integer limit, after that it overflows to negative so floor -2.147 billion, it's interesting that the dev likely adding this error check for such an impossible event without mods, but if modding was an early though in development it may have been put in the game for that purpose incase modding allowed playing to get to that floor. Great skill thinking ahead by the dev if the error checking was put in rather than a built in engine feature.
I just celebrated my 1 billionth second alive at (around) 31.5 years, so if every floor took about a second, you could do it before you turned 70. Easy.
If I had to guess with my extremely limited programming knowledge it probably has to do with the limit on the size of integers within the language. Or whatever other variable type they decided to use.
I was expecting for the skull cavern to roll over when you tried to go to floor 2,147,483,528. What I mean is that I was thinking you might have ended up on floor 1 of the mines. Though I think the dev's didn't put in a roll over feature for the 32 bit integer limit mostly because it isn't possible to hit that low of a floor without cheating.
Well, this video is kinda old but here an explanation if some one is still interested of wht I think is happening: The data type storing the level of the cavern is called an integer, which can not hold a larger number then 2 147 483 647. If you subtract the 120 levels of the normal mine you get to 2147483527, the last level that the skull cavern can physicly generate. This can actually be seen in a lot of games/programs where there is no need for huge numbers and since 2 billion is more then enough to acount for a normal play through, developers often to choose to use integer instead of other variables to save some space. It is nice to see though, that the game actually "handles" higher numbers with simply not reacting to the input, often this would crash games or cause some weird glitches. Hope that was interesting if someone actually read this xd
If we assume that the ceiling of each floor of the Skull Mine is a standard 8 feet, and that we aren't tunneling through the centre of the planet, that would mean that the planet that Stardew Valley is on is roughly 256 times the size of Earth :^)
If I did math right, and you didn't eat, sleep, or do anything else, AND had infinite ladders, and you placed one ladder every 5 seconds, presuming that's how long it takes to place it, scroll to the next ladder, and go to the next floor, it would take approximately 341 years to get to the bottom. So it is possible. If you use a bunch of people constantly swapping around in shifts as they die.
Kudos to game dev. The counter did not flip to - when you tried go below "maximum deep" :D 6:57 its a data type. long int limit is −2,147,483,647 to +2,147,483,647 and i'm guesses that the missing 120 went for mountain mine.
*dies on floor 2.14 Billion*
"We found you down there while I was gathering materials, be careful next time"
xD
You forgot 103,967 floors!
LMFAOO
How in the world can someone get down trere? If they do the this is the message I will give them: WHAT THE -. This was canceled because of language
lmao
Clicks final ladder
*screen turns white and fades to black*
*a wagon slowly begins to fade in*
“You’re finally awake”
megaduffpuff 24 eyes open in shock I HIT THE BOTTOM OF SKULL CAVERN FOR NOTHING?!
“?”
STARRIM
Yes just yes
You were trying to cross the border, right?
Walked right into that Imperial ambush, same as us, and that
thief over there
If you go down that final ladder you actually end up in the vast emptiness of the void that is Pam’s capacity to drink.
Lol
*pams stomach
STOP FOLLOWING ME
You end up in the error void of variable overflow
Its the 32bit integer limit
All of us computer science nerds instantly recognized the 32-bit signed integer limit coming into effect
@Jackson Stein That probably explains why the exploit took the player to the first Skull Cavern level on level 120.
@Jackson Stein 120 floors in the mines explains this perfectly.
Long int brooo
Lol, yep. Count me in the nerd herd.
I know it just because i play video games and this integer limit is in a lot of games, its the maximum cash stack in runescape for example
Imagine being so pro at stardew that you just decide to sell primsatic shards and not hoard it for infinite time.
When infinite shards is just a full inventory and a chest organize button away....
@@spacecadet0 Is that a glitch? I've never heard of that
@@alyssahopson5926 game breaking bug, but fun if you're not into playing the game legitimately.
@@spacecadet0 I wouldn’t say it’s game breaking because you still have to find the items in the first place and you can still play the game other then that.
@@peters3595 well yes, it's not broken in the sense of unplayable but broken in the sense that the economy doesn't need to be used, if you choose.
i love how you leave 21474936527 floors by simply climbing a single ladder and it takes no time at all
Fairly certain he has a mod to teleport down floors
@@potatogames5410 🤦♂️
i meant that one ladder that makes you leave the skull cavern
@Potato Games facepalm*
@@potatogames5410 holy shit
The 32 bit integer limit is 2,147,483,647 and since the mines are also stored in that number, 2,147,483,647 - 120 = 2,147,483,527
The game cannot pass the 32 bit integer limit as it'll just crash after or go back to 0 or to - 2,147,483,647
Max cashstack on runescape
I knew that number looked familiar...
What's interesting is that TH-cam used the 32-bit integer for it's view counter. PSY's Gangnam Style music video reached the view counter limit forcing TH-cam to upgrade it's counter to the 64-bit integer.
Yep, this is the reason it's a max number in a lot of games. Max map space for minecraft, max cash stack for the majority of MMOs, most of anything you can really have in a stack in any game.
I totally forget about the 120 mine levels and I was trying to undertand the "missing" Skull Cavern levels.
The idea of ConcernedApe watching this and grinning as DF finally fails to break the game. That is an idea I cherish very much.
Kind of wholesome
Who is ConcernedApe?
dandon lavis the creator of the game
@@worldtrademark_ What the guy above me said. (He didn't properly mention you).
Brabo
If it took you one second PER FLOOR, it would take 63 years in real life to reach floor 2 billion.
wh- you on second?- WITH THOSE ANNOYING PIECES OF- monsters u have- no no im done I don't exist we don't exist
The Star Gang Are you challenged?
Holy fuck
@@NeroCat9999vr TOO MUCH
So its possible
For anybody wanting to know reason behind that number, here it is:
2147483648 + 120 (the number of floors in the regular mine) equals 2³¹. This means that the floor number of the mine and skull cavern is stored using 32 bits in the memory. The 1st bit is probably always 0 as the floor number is never negative (a 1 as tge first bit will always give a negative value in most instances with binary) a so the 1st bit is practically not used and only the next 31 bits are used.
The largest number, therefore that the floor number can be is 2³¹. But 120 of the floors belong to the mine so the largest skull cavern floor number is 2³¹ - 120.
He should used BigInteger XD
Thanks, I was going to write that.
As soon as I saw it be maxed in that range I thought "32 bits"
I agree
what is funny, is that for the pure value of a 32bit int 121 floors are missing, that means that the 120 floors from the regular mines are on the same int varible, wich explains the bug from the start of the video, where u could staircase in floor 120 of the regular mines and get into skullcavern
bcs 2^32 would be 4.294.967.296
divided by 2 bcs +- gives 2.147.483.648
deepest flor in skullcavern is 2.147.483.527
so 121 floors difference
Going by the depth of skull cavern, assuming it doesn't teleport you to some weird pocket dimension and assuming each floor is about 10 feet, the planet stardew valley is on is about 500 times the size of planet earth, just going off of this size alone. Since you haven't even hit the mantle yet, it's either even larger, or the composition of their planet is completely different to everything else in existence.
The people that live here have to skeletal structure of pure titanium to not be crushed the gravity. Moreover the pressure as well as heat of skull cavern's bottom floor would be so intense it probably should just kill everything, mumps and monsters included.
Pam would probably be fine though.
Don't you mean a skeletal structure of pure iridium? 😁
Considering its freakishly large it could have a very low density too
Are you jesus
@@Xaos1851 *"have ya heard of Jesus"*
The mighty Pam can withstand anything
To the core of the Earth, Pam still waiting on the bus
Assuming each floor is ten feet. It would already clear through one end of our sun and out the other.
The bus has 1 seat and the rest is just filled with beer.
wait isnt it 2019? i thought the earth became flat in 2018 so there are no core in a flat earth. Kappa
@@jimirio4191 LOL
Assume that a "floor" is 20 feet.
That means that DF was 81 million miles under ground.
The sun is *only* 93 million miles away.
*confused and scared screaming*
It's getting hot here buddy...
Lol but I don’t think you are taking into account the space between floors
@@sIimepoop yeah that would be at lest 10 is feet between floors just so they don't collapse on its self
@SlimePoop he is at the sun
DF: The final floor of Skull Cavern is floor number two billion, one hundred and fourty seven million-
Me, a computer science student: oh no NOT THIS AGAIN
whats that?
@@zkun3230 32 bit hard limit
Minecraft's command number limit is this number
@@z0orb it's actually 120 less, but since the game considers floor 1 of skull cavern floor 121, (as seen in a previous glitch) the value of the bottom of skull cavern is 120 less than the 32-bit hard limit
@@pimplylittlepoopoo6594 theres also the floor with the gold scythe, does that count?
When you go down one more floor, you wake up on a wagon and someone says, "Hey, you. You're finally awake..."
Alan Li You were trying to cross Stardew Valley’s limits, right?
Take the comment off now
Walked right into that imperial ambush same as us and that theif over there
While if we're no memeing then you would go to -2147483527
The way you are such a loser for copying comments you would probably fall all the way down to the last floor
>Haven't watched DF in a while
>Sees new video, title intrigues me
>Clicks on video
>Marriage, child, sacrifice, divorce
*It's like I never left*
Swordslash as of now oh have 666 likes
So tempted to like, but I just cant
Noice
Dwarf fortress? Cause thats apt too
Why does he do that marriage gimmick?
I'm a little impressed that the developer (edit: yes, ONE developer, I get it!) took the time to ensure that attempts to bypass the limit simply failed instead of crashing the game.
Yeah, that's definitely the interesting part here. I was expecting the floor count to overflow or the game to just crash. It's understandable most other games seem to ignore integer overflow problems with 32 bit integers, cause there's no way you're getting to that obscenely high of a number without already having clearly broken or modified the game.
I don't think the devs did it I think it was just the game doing what its supposed to
if the devs put time in it I think they would've done something special
You mean dev right?
Eric Barone developed the entire game by himself. Art, music, programming, everything.
@@jasongibson1225
Quite right! I stand corrected.
Since I don't see it pinned, the reason is basically just that the floor level integer has a maximum value based on how many bits it contains. Its genuinely impressive that Concerned Ape took the time to create exceptiom handling for this that prevented the game from crashing
Wait a minute... THAT'S THE 32-BIT INTEGER LIMIT!
Many games (e.g Minecraft) crash after passing the 32-bit integer limit.
Why not give it a 64-bit integer limit?
Interesting though because a 32 bit integer should be 2,147,483,648, that 527 is strange
I think the 121 difference is the 1 offset (2^32/2-1) + the 120 mine levels
@@justinbuergi9867 Probably because nobody would even get to the 32-bit integer limit.
It could have rolled over unto the first level of the regular dungon
@pudding143 true my mistake, ment more that it would have been more fun if it had sent him back to floor 1 of the regular dungon, but you are correct that is not how integers works unless specifically set to it
@@justinbuergi9867 then someone would have asked why not a 128 bit limit and so on
*Holds obsidian sword and gold pickaxe, Only able to get to floor 8*
its weird since that was my EXACT gear when going to skull cavern. well until a mystic stone spawned in my quarry and gave me a prismatic shard in which i got the galaxy sword
edit: ik this is a year late reply
@@wqfled pat pat :3
I bought the lava sword, then literally 2 days later got a shard from omni geodes, i was happy but also genuinely tilted fot the wasted 25k, to the point that i shafted the lava sword even though i only got 500g for it :p
well, with galaxy sword I died at the very first level :(((
I got a prismatic shard, didn't know what it was and donated it to the museum, now I've found out what it does and I've been struggling with the skull cavern mine, big rip 😭
Skull Cavern: I have no bottom
Integer overflow error: aha, once again limited by my powers of 2
Using pixel measurements and some math I was curious how deep that would actually be. Harvey is about 6'2 or 188 centimeters. Harvey is 34 pixels tall which is 5.529 centimeters per pixel. The cave walls of Stardew Valley in skull caverns are 63 pixels tall 5.2941176471 x 63 = 348.353 CM per floor, or about 137 feet. If you multiply 348.353 by the 32 bit integer which is the max number of floors, then convert centimeters to kilometers you get an astounding 17480822.02758 KM deep into the earth. For reference, the earth is only 6371 KM thick, so Skull caverns is as deep as around 2744 earths! Thanks for reading, this was fun to calculate.
Dude you must be a mathematician
@@germanandres24 No just someone who's bored and has way too much time
@@Kaircic so a mathematician
Your parents must be proud
I think you misplaced a decimal, shouldn't the floors be 13.7 feet and not 137 ft?
"If I'm not breaking the game, I'm just not trying hard enough."
This entire channel in a nutshell.
My life in a nutshell
so assuming each floor is about 10 feet high (for simplicity) the entirety of skull cavern is 4,067,203 Miles deep. But the diameter of the earth is only 7,197 Miles, meaning skull cavern has to loop around the entire world multiple times.
If we assume it stays just below the surface the entire way we can use the earths circumference of 24,901 Miles to figure out that it loops around the earth a total of 163 times.
for further reference, skull cavern is over 300 times longer than the Great Wall of China, it more than qualifies to be a world wonder, and DF just sets off bombs in it.
or stardew valley takes place on planet that has a diameter of 8m miles, a circumference of 25.5m miles, and a surface area of 708 trillion miles. that's roughly 10 times bigger than the sun. a planet of that size and earth like material would surely collapse on itself into a black hole
Lol I had the same idea except with 7ft ceilings. With 7ft ceilings it comes out to 2,847,042 miles which would be 12 trips to the Moon and back to the surface of Earth 😂
7000 IQ
The skull caverns are actually a labyrinth under the planet with a strange gravity of their own making you think you're falling down but actually spiralling across and into the planet. (Thats my explaination 😂)
"...the entirety of skull cavern is 4,067,203 Miles deep."
"...skull cavern is over 300 times longer than the Great Wall of China."
Well...you're not wrong, I guess.
I thought I was getting click baited, was entertained and informed. that's a rarity on youtube gaming videos. GG
Such an unexpectable meet...
Uhhhh how r u here???
Journey To The Center Of The Earth: Pixelated
🤣
it's related to the 32-bit integer limit. this game uses that sistem too, so it can't count bigger number than 2,147,483,647 (2,147,483,527+120 mines). The same happens with gold if you go over that limit you'll get negatve numbers.
He should have used an unsigned integer. ;)
I don't think that happen with gold. Oh nvm.
The reason for such the high number is that the number 2,147,483,647 is the max you can go before it overflows and jumps to an insanely low negative number. However, you'll notice the number here isn't 2,147,483,647, but rather 2,147,483,527. Well, if you remember what DF said about the 120 floor glitch with the bomb, and how the 121st floor is just the 1st floor of skull cavern, that's exactly it. 2,147,483,527 + 120 = 2,147,483,647, the max limit of the 32 bit integer limit.
@Edward Thang Is this a dword value that can be changed with cheat engine? Why not split the data into an array of two sets? I'm no expert, and I should probably brush up on my computer science and math stuff again. Anywho..
which makes you wonder WHY he decided to use an i32 to store the level depth, considering you weren't likely to ever get past 1000 or so. I believe minecraft used a u16 for their map data (65536) which would have been plenty
@@joshdevio because it's just... easy? considering the way the floors are procedurally generated, it's likely that the level depth is literally just a signed int. It looks like he just made a check to prevent overflow. ConcernedApe never intended anyone to reach the bottom of Skull Cavern with conventional means, it's meant to be impossible unless you're cheating. The overflow prevention is probably just there to keep unexpected corruption from happening.
@@granderondeproductions3286 this value can't be changed by regular users, you can enhance it as developer by changing the data type from integer to long.
My one prog class in uni that i actually just abandonned is feeling useful right now because I know what you are talking about 😂
Will DF ever satisfy his lust to break stardew valley? Find out next time on dragonball z
Apparenly
So, the start of Skull Cavern is definitely being treated as "Floor 121" in game.. and the final floor is just Maxed-Signed-Integer of the 64 bit system.. minus 120 (indicating it *was* max signed integer and shifted slightly for the display in the top left).
Super neat! And, good on the developer for having checks in place to keep the game from crashing due to integer rollover.
Thanks for finding this!
From my calculations, if you have maxed out luck and find a ladder every time you break a rock, it will take ~204 real years to reach the bottom.
if you find a shaft on every floor and every floor drops you say like 7 levels and it takes you about 2 seconds to locate and jump down the shaft then what does that add up to
@@blueflamefae7898 Approximately 19.45 years to reach floor 2147483647 in those circumstances.
@@blueflamefae7898 If the floor count was updated to 64 bit instead of 32 bit, floor 9223372036854775808 would take 83563202479.2960 years. Further, if a long double at 128 bit was used as the data type to store the number, floor 170141183460469231731687303715884105727 would take 1541469010115144884138647022141.44475 years.
next project, what is 2,147,483,527 floors worth in value
that would take years to accomplish
that would take 2,147,483,527 years
You simply would not be able to figure that out. Far to many levels to clear fully and sell
If you really Really REALLY want to calculate that, then you have no choice but to assume a fixed value per floor. First mine the first floor and ship the contents and then multiply the total amount with 2,147,483,527.
@@codingking9000 That simplistic of a calculation would never work as the floors have multiple layouts that drastically alter available space for the various available item types and their spawn rates the deeper you go, though you've got the very general idea. This is more a question/challenge for a person like Blade, who searches the code and calculates much of the numerical and percentage information regarding Stardew Valley that we know today. I know ConcernedApe is still working his way down Skull Caverns floor-by-floor, though I can't remember what floor he'd reached, last I heard; my memory just hates me like that.
Recognized the number, it is close to the 32 bit integer a max limit for 32 bit engines which is 2,147,483,647 and this number is the same as skull cavern plus the normal cavern since in is technically a continuation of that the first floor of skull cavern is 121 so by proxy the the lowest floor is the 32 bit integer, also assuming. you can do 1 floor a second it would take about 74 years
Nice, I was thinking along these lines too but I wasn't thinking about the 120 mine levels. So it was bugging me that it wasn't 2^31.
You're smart!
Frost looks like he forgot to pin it.
If you managed to do the 700 floors (presumably in a single in-game day) that DF mentioned, it would take around 114 or more years to get to the bottom, granted you had a mod that gives you an elevator.
@@AchiBellarosa464 that's assuming you do it "legitly", but I was assuming that time was frozen and you are Immortal in really life just to get the simplest start to finish number
you asked about those grey stones on the deepest floor, DF, here's your answer:
Those bigger, dark grey stones are 'stone ore', so to say. They give you more stones than a normal rocks, and, as one can see from your video, clusters of different ores are possible to spawn in iridium-only floors. So, instead of a cluster of copper, iron or gold, you simply got a cluster of, well, stone.
I was actually going down the skull cavern then I got tired so i just searched this to know the bottom floor, and boy what a good choice I made. Imagine the resources I must have wasted
Its your time, right
Thank you for doing this for me. I'm rather disappointed that ConcernedApe didn't have SOME kind of surprise coded in, but my hat is off to him that the game doesn't crash.
I wonder if that equals to hitting the center of the world?
You appeare in every comments secion of DF
I’d think so
Kirara Lala 3 000 000 000 times 3 (if we assume every floor is just 3 meteres high)
This guy literally dominates comments...
I do :D
Try going to the second to last floor and then use a shaft
If its based on intger overflow he would just get sent to floor one
@@patrickrocheleau8185 The thing is its a signed integer, meaning that it has both positive and negative numbers, with the negative using the final bit. It would increment past that and end up at -2147483647.
Except it doesn't overflow. If it did, he'd be able to "continue" and we'd see a negative floor value instead of being stuck on the floor he's on.
QUICK UPVOTE THIS!!!
TwizzdaCat good idea
The Lowest floor is probably 2,147,483,647 it is 2^31-1 the highest number that can be represent in signed 4 bytes integer.
not counting the 120 floors in the mine 2,147,483,647 - 120 + 9,147,483,527 which is the lowest level of sc
4 byte 32 BIT
I think one of my favorite parts of this channel is his ability to roast the other npc’s so casually
"This successful run to Skull Cavern floor 100,000 is brought to you by the sacrifice of one innocent child."
Leave it up to DF to have a "productive day" in 10 minutes😂
Someone should make a teleporting NPC’s mod.
*Pam vs. Train*
Pam would win
Easily
Also 100th like
The Train is angrier but the Pam is drunker
It's really interesting that game creators were prepared for someone reaching the int value in floors. It's like they predicted someone would be crazy enough to go there
EDIT Btw even if you used the mod that skips 1000 floors, it would still take over 8 days straight. Without mods it would take 34 years straight at best, meaning that assuming your PC doesn't break it would be a multi-generation feat
If you were to be skipping it one floor at the time, one floor by the second, it might just take double that.
Unfortunately as it's procedurally generated, they weren't prepared for it, it was just the physical limitations the game would allow. Would be very cool if ConcernedApe had prepared for it and put something special on the last floor though!
Polak
I think they didn’t worry about it at first. But patched it later on, just like the dupe glitches. I guess it really is a simple fix though
Alexander Rollison Theoretically, it isn’t difficult to implement a couple checks before and/or during floor generation. Not sure how the dev implemented it, but one way would be to check the current floor against a preset variable. If the value is equal to or greater than the limit, then you could simply fail to generate a floor.
The load times are very speedy, which suggests that the next floor could be generated in advance before you actually do go down, probably before ladders are ever generated. In this case, a failed floor generation can return a value (a boolean perhaps) that can be used to prevent further progression.
Shafts would probably require special handlings due to their variability. This video didn’t display the behavior of shafts within reach of the bottom floor, so I can’t say with any certainty how it will handle potential overflow situations. The safest means I know of would probably involving generating the random number (floors to jump down by) in advance, then run a loop in the background to increment the floor value while running the checks against the floor limit. If the limit is hit, then the difference returned will be the amount of floors you skip, preventing further progression.
Now we need to know the exact first floor where it's only iridium ores spawning so we can use ladder spamming to get there before end of day haha
That would probably take a _while,_ like hours
Pewdiepie: nobody is deeper than me.
Skull cavern: hold my annoying iridium bats.
bruh
At one floor per second, starting from birth, with no brakes this would take about 68.1 years.
U were in the Guinness world records Gamers Edition 2019!!!
The time, and
the pressure in your ears..
it would probably kill you at that point.
Him: okay so we got 5 prismatic shards
Me: HOW R U NOT GOInG CRaZY
Fun fact, the amount of floors there are in skull cavern is also the max amount of gp you can have in a single stack in Runescape.
Is the size of a variable in programming enviroments, I think is "long" numeric variable in C
In a 32 bit game, the game can typically handle the numbers -2^31 to 2^31-1, and if you type in 2^31-1 you get.....
@@betochiwas It is the maximum Integer[32bit] value, not Long[64bit] (9,223,372,036,854,775,807)
Actually wrong, you can have 2147483647 gp not the 2147483527 floors in stardew valley
@@kyroh-bf2tf You forget the original 120 floors in the mines
Add those to the massive number of levels in skull cavern and you get the limit^^
As the “121st” floor of the mines was Skull Cavern #1 until the bug was patched^^
Quality programming right there, Error checking for int overflow. Because you know someone is going to do something exactly like this -____-
If someone wants to know why it's the limit: An integer in programming languages is usually 2^32 big or in other words it can count up to 4.294.967.295 but because we have negatives and positives it goes from -2.147.483.648 to 2.147.483.648. So what happens if you hit 2.147.483.649? Right it goes back to -2.147.483.648. I guess the level -8 is a compiler error following this logic.
BunnyJumps Interesting, so since the regular mine is included as part of the levels (seeings as skull cavern level 1 is counted as level 121) the floor number DF lands on makes sense.
I has a question! Do you plan on releasing the skull cavern level jump mod for the public? Asking for me 👀
Bitch what ?
FMT Cerberus
😂😂😂!!!!!!!
-8 would probably be the result of integer overflow, which explains the crashing. A neat trick I show students is counting up and show how it wraps down to MIN_INT after MAX_INT, because of how 2s Compliment binary works.
@@Cyrathil Yeah, it's pretty simple. The first bit usually declares if the number is positive or negative. So going from 01111...(31 1's) to 1000...(31 0's) increases the number from 2147483647 to 2147483648 - Though since it's already in the negative domain (1 as first bit) it's translated to -1 in common programming languages
when the other nerds say the reason for what's going on before you can
me: It's the 32 bi- oh...
Funny, the final floor is almost the same number as the max cash stack in Runescape, which is limited in 32-bit.
You had me at "floor 20"
I noticed that during the Community Center Completion cutscene, all the NPCs have dialogue bubbles. Can you use your modded shenanigans to see if they really have anything to say?
They most likely say "hi" as that's the default text bubble.
All npcs have dialogue bubbles in every cutscene, they wont have anything to say
Wait... they patched out the secret ladder on floor 120? Oh no... I was hoping to take my more action-based friends to Skull Cavern early to make the experience a bit more fun for them...
It's the limit because the floor number is stored as a 32 bit signed integer. So 31 bits of precision and 1 sign, means 2^31 possible floors. We ignore the fact that it can be negative as this is just the way that the integer is stored.
So 2^31 = 2147483648
Anyone who watches AntVenom’s Minecraft videos knows by heart that that number (around 2.14 billion) is the 64-bit integer limit. Most games have this number as a limit in the code at least once.
Erm actually no, 64 bit limit is (2^63)-1 which is exponentially higher than this (exactly 2^32^2÷2-1) or a little more than 9.2 quintillion (won't bother typing a 19 digit number)
This case, on the other hand, is actually a 32 bit limit which is 2^31-1 which is 2147483647 or the maximum floors
I think the Grey rocks are technically different than the brown ones. They always seem to drop multiple rocks, my theory is they are "ore nodes" that drop rocks.
So concerned Ape expected you trying that and implemented a function that sets you to the lowest floor every time you pass this floor. Otherwise you would be sent to to floor -(max int lenght)
The bottom of skull cavern is the upper limit of an int32 number minus 120 floors for the mines. It would crash if it passed that limit, so most games loop back to the beginning (which is the same limit but negative) or in the case is Stardew Valley it looks like it prevents the number from incrementing
@DangerouslyFunny I'm pretty sure someone already pointed this out. Stardew Valley is a 32bit game, The number 2,147,483,647 (or hexadecimal 7FFFFFFF) is the maximum positive value for a 32-bit signed binary integer in computing. I added 120 to 2,147,483,527 because the mines do count as the first 120 floors. So basically you reach the end of the possible numbers generated in hex value.
Computers use a base 2 number system, i.e. looking at things in the form 2^(x). Our society generally uses a base 10 number system, which is why base 2 numbers might look a little weird to the human eye.
You’re used to organizing numbers in terms of 1, 10, 100, 1000, etc. but a computer thinks of things in terms of 1, 2, 4, 8, 16, etc.
In this case, 2^(16) = 2,147,483,648. So, ending at 2,147,483,648 is similar to ending at something like 1,000,000,000,000 in the base 10 number system that you’re used to. It just makes sense to end at an even number like that, and makes the most of the memory available.
The size of the memory set aside for rooms in this area was probably 2^16 (aka, an integer with a limited memory size of 2^16).
In Stardew Valley, the skill cavern number is a little less than 2,147,483,648 but very close. I’m guessing that ~100 extra rooms were set aside for other locations in the desert or something. Either way, seeing something so clearly based on a base 2 number system is typical for anything with computers!
68 years to get to the bottom legitimately if it took 1 second to clear a floor.
geez, you CAN go lower, yet you don't know?
i mean, it's not in skull cavern, but i think you did make a video on it
what video it was? "marry Pam" of course!!
2147483527 is not far off the 32-bit integer overflow value (probably like 100 off or something) so my vaguely educated guess would be that when you consider all of the components that go into each floor, this is the highest number that can be reached without hitting the integer overflow.
Concerned Ape probably put something in place to prevent overflow, or maybe the software used to develop the game has built in features that prevent it, but yeah. It's most likely just to prevent overflow, which would break the game and cause all sorts of crazy crap.
For those interested, computers don't count up in ones like humans do, they use binary. The integer function in many programming languages is naturally 32-bit, because then it can be run on both 32 and 64-bit computers. Also usually software engineers don't need 64-bits worth (which is like 9 billion or something) of information, whatever it may be (money, health, exp etc.). Often this will be like a max limit for things in games, providing there aren't other limiting factors (like weight loads preventing you from pocketing 2 billion healing potions in Skyrim).
I'm a physics student not a computer science student, so if some of this is a little off my apologies.
Edit: I hadn't fully watched the video before posting this, but yeah, that -8 floor is what I was talking about, the game code overflowed and ended up back at zero but you obviously can't go to the zeroth floor so the game doesn't know how to deal with it and it breaks.
The 64 bit integer limit is way more than 9 billion. A signed 64 bit integer can be up to 2^63 - 1, or 9 quintillion (9.22×10^18).
@@leahgreene5880 ah alright cool, yeah I knew it was 9 something, but like I said I'm a physicist not a computer scientist, thanks for the fact check
From what I know you are right the difference is not far off the 32 bit integer value. I learned it by watching a video explaining how because of the 32 bit integer that if you go past that many blocks out by getting out of the world border the world itself breaks. Now I didn't compare the difference in floor level by removing bottom most floor number from the 32 bit integer number but I have seen a few people saying the exact difference is 120 I believe. And 120 is how many floors there are in the normal dungeon / the mines which as shown by that old bomb glitch that DF mentioned skull cavern floor one is technically the next floor below the mines floor 120 making skull cavern floor one technically floor 121 which means that the difference if the other comments I saw were correct then basically you do hit the 32 bit integer but it just doesn't look like you do because it calls the first floor of Skull Cavern floor 01 instead of mines floor 121. At least if what I have seen in some other comments is correct.
Getting to floor 2,147,483,527 in one lifetime without cheating? Is it possible?
Here is a rough math breakdown coming from me. (Not a math buff by any means.) I got some of this info from Wiki.
Lets Start with this.
"Time is the process in which Stardew Valley proceeds. Each day is 24 hours, and each hour is sixty minutes. Time passes in ten minute intervals. Each interval equates to about seven seconds in real-time. There are 7 days per week. An hour of the game consumes 42 seconds of real-time. From that, we can assume that a full game-day duration is about 17 minutes."
So if each day is 17 minutes of real life time. And the record for legit vanilla (No modded help etc.) Skull Mine Depth is 500ish give or take 100 or so? Is that true? I don't know even on a full day and really good luck I have hard time getting to 100. My record is 115 ish. But in the video you said you got to 500! I don't know if you used a little help from like a time slow down mod but you said others have gotten a little further? So I'm going to use 750 floors as a value for the current record for vanilla. I don't know how wrong that is. But I assume it's very difficult to beat that? Heck personally I think it's absolutely impossible but after seeing speeds runs and Good Games Done Quick anything is possible. But it's better to over estimate when it comes to the math I'm about to do. And it's fair to assume that 750 is over estimating.
So 750/17 = about 44.117 floors per minute.
More Info from Wiki.
In Canada, the average life expectancy was 80 years for males and 84 years for females in 2018. So I'm going to pick 85 years as general over estimation. I'm also ignoring work, sleep, eating, bathing all that does not matter. So 85 years of dedicating time traveling downward in Stardew Valley Skull Mine. So that alone is a MASSIVE over calculation.
85 Years = 44,676,000 Minutes
44,676,000 ( 85 Years ) x 44.117 ( Floors Per Minute ) = 197,097,109.2 (Floors Deep)
So yeah the average Canadian or let just say person if they started mining downward in Skull Cavern the moment they were born till the there death. On average without sleep, work, eating, or anything else they would be extremely lucky to reach just floor 197,097,109.2
(Target Floor) 2,147,483,527 / (Projected Maximum) 197,097,109.2 = 10.895. So even after all this we are still off by 10.985. So even 10 lifetimes would not be enough.
And I'm to lazy to figure out how much time someone has to eat, sleep minimum there whole life and deduct the ages where someone is to young. Like the 1st 4-5 years of there
life. The real calculation is at best half of the one I put up. Like any real person trying this would have to eat, sleep etc... So DangerouslyFunny your 100% correct when it comes
to billions of pretty much anything it's beyond human life time.
Rough maths...
And I bet Linus would still find you passed out 2.14 billion floors down the Skull Cavern
Concerned Ape used an int primitive data type to store the value of the floors. An int data type can count up to the value of 2,147,483,647 or 2^31 - 1. If you subtract the amount of floors in the regular mines you get 2,147,483,527
7:50
The Integer Value Range already got posted
You would need roughly 204 Years and 288 Days to get to that level with an theoretically infinite supply of stairs.
god i'm having a mental break down but hearing DFs voice instantly made me feel better
The fastest way down skull cavern is Pam, even the earth itself is scared of her.
The dev must of added error checking for the floor switching function, 2.147 billion is the signed 32 bit integer limit, after that it overflows to negative so floor -2.147 billion, it's interesting that the dev likely adding this error check for such an impossible event without mods, but if modding was an early though in development it may have been put in the game for that purpose incase modding allowed playing to get to that floor. Great skill thinking ahead by the dev if the error checking was put in rather than a built in engine feature.
5:08 The reason it can’t procedurally generate anymore is because the highest 32-bit integer is 2,147,483,527
I just celebrated my 1 billionth second alive at (around) 31.5 years, so if every floor took about a second, you could do it before you turned 70. Easy.
If I had to guess with my extremely limited programming knowledge it probably has to do with the limit on the size of integers within the language. Or whatever other variable type they decided to use.
Imagine someone actually getting down that far legit
It would take you 60+years, 1min on floor
This comment section is reaching the integer limit for the number of people explaining the 32 bit integer limit.
Fun fact, 2.147 billion gold is the max gold you can have in a single stack on Old school RuneScape.
I was expecting for the skull cavern to roll over when you tried to go to floor 2,147,483,528. What I mean is that I was thinking you might have ended up on floor 1 of the mines. Though I think the dev's didn't put in a roll over feature for the 32 bit integer limit mostly because it isn't possible to hit that low of a floor without cheating.
The real " Journey to the center of the earth "
It was a perfect opportunity for a hidden Easter egg and the developer simply didn't even make a single Easter egg
Well, this video is kinda old but here an explanation if some one is still interested of wht I think is happening:
The data type storing the level of the cavern is called an integer, which can not hold a larger number then 2 147 483 647. If you subtract the 120 levels of the normal mine you get to 2147483527, the last level that the skull cavern can physicly generate.
This can actually be seen in a lot of games/programs where there is no need for huge numbers and since 2 billion is more then enough to acount for a normal play through, developers often to choose to use integer instead of other variables to save some space.
It is nice to see though, that the game actually "handles" higher numbers with simply not reacting to the input, often this would crash games or cause some weird glitches.
Hope that was interesting if someone actually read this xd
DF:its impossible to get to floor 1000 in skull cavern me;STARECASE
STARECASE STARECASE STARECASE STARECASE STARECASE STERCASE STERCASE
If we assume that the ceiling of each floor of the Skull Mine is a standard 8 feet, and that we aren't tunneling through the centre of the planet, that would mean that the planet that Stardew Valley is on is roughly 256 times the size of Earth :^)
You can add Vietnamese subtitles. Vietnamese players play this game quite a lot, she is very lucky for us if you add Vietnamese subtitles.
thank you
The number of floors corresponds to the max possible integer in Java
You can't go down deeper because of the human body's instinct to avoid cooking itself, you hit the core of the planet
If I did math right, and you didn't eat, sleep, or do anything else, AND had infinite ladders, and you placed one ladder every 5 seconds, presuming that's how long it takes to place it, scroll to the next ladder, and go to the next floor, it would take approximately 341 years to get to the bottom. So it is possible.
If you use a bunch of people constantly swapping around in shifts as they die.
3:42 "innocent" yeah about that
I've never clicked on a video so quickly.
Saichi Fox I really dig your profile pic ^-^
Thanks.
The first time I went into skull cavern I found a shaft and fell 15 levels
Legend says the cavern goes deeper, but a magical force prevents you from going any further, fearful for what you could find.
It always feels good when you break the 32 bit integer in a game.
Metal gear: click clack click clack click clack...
Stardew valley: lol just tap “leave the mine”
Hey DF use the skull cavern elevator mod it saves your progress so u dont have to do all that work
the only work he's doing is pressing a button
I falled 20 floor on the first hole i ever jumped in my first game
Almost died
Kudos to game dev. The counter did not flip to - when you tried go below "maximum deep" :D
6:57 its a data type. long int limit is −2,147,483,647 to +2,147,483,647 and i'm guesses that the missing 120 went for mountain mine.
Explanation: stardew valley has a limit of 2147483647 due to being 32bit. The 120 less is from the mines adding to the floor total.