Khorne Posted April 24, 2017 Share Posted April 24, 2017 (edited) The current individual War API lacks in certain information that I personally feel as if would make parsing war stats easier by a wide margin. It would also reduce the amount of scraping (pls sheepy don't do dis to me) I have to do for unit damage dealt/taken, and extra things such as gasoline/munitions/steel/aluminum used. If you can add that too, I and a whole load of other programmers that use the war API would be grateful. Taking the example of the current individual war API (/api/war/<warid>) with the - as of the time of posting this - newest war: { ["war_ended":false, "date":"2017-04-24T14:38:57+00:00", "aggressor_id":"56540", "defender_id":"51045", "aggressor_alliance_name":"Lordaeron", "aggressor_is_applicant":false, "defender_alliance_name":"The Fighting Pacifists", "defender_is_applicant":false, "aggressor_offering_peace":false, "war_reason":"All your base are belong to us", "ground_control":"0", "air_superiority":"56540", "blockade":"0", "aggressor_military_action_points":"2", "defender_military_action_points":"6", "aggressor_resistance":"100", "defender_resistance":"88", "aggressor_is_fortified":false, "defender_is_fortified":false, "turns_left":60}] } ... vs. the one I wish to propose: { ["war_ended":false, "date":"2017-04-24T14:38:57+00:00", "aggressor_id":"56540", "defender_id":"51045", "aggressor_alliance_name":"Lordaeron", "aggressor_is_applicant":false, "defender_alliance_name":"The Fighting Pacifists", "defender_is_applicant":false, "aggressor_offering_peace":false, "war_reason":"All your base are belong to us", "ground_control":"0", "air_superiority":"56540", "blockade":"0", "aggressor_military_action_points":"2", "defender_military_action_points":"6", "aggressor_resistance":"100", "defender_resistance":"88", "aggressor_is_fortified":false, "defender_is_fortified":false, "turns_left":60, // Now start the Unit/Infra losses for the Defender "defenderSoldierLost":<insert soldiers lost>, "defenderTankLost":<insert tanks lost>, "defenderAircraftLost":<insert aircraft lost>, "defenderShipLost":<insert ships lost>, "defenderInfraLost":<insert infra lost>, // Now for the attacker "attackerSoldierLost":<insert soldiers lost>, "attackerTankLost":<insert tanks lost>, "attackerAircraftLost":<insert aircraft lost>, "attackerShipLost":<insert ships lost>, "attackerInfraLost":<insert infra lost>, // And if this is possible, resources used: "defenderGas":<insert gasoline used>, "defenderMuni":<insert munitions used>, "defenderSteel":<insert Steel used>, "defenderAlu":<insert aluminum used>, //For the Attacker: "attackerGas":<insert gasoline used>, "attackerMuni":<insert munitions used>, "attackerSteel":<insert Steel used>, "attackerAlu":<insert aluminum used>,}] } Would such an addition to the current API be feasible, or am I completely out of my mind? Some Benefits: Fact is, for stats gathering at the end of a war, for IA purposes to gather total losses of nations when an alliance leaves a war, and a few other miscellaneous purposes, this API upgrade would mean a lot. It would mean that the player doesn't have to scrape through several war-declaration pages, and overall mean that the API's both more comprehensive and detailed, and actually includes some, in my opinion, very relevant information in relation to the "/api/war/<warid>" API, which I feel as if is lacking at the moment. Edited April 24, 2017 by Khorne 6 Quote "To give anything less than your best is to sacrifice the gift." ~ Prefontaine Pure Gold, ~KT chat: Link to comment Share on other sites More sharing options...
Ripper Posted April 24, 2017 Share Posted April 24, 2017 These additions actually will be really helpful not only for programmers but for common mortals too. For example, whenever I execute an attack, I get informed about the gas and munitions I used for the attack. This very information though is not saved anywhere (while it could). It could be another field at the war activity logs where you get informed about lost tanks, soldiers, etc. (on that note, you could add another field for missiles/nukes used). Be it for war or a simple raid, the gas and munitions used for a ground attack may reach 10-20% of the loots (provided your army gets max loot this round). In some other cases, nations infrabomb with their planes infrastructure that is actually cheaper than the gas and munitions they spend... These are just some simple examples. Being able to track more information regarding the wars will certainly boost this part of the game, the same way many tools developed by players have boosted economy planning of nations and alliances. 4 Quote Link to comment Share on other sites More sharing options...
DragonK Posted April 24, 2017 Share Posted April 24, 2017 Arrgh! 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.