respectZ / blue-archive-spine

Blue Archive Spine Viewer
71 stars 25 forks source link

`JP` version support #13

Open LXY1226 opened 2 years ago

LXY1226 commented 2 years ago

Out-of-topic: I have temporarily left from this game

Brief

As we know. The only resource extraction scripts available in this repo are for the Global version. Then all the roles that exist in the Global version exist in the JP version.

So... Could we extract resources from JP version automatically?

SunsetMkt commented 2 years ago

It seems that JP version API is totally different from Global server.

I tried to analyze it but confused.

SunsetMkt commented 2 years ago

These links may be helpful: https://yostar-serverinfo.bluearchiveyostar.com/r47_50ywch97hfg06o8rom7w.json https://prod-clientpatch.bluearchiveyostar.com/r47_1_22_46zlzvd7mur326newgu8_2/Android/catalog_Android.json https://prod-clientpatch.bluearchiveyostar.com/r47_1_22_46zlzvd7mur326newgu8_2/Android/bundleDownloadInfo.json https://prod-clientpatch.bluearchiveyostar.com/r47_1_22_46zlzvd7mur326newgu8_2/MediaResources/MediaCatalog.json

SunsetMkt commented 2 years ago

https://github.com/lwd-temp/blue-archive-spine

SunsetMkt commented 2 years ago

The update json link seems to be hard coded into the game code and needs to be updated manually.

We can get LatestClientVersion from https://prod-noticeindex.bluearchiveyostar.com/prod/index.json, but how the random hash path (likes r48_2q1alt6gvk5igdsj4hl2.json) under yostar-serverinfo.bluearchiveyostar.com is generated?

It seems that BA Japan (Yostar) does not have a certain resource path API. And their developers hard code the resource link for a version into the game code. The game only checks for LatestClientVersion to see if it's outdated and asks the user to update the game from Google Play to get the latest resource link.

Does this mean the user has to update the game from Google Play every month to get the latest monthly in-game activity? -- Yes, this is what's happening. (BA Japan releases an update at Google Play about every month, while BA Global updates about every three months)