The explanation Hbomb gave is also not entirely correct, in order to get the two's complement for a number you don't just need to flip all the bits, you also need to add 1 at the end
@@SunbleachedAngelA signed 32-bit integer is in the range -2147483648 to 2147483647 and an unsigned 32-bit integer is in the range 0 to 4294967295, meaning this is in fact a signed integer as already said
I just realized my original comment said that btd 6's pc money limit was 9,223,372,036,854,775,807, but said that only some of them are like that, and others are 2,147,483,647. I think there is a 64-bit version of the game with that first number, and the 32-bit version with the second.
9,22 Quintillion money would be too insane for the game to handle though. That ludicrous amount would probably break the game even more than the 32-Bit integer limit 😂🤔
But using 64 bit version of the game doesnt mean that every single variable is 64 bit. Declared variables do take memory and require more complicated computations, even tho if the number itself its not big enough. Sure this wouldnt probably break the game, but BTD6 is already hella unoptimised game, so i dont think that using cash as 64 bit int is reasonable, especially when in normal runs you would never break through this barrier
RUclips broke my notifications for this, so I will just say a few things 1. I wasn't sure if the 64-bit version would increase the limit or not, and it MIGHT do it, but I don't have the game on pc to check 2. The game storing the number as 64-bit probably won't affect the frame rate that much if it won't need it in regular use, and only allocate it when it gets close to surpassing the 32-bit limit (I don't do any programming so if there is a programmer that can fact check this, please tell me what the correct thing you can do is) 3. The guy here who said that it can go to something in the centillions or to infinite, that is only in modding and not in the base game
I had assumed the game would count money as a floating point number rather than an int, considering stuff like fractions of money from late round pops or Skimming in Half Cash. Surprised to see they actually use a 32-bit signed integer instead.
7:25 , i tried this myself with mods and found out that if you push the paragon sloder backwards (pretty sure , it happend to me in game) il lets you put the negative amount, and basically guarantees a degree 100 paragon
I get that content creators don’t like using double money but if we’re just trying to see the maximum I don’t understand why not. Only really helps start the exponential farming a round or two earlier
Interesting video. Also love the 'Cult of the Lamb'-Music :D Maybe as a tipp for such videos: go to options then 'accessibility' and scale the FX all the way down. That way it won't melt your computer (or your eyes) and won't slow down as much.
another way to think about two's compliment is that the most significant bit, instead of representing 2^31 like normal, represents -2^31 making 10...0 represent 1×-2^31 + 0×2^30 + ... + 0×2^0 ≈ -2×10^9
1:08 what you described is the representation of negative numbers using sign bits. Integers in programming use so called two complements, where the most significant bit (first on left) is turned negative (in case of int32: from 2^32 to -(2^32)). The reason for this it that addition with two compliment numbers works out of the box like it would with only positive numbers, while you need much more complicated logic for sign bits. Sign bits also waste some space because you have both 0 and -0
It's so strange that the money doesn't keep increasing from the negatives. You'd think gaining more money would increase the value of the lower bits, and that would make the number less negative, and yet it stays identical
I could be wrong, but I believe the reason the game doesn't break down or let you count your money back to 0 is because they've put in a failsafe to lock your money entirely if you reach an overflow value. It could be to prevent buffer overflow exploits and such to damage the game or find exploits in the code? Not entirely sure why but that'd be my guess. Also, I wonder if Paragon Sliders only read the magnitude bits to determine how far you're allowed to slide the bar? It would realistically never need to interact with the sign bit, so it is possibly it just looks at the bits that are all 0 once you hit that overflow barrier.
Correction: That starting explanation was of signed integers. Unsigned integers swap out the first bit for another magnitude bit. Each bit is a power of 2 from 2^(0) to 2^(X).
At the game over pop-up it says that you made 0ver 2.162 billion, so that pop-up i guess doesnt stop at 2,147,483,648. Maybe next tume see how much while seeing how far you can go then when you get out see how much you actually made.
@@Theteir5bananafarmand that’s wrong. You can get flagged for manually transporting (altho, why would you?), you can get flagged for using mods (even stuff that doesn’t affect gameplay like 8x speed) and you can get flagged for using a pirated client for the game. This shouldn’t ban you, but if you want to be extra careful, don’t do gamebreaking glitches like this 😅
it’s because of how 32-bit integer overflow works. Because the number of available options for the value hinges on binary, the maximum value is a power of 2. go over it and you’re wrapped around!
It's because 2^31 = 2147483648. The money is stored as a 32-bit signed integer, meaning that 31 bits are used for the actual value, with the final bit indicating whether it is positive or negative.
Yes but for speed they use the same amount of bits as java. My point was just that 2,147,483,647 is only the integer limit for some languages, not all.
Bro ya’lls times are insane. Ya’ll get to round 200 in like 30 minutes, but it took me 1 hour 11 minutes to get to round 276 with all paragons major farms and a VTSG and BMA (Bloon Master Alch)
An update on the glitch. It not as op now since it only give 10000 max but we can try to upgrade banana farm to brf and spam jungle bounty to give tons of money still
there was a bug in co-op mode a few months ago where if u and another player send money to each other very fast, it dupes aka more money. then we capped out at -2,147,483,648 at round 10 coz thats abt when we found it
there's nothing special in paragon slider being maxed out at just a few millions the slider is just a way to gain paragon power from money spent on towers without requiring you to spam those towers, but the slider has 95% efficiency and caps out at as much money as it would take you to get max paragon power for money spent without counting already placed towers so if you have to spend let's say 2.1m on max slider and you already spent 200k on towers, you actually have to spend 2m on towers (because the slider isn't fully efficient) and since you already got 200k in towers, putting more than 1.85m into the slider is just a waste of money since anything above is just overflow power which gets voided
You probably won’t see this comment anymore, but a year ago was another glitch which gave you over 100^000000 with a thrive power just in round 2 in co-op mode. This is also how I got a way too high number of gifted money in co-op on my btd6 profile 😂
Hbomb summoning his inner player 3 to make this video
Haha. I'm always in p3 mode
@@Hbomb’welcome, to the Bloons TD 6 Player 3 suit. Have a very, safe, day.’
Well, player 3 took player 1,2, and 4s tiles
@@Hbomb I have to report this video for spam because you’re spam requesting for money in the co-op game.
No, no, NOOOO flashback to inner agent 3 @splatoonfans
The funniest thing hbomb said was "print money faster than the us government" inflation goes hard
fr tho
Blud really became player -3
two's complement is simpler if you think of it as the first bit has a place value of negative 2^31, instead of the complicated bit inverting process
I was about to comment this
@x_540 Then you both are wrong...
Just kidding, you only got wrong the exponent (it's 31), the general idea is ok.
@@PotatoBTD6 shit ima edit it
@@PotatoBTD6 oh yea, I forgot it (the exponent) starts at zero not one
The explanation Hbomb gave is also not entirely correct, in order to get the two's complement for a number you don't just need to flip all the bits, you also need to add 1 at the end
Every monkey in the game: We have infinity money!
Paragons: No, we don't 😠
Lmao
Lmao
Lmao
Lmao
Lmao
I heckin love 32-bit integer overflow
unsigned*
@@SunbleachedAngel signed*.
unsigned goes to 0 when going over ~4 billion
@@SunbleachedAngelA signed 32-bit integer is in the range -2147483648 to 2147483647 and an unsigned 32-bit integer is in the range 0 to 4294967295, meaning this is in fact a signed integer as already said
@@SunbleachedAngelonto nothing
@@trinityy-7 i knew I'd mix them up
I just realized my original comment said that btd 6's pc money limit was 9,223,372,036,854,775,807, but said that only some of them are like that, and others are 2,147,483,647. I think there is a 64-bit version of the game with that first number, and the 32-bit version with the second.
9,22 Quintillion money would be too insane for the game to handle though. That ludicrous amount would probably break the game even more than the 32-Bit integer limit 😂🤔
@@firebolt1104I don’t see how the high number would break the game, if you’ve got the bits for the number you’re good
But using 64 bit version of the game doesnt mean that every single variable is 64 bit. Declared variables do take memory and require more complicated computations, even tho if the number itself its not big enough. Sure this wouldnt probably break the game, but BTD6 is already hella unoptimised game, so i dont think that using cash as 64 bit int is reasonable, especially when in normal runs you would never break through this barrier
I think you can actually make up to 1.8e308(centillion/infinite) which is where money absolutely breaks,it says you have INF but you cant buy anything
RUclips broke my notifications for this, so I will just say a few things
1. I wasn't sure if the 64-bit version would increase the limit or not, and it MIGHT do it, but I don't have the game on pc to check
2. The game storing the number as 64-bit probably won't affect the frame rate that much if it won't need it in regular use, and only allocate it when it gets close to surpassing the 32-bit limit (I don't do any programming so if there is a programmer that can fact check this, please tell me what the correct thing you can do is)
3. The guy here who said that it can go to something in the centillions or to infinite, that is only in modding and not in the base game
(24 seconds) US Government: "Is that a challenge"???
you know you can just put 0:24
Rizzler
@@Tommy_plays_gamesbro
0:24
I think they'd beat me
5:40 Any of ypu guys seen those druids make a tree with their projectiles when the BAD comes close to them??
WE LEARNING COMPUTER SCIENCE WITH THIS ONE🔥🔥🔥🔥
My head hurts
@RomanKlayman-dz4bgfr
@RomanKlayman-dz4bg unless we were being taught haskell or assembly
🤓
@@adammarkszobek655 Oh shut up
Really cool video, especially the in depth explanation. You did a good job on it :)
Thanks, I wasn't sure how in depth I should go!
@@Hbomb np, keep up the good work :)
I had assumed the game would count money as a floating point number rather than an int, considering stuff like fractions of money from late round pops or Skimming in Half Cash.
Surprised to see they actually use a 32-bit signed integer instead.
I wonder if they have a separate value that tracks the decimal amount and then adds 1 to your money whenever the value goes above 1
Using floating would be quite stupid
1:00 it's important to note that you can use more than 32 bits for integers, bloons just doesn't.
I always think of Hbomb while pressing the H key to place banana farms
@@Hbomb why don’t you change the accessibility in game to reduce lag
3 months late but projectile size only helps bit rate, they don’t reduce lag
@@joeflemo64 what he said. what lags is the calcs in the bg for pops
7:25 , i tried this myself with mods and found out that if you push the paragon sloder backwards (pretty sure , it happend to me in game) il lets you put the negative amount, and basically guarantees a degree 100 paragon
I get that content creators don’t like using double money but if we’re just trying to see the maximum I don’t understand why not. Only really helps start the exponential farming a round or two earlier
Peak Player 3 gameplay is breaking the money counter. We funding High Finance with this one
Interesting video. Also love the 'Cult of the Lamb'-Music :D Maybe as a tipp for such videos: go to options then 'accessibility' and scale the FX all the way down. That way it won't melt your computer (or your eyes) and won't slow down as much.
another way to think about two's compliment is that the most significant bit, instead of representing 2^31 like normal, represents -2^31
making 10...0 represent 1×-2^31 + 0×2^30 + ... + 0×2^0 ≈ -2×10^9
Thank you “HBall” for making so much money that you actually go into debt.
Hbomb regularly realesing math itself within its brain
ohhh!! so this is why player 3 never donates! the integer limit doesn’t let him
Tewtiy! Take notes on this! NO MODS😂
Hbomb, I really enjoyed watching this, so I hit the like button!
1:08 what you described is the representation of negative numbers using sign bits. Integers in programming use so called two complements, where the most significant bit (first on left) is turned negative (in case of int32: from 2^32 to -(2^32)). The reason for this it that addition with two compliment numbers works out of the box like it would with only positive numbers, while you need much more complicated logic for sign bits.
Sign bits also waste some space because you have both 0 and -0
TO MUCH INFLATION YOU JUST HAVE REVIVED 8916725738918263666543573919273 DDTS
0:28 NAW THE WAY HE CONFIDENTALLY SAID THAT GOT ME ROLLING
I love seeing how when enemies go close to pools, MILLIONS of projectiles attack them
"Lets try to beat phayze without farming" my friend:
even with infinite money, the paragons are still too expensive :sob:
Even the 0-0-0 Dart Monkey
It's so strange that the money doesn't keep increasing from the negatives. You'd think gaining more money would increase the value of the lower bits, and that would make the number less negative, and yet it stays identical
“print money faster than the us government” 💀💀
Tewtiy watching this him like are you serious 😂😂
Thanks for reaching the integer limit like I suggested. :)
“Print money faster than the US government” and this is why this man is a btd6 youtuber.
I could be wrong, but I believe the reason the game doesn't break down or let you count your money back to 0 is because they've put in a failsafe to lock your money entirely if you reach an overflow value. It could be to prevent buffer overflow exploits and such to damage the game or find exploits in the code? Not entirely sure why but that'd be my guess.
Also, I wonder if Paragon Sliders only read the magnitude bits to determine how far you're allowed to slide the bar? It would realistically never need to interact with the sign bit, so it is possibly it just looks at the bits that are all 0 once you hit that overflow barrier.
I hate that 32 bit integer cap, it ruined my subway surfer run😭
PLEASE UPLOAD MORE VIDEOS, YOU’RE LITERALLY MY FAVE BTD RUclipsR
I'm trying
I did this with the ascended upgrades mod and with one banana farm I got to the integer limit and with the legend of the night I made it to round 1300
"Print money faster that the us government" 💀💀💀
Correction:
That starting explanation was of signed integers. Unsigned integers swap out the first bit for another magnitude bit. Each bit is a power of 2 from 2^(0) to 2^(X).
At the game over pop-up it says that you made 0ver 2.162 billion, so that pop-up i guess doesnt stop at 2,147,483,648. Maybe next tume see how much while seeing how far you can go then when you get out see how much you actually made.
hbomb turning into a god for a second
H-bomb is my new maths teacher 😅
Man I bet it would have been nice for him to have made this video after they made multiple jungles bounty instantly use their ability together
4:00 whats the ability left from the perma charge?
That let's you explode the Spirit of the Forest's vines for damage (and maybe a stun, I don't remember). But then the vines have to regrow
@@HbombI think tewtiy beat 100 zomg's with it
You can only get the ability with a monkey knowledge point
this guy is a better math teacher then my professors
1:04 Hbomb educational break?
Haha. Had to let my Computer Engineering side out
YOO COMPUTER ENGINEERS UNITE
“Its called the pool stacking glitch and we are gonna use it to print money faster than the US government.”
Hbomb giving us a math lesson for no damn reason
Bro, he’s summoning his inner player five that’s crazy
I would kinda want to see the challenge without a glitch and see how much you can get in a regular game
Player 3 taking notes right now
“I need to make 2 billion total and I have only ever made 3 billion. We need to double it!”
I can't wait for this to become a speedrun category lol
Hbomb I hear the cult of the lamb music it can never be hidden from me I always catch it
Average Sabre moment be like:
Hbomb ready to make this: *informs into p3*
cult of the Lamb Music is Great
I was here at the 11th second of the video being uploaded
Imagine putting all of the paragons on the same pool so you destroy absolutely anything
The cult of the lamb music is very fitting
Mobile players trying this:
???
I Would but I don't wanna be flagged 😅
Don’t worry u only get flagged for hacking
@@Theteir5bananafarmand that’s wrong. You can get flagged for manually transporting (altho, why would you?), you can get flagged for using mods (even stuff that doesn’t affect gameplay like 8x speed) and you can get flagged for using a pirated client for the game.
This shouldn’t ban you, but if you want to be extra careful, don’t do gamebreaking glitches like this 😅
O_O
"...to print money faster than the us government" 💀
He ain’t wrong
👍🏿
0:25 that caught me off guard
Why does this feel like a matpat episode
That number is a very oddly specific number 0:46
it’s because of how 32-bit integer overflow works. Because the number of available options for the value hinges on binary, the maximum value is a power of 2. go over it and you’re wrapped around!
It's because 2^31 = 2147483648. The money is stored as a 32-bit signed integer, meaning that 31 bits are used for the actual value, with the final bit indicating whether it is positive or negative.
put 2^31-1 into a calculator
It's 2^32 - 1
@@DragonTheOneDZA It's actually 2^(32 - 1) but yes
A person who uses Java script would know the answer to this which is the integer limit
2,147,483,647 is only the integer limit for java, other coding languages can and do have different limits.
Bloons not a java game
Its limit for 32 bits
Yes but for speed they use the same amount of bits as java. My point was just that 2,147,483,647 is only the integer limit for some languages, not all.
They being NK.
My dude making more money than in sandbox
It's always interesting if games cap you at max or just don't expect you to get to max and let it overflow
I agree. I don't blame NK for thinking no one would hit 2 billion dollars
7:57 … i think that’s a fake one because if everything adds up, there are 100.1% of people watching
Rounding exists
Faster than the US Government prints money 😂
"To print money faster than the US Government."
I thought that there would be no way to purchase anything since you have negative money, but it turns out you actually can place anything lol
Player 3 be like:
I got a question Hbom.
Which monkey is the best one for Bloonarius?
Probably the Goliath Doomship
Thanks
So it's the best paragon to spend 60 rounds getting the 60 totems
I once tried to fix the issue and be a god dam programming god but I only re invented the thing
Bro ya’lls times are insane. Ya’ll get to round 200 in like 30 minutes, but it took me 1 hour 11 minutes to get to round 276 with all paragons major farms and a VTSG and BMA (Bloon Master Alch)
An update on the glitch. It not as op now since it only give 10000 max but we can try to upgrade banana farm to brf and spam jungle bounty to give tons of money still
And if possible boat farming as well
there was a bug in co-op mode a few months ago where if u and another player send money to each other very fast, it dupes aka more money. then we capped out at -2,147,483,648 at round 10 coz thats abt when we found it
glad i finally got an answer to this
Shoutout to the thumbnail 👏🏼👏🏼
this guy deserves way more subs then tewity
explains the reason behind the number for max cash in OSRS ty
even if the US gov could have a pool of infinite monkeys that give them $2B, it still wouldn’t come close to paying off how much they owe in debt💀
7:54 Please keep it that way
there's nothing special in paragon slider being maxed out at just a few millions
the slider is just a way to gain paragon power from money spent on towers without requiring you to spam those towers, but the slider has 95% efficiency and caps out at as much money as it would take you to get max paragon power for money spent without counting already placed towers
so if you have to spend let's say 2.1m on max slider and you already spent 200k on towers, you actually have to spend 2m on towers (because the slider isn't fully efficient) and since you already got 200k in towers, putting more than 1.85m into the slider is just a waste of money since anything above is just overflow power which gets voided
get as many tier 5 banana farms in a co op, with a bunch of farmers, then beg for money, easy way.
You probably won’t see this comment anymore, but a year ago was another glitch which gave you over 100^000000 with a thrive power just in round 2 in co-op mode. This is also how I got a way too high number of gifted money in co-op on my btd6 profile 😂
Is the integer limit thing like a limit on computers? I don’t get why they can’t just make the number go on forever
THE PARAGONS ARE SELF-AWARE
THEY HAVE THE PROPER EDUCATION TO UNDERSTAND NATIONAL DEBT
The money bugs when you reach the max.
As far as I know this is not going to be patched as you can get it sometimes and not all the time.
i am attemting to do this on mobile currently at round 200 with 1500000000 just imagine the lagg
cap
Question: How many pools do you need to do the glitch?
Around 14 or 25
@@FenchBaget thanks
NinjaKiwi: Pls don't fix this
Imagine this with soul bind 😂😂😂
video idea can you beat chimps with only tier 3 towers
Probably
Cross path allowed?
If you had done the paragons before hitting the integer could you have had multiple max paragons
Is there a good reason they didnt make this an unsigned integer? I guess because you can take loans and stuff?
That would be my guess. And why would anyone hit the cap outside of modding and making this video 🤣
Bro broke the integer limit