Bug?

Talk all you want about Defense of the Ancients here.
minger1
Armored Tree
Posts: 69
Joined: Wed Feb 14, 2018 3:09 am
Has thanked: 2 times
Been thanked: 25 times

Bug?

Postby minger1 » Tue Mar 04, 2025 3:34 pm

http://storage.entgaming.net/replay/vie ... 243555.w3g

Just a friendly heads up for y’all.

Sentinel was getting right royally owned by Godofbaikal’s Arc Warden up until the 30 minute mark, though battle-beast was holding his own as per usual.

At about the 32 minute mark (sorry but i havent actually viewed the replay to give an exact timestamp) we killed Arc Warden and everyone on Sentinel got 2k gold. Every kill we got on Arc thereafter I think we all got 2k gold. This obviously turned the tide in Sentinels favor and we won comfortably, though undeservedly, in the end.

This a bug? Or am I missing something.

@h3rmit fix this sh1t playa hata. Dont hate the playa, hate the game

User avatar
lex-
Forest Walker
Posts: 218
Joined: Sun Mar 31, 2019 10:29 pm
Been thanked: 17 times

Re: Bug?

Postby lex- » Tue Mar 04, 2025 5:16 pm

Probably you ate too much pho noodles du ma. An phan con viet di di Hanoi.

wawjer
Basic Tree
Posts: 2
Joined: Thu Dec 22, 2022 1:09 pm
Been thanked: 1 time

Re: Bug?

Postby wawjer » Wed Mar 05, 2025 4:26 am

Thats how yall won so easily! I blamed my team for the loss too lol. That's the first ive seen anything like that. Just watched the replay and im still upset we lost that game. Someone using hax or a bug?

User avatar
h3rmit
Aura Tree
Posts: 27
Joined: Sat Aug 27, 2016 12:15 am
Has thanked: 3 times
Been thanked: 20 times

Re: Bug?

Postby h3rmit » Fri May 23, 2025 12:44 am

I don't login to the forum often, so I saw this 2 months later.

That's very interesting. Looks like you uncovered a bug that has been in DotA for a decade, ever since 6.83 came out. I took a few hours to do some research, watch the replay multiple times, record all related data and do all the math.


So first, the facts:

a) Your team killed Arc Warden at 32:05-32:06.

b) During these two seconds, your team's gold increased as listed below:

  • Admiral: 2374 -> 2378 (+4 gold)
  • Sniper: 639 -> 643 (+4 gold)
  • Zeus: 1297 -> 3133 (+1836 gold)
  • Tiny: 2040 -> 3469 (+1429 gold)
  • Storm: 2258 -> 3687 (+1429 gold)

c) Zeus took the kill for 407 gold, while Tiny and Storm assisted in it.

d) From the above we can deduce the following:
  • Timer gold: +4
  • Kill gold: +407
  • AoE gold: +1425 (more on that later)


Now let's do some research:

Ever since version 6.82b (Dota2 only), the following change in the mechanics of AoE Gold has been in effect:
https://liquipedia.net/dota2/Version_6.82b

The change was introduced in 2014 in Dota2 (versions 6.82b and 6.82c), and was ported to Dota1 in 2015 (version 6.83):
https://dota2.fandom.com/wiki/Game_Vers ... 0_to_6.88f

According Liquipedia's article, to calculate the "AoE gold" we have to take into account the victim's Level and everyone's "Net Worth".

"Net Worth", as the term implies, is the current gold plus the total price of a hero's items.

Depending on how many players of your team participated into the kill, the AoE gold is calculated using the following formulas:
  • 1 Hero: Gold = 40 + 7 * VictimLevel + NWFactor * 0.06
  • 2 Heroes: Gold = 30 + 6 * VictimLevel + NWFactor * 0.06
  • 3 Heroes: Gold = 20 + 5 * VictimLevel + NWFactor * 0.05
  • 4 Heroes: Gold = 10 + 4 * VictimLevel + NWFactor * 0.04
  • 5 Heroes: Gold = 10 + 4 * VictimLevel + NWFactor * 0.03
where
  • VictimLevel = Level of the Victim
  • VictimNW = The victim's Net Worth
  • EnemyTeamNW = Enemy team's total Net Worth
  • AlliedTeamNW = Your team's total Net Worth
  • NWDifference = ( EnemyTeamNW / AlliedTeamNW ) - 1 [Min 0, Max 1]
  • NWFactor = NWDifference * VictimNW


Now, let's do some math:

I recorded all the items and gold at the moment of the kill and calculated everyone's net worth.

a) Sentinel
  • Admiral: 17504
  • Sniper: 12249
  • Zeus: 12272
  • Tiny: 15390
  • Storm: 16033
Sentinel Net Worth: 73448

b) Scourge
  • Omniknight: 8813
  • Arc Warden: 28302
  • Viper: 9500
  • Legion Commander: 16847
  • Weaver: 11600
Scource Net Worth: 75062

Three people participated into the kill (Zeus, Tiny, Storm), so the formula is:
3 Heroes: AoE Gold = 20 + 5 * VictimLevel + NWFactor * 0.05

EnemyTeamNW = Enemy team's total Net Worth = Scource Net Worth = 75062
AlliedTeamNW = Your team's total Net Worth = Sentinel Net Worth = 73448
NWDifference = ( EnemyTeamNW / AlliedTeamNW ) - 1 [Min 0, Max 1] = (75062 / 73448) - 1 = 0.02197473
VictimNW = The victim's Net Worth = Arc Warden's Net Worth = 28302
NWFactor = NWDifference * VictimNW = 0.02197473 * 28302 = 621.9288204

AoE Gold = 20 + 5 * VictimLevel + NWFactor * 0.05 = 20 + 5 * 23 + 621.9288204 * 0.05 = 166.096441

So the AoE gold should have been 166, not 1425!


But that doesn't make any sense! What could have happened?

After some thought, I checked the Scourge's fountain and saw Arc's illusion standing there. With a full set of expensive items. So what if Arc Warden's Net Worth is counted twice, because of his illusion? Let's do the math again.


a) Sentinel
  • Admiral: 17504
  • Sniper: 12249
  • Zeus: 12272
  • Tiny: 15390
  • Storm: 16033
Sentinel Net Worth: 73448

b) Scourge
  • Omniknight: 8813
  • Arc Warden: 28302 * 2 = 56604
  • Viper: 9500
  • Legion Commander: 16847
  • Weaver: 11600
Scource Net Worth: 103364

EnemyTeamNW = Enemy team's total Net Worth = Scource Net Worth = 75062
AlliedTeamNW = Your team's total Net Worth = Sentinel Net Worth = 103364
NWDifference = ( EnemyTeamNW / AlliedTeamNW ) - 1 [Min 0, Max 1] = (103364/ 73448) - 1 = 0.407308572
VictimNW = The victim's Net Worth = Arc Warden's Net Worth = 56604
NWFactor = NWDifference * VictimNW = 0.407308572 * 56604 = 23055.29441

AoE Gold = 20 + 5 * VictimLevel + NWFactor * 0.05 = 20 + 5 * 23 + 23055.29441 * 0.05 = 1287.764721

Pretty close! Counting Arc Warden's Net Worth twice, I calculated an expected AoE Gold of 1288. That's not pretty far from the actual 1425 AoE gold that was awarded to the players.

So there you have it, that's a possible explanation of what happened.


Will there be a fix?

If the above assumption as to what is causing this bug is correct, then it should be straightforward to trace and make a bugfix at some point. But I'll make no promises.


UPDATE 2025-05-23

I checked the map and verified the bug. Indeed, Arc Warden's items are counted twice in the player's net worth, due to his illusion. Just in case, I also checked Meepo, but there doesn't seem to be a similar issue. The fix is straightforward, I'll be soon releasing a fix.
These users thanked the author h3rmit for the post (total 2):
GodSaveTheQQs (Fri May 23, 2025 9:49 pm) • Astros (Fri May 23, 2025 6:35 pm)

EdteOfChaos2
Forest Walker
Posts: 229
Joined: Sun Sep 15, 2019 8:24 pm
Has thanked: 47 times
Been thanked: 59 times

Re: Bug?

Postby EdteOfChaos2 » Fri May 23, 2025 3:52 pm

@h3rmit If you're changing the map, I'd also suggest simply removing Lanya from the taverns and -random pool (assuming it's too hard to fix the crashing, this is the next best option)
These users thanked the author EdteOfChaos2 for the post (total 2):
GodSaveTheQQs (Fri May 23, 2025 9:49 pm) • Astros (Fri May 23, 2025 6:35 pm)

User avatar
h3rmit
Aura Tree
Posts: 27
Joined: Sat Aug 27, 2016 12:15 am
Has thanked: 3 times
Been thanked: 20 times

Re: Bug?

Postby h3rmit » Sat May 24, 2025 9:25 am

Bugfix version 7 has already been released since yesterday to address the issue of this topic.

EdteOfChaos2 wrote:@h3rmit If you're changing the map, I'd also suggest simply removing Lanya from the taverns and -random pool (assuming it's too hard to fix the crashing, this is the next best option)


I think discussion about Lanaya deserves its own topic. I'll be opening one shortly.

P.S. About Lanaya


Return to “Defense of the Ancients”

Who is online

Users browsing this forum: No registered users and 3 guests