Bungie-net / api

Resources for the Bungie.net API
Other
1.22k stars 92 forks source link

Add activity reference id to current activity data #1017

Open mikechambers opened 5 years ago

mikechambers commented 5 years ago

Currently, it is possible to detect a users current activity via:

https://www.bungie.net/Platform/Destiny2/1/Profile/4611686018429783292/?components=204

and checking the following properties.

currentActivityHash currentActivityModeHash currentActivityModeTypes

However, it does not appear possible to link the current activity with an ID so it can be matched with activities via:

https://www.bungie.net/Platform/Destiny2/1/Account/4611686018429783292/Character/2305843009264966985/Stats/Activities/?mode=5&count=1

Responses to the Activities call include an ID that uniquely identifies the activity.

Would it be possible to include the activity ID in the Profile call? This would make it possible to link the current activity, with the archived activity (once it is completed).

(I understand the ID may not be created until the activity is completed, but if it is created, it would be useful to have a reference to it in the Profile call).

vthornheart-bng commented 5 years ago

Aye - unfortunately, the ID is indeed not created until the activity is completed - in truth, up to several minutes after it's been completed. There's a couple of things that would make pushing it back infeasible unfortunately: one is that by the time it's generated, it's no longer the current activity. I could see a world where we have some info about the last activity played, but the other problem is that it'd be a pretty significant set of infrastructure work to get the live game servers to know about recent activities in the stats system that generates IDs.

Because of those issues, this one is unfortunately not one we'll be able to do unless there's a pretty significant change to how Destiny processes and uses stats. Sorry about that!

mikechambers commented 5 years ago

@vthornheart-bng Thanks. That is what i figured. Im currently trying to match by hashing activity mode and location (in my case pvp map name and game type), but of course, that is not 100% reliable.

floatingatoll commented 5 years ago

What % reliable is it? 90, 60, 5?

On Aug 28, 2019, at 15:51, Mike Chambers notifications@github.com wrote:

@vthornheart-bng https://github.com/vthornheart-bng Thanks. That is what i figured. Im currently trying to match by hashing activity mode and location (in my case pvp map name and game type), but of course, that is not 100% reliable.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Bungie-net/api/issues/1017?email_source=notifications&email_token=AAAWUDGP4ATE23KSMEGKNSDQG36QDA5CNFSM4IRSPXF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5MWLAA#issuecomment-525952384, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAWUDA2TQ3QR7LC3ZQEW7LQG36QDANCNFSM4IRSPXFQ.

mistahj67 commented 5 years ago

!pvp scry via Charlemagne?

mikechambers commented 5 years ago

@floatingatoll In my case, It depends on the pvp playlist, and the frequency that you will get the same map, and game mode twice in a row.

@mistahj67 Im a big charlemagne fan, but im not asking how to detect current activity (I know how to do that). I am requesting a way to link the current activity, with a future activity report. Appears to not be currently possible with certainty..

vthornheart-bng commented 5 years ago

Yes, unfortunately it's a tough one. The best you could likely do is after the fact, if you're looking to match PGCR data to it. You could take the time that you saw them playing, and then look for a PGCR whose active time has that time fall into the range. But it's definitely janky, and would require you to not actually care until after the activity has ended. :(

Suckitup commented 2 years ago

I know this thread is incredibly old, and I do not post a lot. But is this still the case? (After the updates to servers and the entire game itself I mean?) I am looking to do something to help people out who have difficulty with symbols, (which is a medical condition) for the raid in real-time or even location on a map to start. Eventually, I would like to help with something to figure out which symbols were going to pop up near linked guardian