Page 1 of 1

EFFACÉ

PostPosted: Sun Feb 17, 2013 1:29 am
by Ozserf
EFFACÉ

Re: Proposition for Lopdo

PostPosted: Sun Feb 17, 2013 3:51 am
by Tensegravz
Ozserf wrote:Lopdo, would you please play 5 games a day seven days in a row on XXL maps or 250 regions HC FULLMAP borders, using Frankenstein and tell me if you don't find a recurrent weakness with their attack?

:D



5 Games per race each Day !!! :P same thing for dragons XD


lopdo if i understand.....The code its the same for all Race.... so if Terminator Vs Reptile get both a roll of 40 in ur formula.....the Reptile add +5% of this roll as a BONUS so terminator stay at 40 and reptile get 42 ?

could it change something if each race have his own roll code ?

Re: Proposition for Lopdo

PostPosted: Sun Feb 17, 2013 4:09 am
by BeatlesFan
lopdo: I understand the concept that the code is similar for all races, so you don't believe it is bugged. Or if it is bugged, it is the "same bug" for all races so it evens out. That may even be true.

I suspect there is an issue with dragons in HC mode.

I know that there are different modes of calculating the dice roll and then determining if there is a win or not. Two scenarios:

A) 1v1 or 1v1 Quick modes: The dice fight individually, not as a group total in a sense. How is the dragon bonus applied in this situation - to each die roll? My suspicion is that dragons have a similar issue in HC mode - they are not calculating the totals and then adding the 5% bonus. Somehow each die roll is being compared and due to rounding there is no bonus. You don't seem to get a "total" plus 5% in HC mode.

B) Attrition: Dragons seem to work fine'/great in attrition mode - so when each player (potentially) loses something, individual rolls or however it is counted, cause the other player to "be reduced".

Bringing me to the thought I have about dragons in HC mode - If you don't get the bonus on individual rolls added up - when you play HC it adds up to no benefit.

Can you take a look at this possibility? I agree that it is likely that dragons are not glitched, but the problem lies in when and how the bonus is applied (individual dies or total combined roll) in HC mode.

Further, I would not even have an issue if there were no benefit (after all 5% is very tiny - adds a 1 to a roll of 20) - but my dragons fail in attacks more often than other races I use - but in HC mode.

The issue may be the calculation for HC mode, not the dragons themselves.

Re: Proposition for Lopdo

PostPosted: Sun Feb 17, 2013 10:32 am
by calleharnemark
This sounds like fun to test. But according to Lopdo's profile he hasn't all races and according to forum not so much time. I don't know the time in Slovakia. But we have to work this out. I find myself unlucky with all races. Tried tannenbaums and didn't get the wins as Ryankill got. And they were very unlucky without boosts. Hmmm.

Re: Proposition for Lopdo

PostPosted: Sun Feb 17, 2013 10:49 am
by Lopdo
attack/defense bonuses are not applied in 1v1 mode, it wouldn't make sense. Algorithm for throwing dice is same in HC as it is in Att, to be more specific:

Code: Select all
attackerThrow = 0;
defenderThrow = 0;
for (int i = 0; i < sourceDice; ++i) {
   attackerThrow += rand.Next(6) + 1;
}
for (int i = 0; i < targetDice; ++i) {
   defenderThrow += rand.Next(6) + 1;
}


after that, bonuses are applied

Code: Select all
double bonus = 1.0;
if (race == 102)
   bonus = 1.05;
if (race == 104)
   bonus = 1.05;
if (race == 105)
   bonus = 0.95;
if (race == 107)
   bonus = 1.05;
if (race == 108)
   bonus = 1.05;
if (race == 114 && attackerStrength < defenderStrength)
   bonus = 1.15;
if (race == 118)
   bonus = 0.95;
if (race == 115 && usingAttackBoost)
   bonus = 1.1;
if (race == 120) {
   if (strength <= 5)
      bonus = 1.15;
   else {
      int max = map.GetRegionCount() / 2;
      if (strength >= max)
         bonus = 1;
      else
         bonus = 1 + 0.15 - 0.15* (strength - 5.0) / (max - 5.0);
   }
}
if (race == 122) {
   bonus = hasDefenseBoost ? 1.2 : 1.0;
}

if (bonus == 1) return defaultAttack;

return bonus > 1.0 ? (int)Math.Floor(defaultAttack * bonus) : (int)Math.Ceiling(defaultAttack * bonus);


I know I should have used enum or constants for races, shut up :P This code is for attack bonus, defense bonus is more or less same, just different numbers.

That is all there is to calculating throws, not much space for race specific bug, is there? However if you find one, I would be more than happy to fix it

Re: Proposition for Lopdo

PostPosted: Sun Feb 17, 2013 1:38 pm
by Autumnwolf17
calleharnemark wrote:This sounds like fun to test. But according to Lopdo's profile he hasn't all races and according to forum not so much time. I don't know the time in Slovakia. But we have to work this out. I find myself unlucky with all races. Tried tannenbaums and didn't get the wins as Ryankill got. And they were very unlucky without boosts. Hmmm.

I'm pretty sure he's allowed to get free races.

Re: Proposition for Lopdo

PostPosted: Sun Feb 17, 2013 3:19 pm
by >(FM)<
calleharnemark wrote:This sounds like fun to test. But according to Lopdo's profile he hasn't all races and according to forum not so much time. I don't know the time in Slovakia. But we have to work this out. I find myself unlucky with all races. Tried tannenbaums and didn't get the wins as Ryankill got. And they were very unlucky without boosts. Hmmm.

SAME HERE ZOMG