Jump to content
Sign in to follow this  
Frawley

War Attacks API

Recommended Posts

Hi Alex,

There seems to be a calculation error in the war-attacks api, this error only affects successful missile attacks.  It seems to value the infra at astronomical amounts, this was picked up when we released the war level statistics on https://npowned.net/pw-war-statistics/ by a number of players.  See the below for reference just the top 20 errors:

unknown.png

We have manually recalculated all of your infra numbers and can confirm this only affects missiles, however it has resulted in nearly 21.8b dollars in damage being wiped off of the stat sheets for this war.

Thanks again for your assistance with this.

Best,

 

  • Upvote 5

Share this post


Link to post
Share on other sites

It values the infra destroyed at the full value of that cities infra (ignoring deductions for the project and gov setting) rather than the amount actually destroyed.

Share this post


Link to post
Share on other sites

I guess Chris / Walling doesn't want to handle this? When's Alex coming back?

Share this post


Link to post
Share on other sites
On 1/14/2019 at 1:35 AM, Inst said:

I guess Chris / Walling doesn't want to handle this? When's Alex coming back?

I think you think Chris is someone different than who he is. Our Chris has no affiliation with Project-Terra, or any game like this until he started working with me here. He also doesn't have development access to fix something like this.

I'll look at solving this right now.

 

EDIT:

The issue was a minor bug in the code that caused the calculated and recorded value for the cost of infrastructure destroyed in missile attacks to be calculated as the value between 0 and the infrastructure in the city before the attack.

This bug has been fixed now, so the values should be properly recorded going forward, but unfortunately there's no way to correct the stored value. In theory, you could calculate the correct value yourself however using the recorded amount of infrastructure destroyed along with the recorded city infrastructure before the attack and run the calculation manually yourself using the infrastructure pricing formula.

  • Upvote 4

Share this post


Link to post
Share on other sites

Thank you for the confirmation on the changes in war stats.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use and the Guidelines of the game and community.