Jump to content
EdiJo

Old versions of ships deleted from the API

3 comments in this topic

Recommended Posts

[ALONE]
Players
1,417 posts
10,924 battles

If I ask for ship details from the Encyclopedia, for example here

https://developers.wargaming.net/reference/all/wows/encyclopedia/ships/

 

giving any ship_id gives me full info:

 

Spoiler

{
"status": "ok",
-"meta": {
"count": 1,
"page_total": 1,
"total": 1,
"limit": 100,
"page": 1
},
-"data": {
-"4292818736": {
"description": "Один из двух самых мощных линкоров флота Германии. Как и головной корабль серии, Tirpitz имел мощное бронирование, сильную артиллерию и высокую скорость. Основной недостаток проекта — слабая горизонтальная защита — на линкоре Tirpitz был в значительной мере компенсирован путём усовершенствования ПВО.",
"price_gold": 12500,
"ship_id_str": "PGSB002",
"has_demo_profile": false,
+"images": { … },
+"modules": { … },
+"modules_tree": { … },
"nation": "germany",
"is_premium": true,
"ship_id": 4292818736,
"price_credit": 0,
+"default_profile": { … },
+"upgrades": [ … ],
"tier": 8,
"next_ships": { },
"mod_slots": 5,
"type": "Battleship",
"is_special": false,
"name": "Tirpitz"
}
}
}

If I ask for ship_id = 4277057520, which is old Baltimore, I get:

 

Spoiler

{
"status": "ok",
-"meta": {
"count": 1,
"page_total": null,
"total": null,
"limit": null,
"page": null
},
-"data": {
"4277057520": null
}
}

That's weird. Is it a bug or this is intentional? Why there is no info returned, despite of the good practice for keeping separate ID for the old version of the ship? I am trying to do some stats on old replays and it would be really, hm, bad API design if any ships found in those were no longer supported. 

Are there any other surprises? I hoped that everything, if is changed (ship, upgrade), receives a new ID and the old version is preserved - am I wrong?

Share this post


Link to post
Share on other sites
[ALONE]
Players
1,417 posts
10,924 battles

@Crysantos Hello? Any chance to have this bug fixed? Looking up and hardcoding missing information in my code (assuming that I can find it for all possible parameters) seems simply stupid...  

Before posting here and on the "official" (de facto WoT only) forum I wrote a support ticket - the answer was that they "will contact specialists" and the forum was mentioned. 

Evidently nobody contacted "specialists", because this is quite simple & obvious fix.

Share this post


Link to post
Share on other sites
[WG-EU]
[WG-EU]
WG Staff, Alpha Tester
4,551 posts
1,364 battles

I am not sure whether it is intentional or a bug, but I will forward your issue/request. Also please don't assume something is easy or simple only because it looks like it. ;)

  • Cool 1

Share this post


Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.

×