Microsoft programmers can't math?

User avatar
Netherlands edeholland
ESOC Community Team
Donator 01
Posts: 5033
Joined: Feb 11, 2015
ESO: edeholland
GameRanger ID: 4053888
Clan: ESOC

Microsoft programmers can't math?

Post by edeholland »

[strike]So I've been looking into the bug that units lose more HP when they break relations with British than they get with allying.

The code for allying is the following:
[/strike]

Code: Select all

  <'Effect type ='TechStatus' status ='obtainable'>'ypConsulateRelationsBritish<'/Effect>'
   <'Effect type ='Data' amount ='1.10' subtype ='Hitpoints' relativity ='BasePercent'>'
    <'Target type ='ProtoUnit'>'AbstractVillager<'/Target>'<'/Effect>'
   <'Effect type ='Data' amount ='1.10' subtype ='Hitpoints' relativity ='BasePercent'>'
    <'Target type ='ProtoUnit'>'AbstractInfantry<'/Target>'<'/Effect>'
   <'Effect type ='Data' amount ='1.10' subtype ='Hitpoints' relativity ='BasePercent'>'
    <'Target type ='ProtoUnit'>'AbstractCavalry<'/Target>'<'/Effect>'
   <'Effect type ='Data' amount ='1.10' subtype ='Hitpoints' relativity ='BasePercent'>'
    <'Target type ='ProtoUnit'>'AbstractArtillery<'/Target>'<'/Effect>'
   <'Effect type ='Data' amount ='1.10' subtype ='Hitpoints' relativity ='BasePercent'>'
    <'Target type ='ProtoUnit'>'Surgeon<'/Target>'<'/Effect>'   
[strike]
The code for breaking relations is the following:
[/strike]

Code: Select all

<'Effect type ='TechStatus' status ='unobtainable'>'ypConsulateRelationsBritish<'/Effect>'
   <'Effect type ='Data' amount ='0.90' subtype ='Hitpoints' relativity ='BasePercent'>'
    <'Target type ='ProtoUnit'>'AbstractArtillery<'/Target>'<'/Effect>'
   <'Effect type ='Data' amount ='0.90' subtype ='Hitpoints' relativity ='BasePercent'>'
    <'Target type ='ProtoUnit'>'AbstractCavalry<'/Target>'<'/Effect>'
   <'Effect type ='Data' amount ='0.90' subtype ='Hitpoints' relativity ='BasePercent'>'
    <'Target type ='ProtoUnit'>'AbstractInfantry<'/Target>'<'/Effect>'
   <'Effect type ='Data' amount ='0.90' subtype ='Hitpoints' relativity ='BasePercent'>'
    <'Target type ='ProtoUnit'>'Surgeon<'/Target>'<'/Effect>'
[strike]
Who thought this was a good idea? Multiplying a number by 1,10 and then by 0,9 does not give you the original value.

150*1,1=165
165*0,9=148,5

So basicly, each time you break relations with Brits, you lose 1% hp on all your units. [/strike]

It's even worse for Japanese.

When you isolate:

Code: Select all

         <'Effect type ='Data' amount ='1.05' subtype ='Damage' allactions ='1' relativity ='BasePercent'>'
            <'Target type ='ProtoUnit'>'AbstractCavalry<'/Target>'<'/Effect>'
         <'Effect type ='Data' amount ='1.05' subtype ='Damage' allactions ='1' relativity ='BasePercent'>'
            <'Target type ='ProtoUnit'>'AbstractArtillery<'/Target>'<'/Effect>'
         <'Effect type ='Data' amount ='1.05' subtype ='Damage' allactions ='1' relativity ='BasePercent'>'
            <'Target type ='ProtoUnit'>'AbstractVillager<'/Target>'<'/Effect>'

When you break relations:

Code: Select all

         <'Effect type ='Data' amount ='0.90' subtype ='Damage' allactions ='1' relativity ='BasePercent'>'
            <'Target type ='ProtoUnit'>'AbstractArtillery<'/Target>'<'/Effect>'
         <'Effect type ='Data' amount ='0.90' subtype ='Damage' allactions ='1' relativity ='BasePercent'>'
            <'Target type ='ProtoUnit'>'AbstractCavalry<'/Target>'<'/Effect>'
         <'Effect type ='Data' amount ='0.90' subtype ='Damage' allactions ='1' relativity ='BasePercent'>'
            <'Target type ='ProtoUnit'>'AbstractInfantry<'/Target>'<'/Effect>'
So you also lose more than 1% of your attack each time you break relations.

:whistling:
User avatar
Germany yemshi
Jaeger
Posts: 2311
Joined: Jun 3, 2015
ESO: yemshi
Location: Germany

Microsoft programmers can't math?

Post by yemshi »

Down to 0 attk?
User avatar
Netherlands Goodspeed
Retired Contributor
Posts: 13006
Joined: Feb 27, 2015

Microsoft programmers can't math?

Post by Goodspeed »

For Jap you actually lose a ton more because it's +5% and then -10%. You know, cause they nerfed jap isolation to give 5% instead of 10 but forgot to change the cancel tech.

But yeah the *1.1 then *0.9 thing is pretty hilarious. You'd think a programmer understands basic math..
User avatar
Netherlands edeholland
ESOC Community Team
Donator 01
Posts: 5033
Joined: Feb 11, 2015
ESO: edeholland
GameRanger ID: 4053888
Clan: ESOC

Microsoft programmers can't math?

Post by edeholland »

I assume it will repeat itself and near 0 attack. Of course it can never really reach zero.
User avatar
Great Britain britishmusketeer
Howdah
Posts: 1845
Joined: Feb 28, 2015

Microsoft programmers can't math?

Post by britishmusketeer »

I guess you don't go to dutch consulate late game for a quick bank then.
User avatar
Netherlands edeholland
ESOC Community Team
Donator 01
Posts: 5033
Joined: Feb 11, 2015
ESO: edeholland
GameRanger ID: 4053888
Clan: ESOC

Microsoft programmers can't math?

Post by edeholland »

britishmusketeer wrote:I guess you don''t go to dutch consulate late game for a quick bank then.
[strike]It''s for Brits and Japs. I haven''t looked if you get a negative gold trickle with Dutch yet. (:))[/strike]


You are talking about being allied with Japs and then switching to Dutch of course. You lose like 10% attack then, indeed a reason not to break relations.
Netherlands momuuu
Ninja
Posts: 14237
Joined: Jun 7, 2015
ESO: Jerom_

Microsoft programmers can't math?

Post by momuuu »

1/1.1 = 0.9 confirmed.
No Flag grihaci
Crossbow
Posts: 7
Joined: Mar 13, 2015

Microsoft programmers can't math?

Post by grihaci »

I don't know about Japanese isolation but I have tested in game and allying and breaking relations with brits actually don't lower infantry hitpoints. It says "base percent" therefore its calculated over base value.
150 + 150*0.1 = 165
when you break:
150 + 150*0.1 - 150*0.1 = 150
User avatar
Netherlands edeholland
ESOC Community Team
Donator 01
Posts: 5033
Joined: Feb 11, 2015
ESO: edeholland
GameRanger ID: 4053888
Clan: ESOC

Microsoft programmers can't math?

Post by edeholland »

grihaci wrote:I don''t know about Japanese isolation but I have tested in game and allying and breaking relations with brits actually don''t lower infantry hitpoints. It says "base percent" therefore its calculated over base value.
150 + 150*0.1 = 165
when you break:
150 + 150*0.1 - 150*0.1 = 150
Good point, I did not realise that. Anybody who wants to quickly test the Jap consulate? :-X
User avatar
Netherlands Goodspeed
Retired Contributor
Posts: 13006
Joined: Feb 27, 2015

Microsoft programmers can't math?

Post by Goodspeed »

Oh, right, AoE uses base values for everything.
Jp cons is *1.05 then *0.9 so you're still losing 5%
No Flag deleted_user0
Ninja
Posts: 13004
Joined: Apr 28, 2020

Microsoft programmers can't math?

Post by deleted_user0 »

rofl... scrubs
User avatar
New Zealand zoom
Gendarme
Posts: 9314
Joined: Apr 26, 2015
ESO: Funnu
Location: New_Sweland

Microsoft programmers can't math?

Post by zoom »

I actually have to agree entirely with Ume? on this one. It's a well known bug that Japanese Isolation causes this decrease since the nerf because they forgot to adjust the end-alliance modifier. It's also well known that there is no such issue with British Allies.

I suppose I forgive you though. 1.1x0.9 does not equal 1, after all...
Netherlands momuuu
Ninja
Posts: 14237
Joined: Jun 7, 2015
ESO: Jerom_

Microsoft programmers can't math?

Post by momuuu »

Apperently they arent stupid haha.

Thats good, otherwise itd be very concerning haha.
User avatar
New Zealand zoom
Gendarme
Posts: 9314
Joined: Apr 26, 2015
ESO: Funnu
Location: New_Sweland

Microsoft programmers can't math?

Post by zoom »

Robot are though, it would seem...
Netherlands momuuu
Ninja
Posts: 14237
Joined: Jun 7, 2015
ESO: Jerom_

Microsoft programmers can't math?

Post by momuuu »

zoom wrote:Robot are though, it would seem...

we knew that already though.
United States of America Metis
Howdah
Posts: 1661
Joined: Mar 28, 2015

Microsoft programmers can't math?

Post by Metis »

If you continue establishing and ending relations with the Japanese Consulate you eventually get this:

Image
France iNcog
Ninja
Posts: 13236
Joined: Mar 7, 2015

Microsoft programmers can't math?

Post by iNcog »

loool
YouTube: https://www.youtube.com/incog_aoe
Garja wrote:
20 Mar 2020, 21:46
I just hope DE is not going to implement all of the EP changes. Right now it is a big clusterfuck.
User avatar
Germany yemshi
Jaeger
Posts: 2311
Joined: Jun 3, 2015
ESO: yemshi
Location: Germany

Microsoft programmers can't math?

Post by yemshi »

I was right! But loool^^
User avatar
United States of America noissance
Jaeger
Donator 01
Posts: 2031
Joined: Mar 28, 2015
ESO: noissance
Location: United States

Microsoft programmers can't math?

Post by noissance »

that isn't a math problem, it is a memory problem (forgot to nerf both increase and decrease)
Error 404: Signature not found
No Flag bart331
Lancer
Donator 01
Posts: 513
Joined: Feb 28, 2015

Microsoft programmers can't math?

Post by bart331 »

Its balanced imo, jap deserve it
User avatar
New Zealand zoom
Gendarme
Posts: 9314
Joined: Apr 26, 2015
ESO: Funnu
Location: New_Sweland

Microsoft programmers can't math?

Post by zoom »

yemshi wrote:I was right! But loool^^
No. You were wrong. You still are.

It does show as "0" in the UI though...
Netherlands momuuu
Ninja
Posts: 14237
Joined: Jun 7, 2015
ESO: Jerom_

Microsoft programmers can't math?

Post by momuuu »

zoom wrote:
yemshi wrote:I was right! But loool^^
No. You were wrong. You still are.

It does show as "0" in the UI though...

limit[n->inf](a*0.95^n)=0
So he is right ')
User avatar
Netherlands Goodspeed
Retired Contributor
Posts: 13006
Joined: Feb 27, 2015

Microsoft programmers can't math?

Post by Goodspeed »

When physicists try to make math jokes...
Netherlands momuuu
Ninja
Posts: 14237
Joined: Jun 7, 2015
ESO: Jerom_

Microsoft programmers can't math?

Post by momuuu »

calmyourtits wrote:When physicists try to make math jokes...

was that a joke? Physicists dont make jokes.

Except one about electrons that isnt funny.
User avatar
New Zealand zoom
Gendarme
Posts: 9314
Joined: Apr 26, 2015
ESO: Funnu
Location: New_Sweland

Microsoft programmers can't math?

Post by zoom »

jerom wrote:
zoom wrote:No. You were wrong. You still are.

It does show as "0" in the UI though...
limit[n->'inf](a*0.95^n)=0
So he is right ')
No, son. You can multiply any number greater than zero with any number greater than zero and it will never become zero.

So he is wrong.

Who is online

Users browsing this forum: No registered users and 23 guests

Which top 10 players do you wish to see listed?

All-time

Active last two weeks

Active last month

Supremacy

Treaty

Official

ESOC Patch

Treaty Patch

1v1 Elo

2v2 Elo

3v3 Elo

Power Rating

Which streams do you wish to see listed?

Twitch

Age of Empires III

Age of Empires IV