Тёмный

Hero bug deals millions of damage to bosses when sold (explanation in description) 

Boar TD 6
Подписаться 76
Просмотров 2,1 тыс.
50% 1

You may get removed from leaderboards if you use this, be warned. Only level 14+ heroes work on solo, level 20 will damage less than lvl 14.
explanation:
In Bloons TD 6 (BTD 6), the boss "Lych" has a mechanic where it heals based on the tiers of towers sold. The healing calculation is as follows:
1. **Healing Calculation**:
- Heal = tiers * boss_hp
- Here, `tiers` is the number of tiers of the tower being sold, and `boss_hp` is the current health of the boss.
2. **Overflow Issue**:
- The game uses a 32-bit signed integer to store the heal value.
- The maximum value a 32-bit signed integer can hold is 2,147,483,647.
- If the heal value exceeds this maximum, it will overflow. In programming, when a signed integer overflows, it wraps around to a negative value due to the way integer overflow is handled in two's complement representation.
3. **Scenario Analysis**:
- *Scenario 1: Selling a Tower with 15 Tiers*
- Let's say the boss has 144 million health (144,000,000).
- You sell a tower with 15 tiers (level 14 hero).
- Calculation: heal = 15 * 144,000,000 = 2,160,000,000
- Since 2,160,000,000 exceeds 2,147,483,647 (the maximum for a 32-bit signed integer), an overflow occurs.
- After overflow, heal wraps around to a negative value, specifically -2,136,313,344.
- Final heal = -2,136,313,344 / 100 = -21,363,133.44 (approximated)
- Therefore, the boss would effectively receive damage of approximately 21.36 million hp due to the negative heal.
- *Scenario 2: Selling a Tower with 13 Tiers*
- Calculation: heal = 13 * 144,000,000 = 1,872,000,000
- 1,872,000,000 is less than 2,147,483,647, so no overflow occurs.
- Final heal = 1,872,000,000 / 100 = 18,720,000
- In this case, the boss would heal for approximately 18.72 million hp.
4. **Conclusion**:
- Selling a tower with 15 tiers causes the heal calculation to overflow a 32-bit signed integer when multiplied with the boss's health.
- The overflow results in a negative heal value, which translates to damage against the boss in the game mechanics.
- Selling a tower with 13 tiers or any lower number of tiers will not cause an overflow, and the heal value will be positive, resulting in actual healing for the boss.

Опубликовано:

 

16 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 16   
@AJThePurpleBoy
@AJThePurpleBoy 15 дней назад
Bro did NOT want to get Obyn down
@ohhi687itsme8
@ohhi687itsme8 16 дней назад
bro did -3M damage
@lucifer_morningstar..
@lucifer_morningstar.. 13 дней назад
came from ISAB
@Dartus_MonkusIII
@Dartus_MonkusIII 13 дней назад
So this bug only works on the tier 5 elite lych that had 144 mil hp? If you sold the hero on a tier 5 normal lych the boss would heal normaly correct?
@TechSY730
@TechSY730 7 дней назад
And this is what can happen if you fail to use a big enough data type and don't use saturated math operators. 😁
@Lawrence_Zhou
@Lawrence_Zhou 16 дней назад
that's crazy
@supremechaosbeing2696
@supremechaosbeing2696 14 дней назад
i mean does it work without mods to place more heroes? your reasoning sounds like it should but why not just test it on a real game? if all I have to do is buy 14 levels on a hero then that sounds easy as hell
@boartd6
@boartd6 14 дней назад
Yes, you can buy level to lvl14 and sell a hero 7 times. In this video I just had 7 heroes placed down to just have to sell them all so d20 subgon could kill the boss without 7 lych souls spawning.
@christophergovek3699
@christophergovek3699 15 дней назад
so how do you get multiple heros
@boartd6
@boartd6 14 дней назад
Mods, in a real game you would buy and sell heroes 7 times which does the same job.
@somnathbhattacharya2819
@somnathbhattacharya2819 16 дней назад
Dammnnnn
@SAYORITF2
@SAYORITF2 16 дней назад
i aint smart enough for this wtf
@mikshake5774
@mikshake5774 16 дней назад
thats funny as shit wow
@chartreusecharon
@chartreusecharon 16 дней назад
fake boar fr
@boartd6
@boartd6 16 дней назад
Holy Charon real?
Далее
Every Max Level Hero VS MOAB-Class Bloons | BTD6
9:34
Просмотров 196 тыс.
We Maxed Out Every Paragon. How Far Can They Get?
10:44
This Disease is Deadlier Than The Plague
10:53
Просмотров 4,9 млн
81 Pieces of Bloons Lore
9:49
Просмотров 221 тыс.
Next-Level TIER 5 Tower! | Army Base in BTD 6!
16:03
If BTD6 Monkeys were Bloons...
11:53
Просмотров 202 тыс.
TTD Titans meet their Children… (Meme)
8:36
Просмотров 84 тыс.
0-0-0 Sentry Turret VS ZOMG
1:00
Просмотров 2,7 млн