reactivedrop_public_src icon indicating copy to clipboard operation
reactivedrop_public_src copied to clipboard

[suggestion] new medals containing dynamic user stats

Open ywgATustcbbs opened this issue 1 year ago • 3 comments

i got an idea about medals that contain dynamic user stats. For example, a medal that shows a user's best 5 records in all his HoIAF seasons, a medal tells others the number of current unlocked achievements, or a medal that shows all donations of a user has made.

Since it might be hard to make a medal using inventory service, i suggest using a walk around solution for such medals:

  1. Unlocks a placeholder medal for all qualified users. The placeholder item is just an embed virtual item that does not display in steam inventory. But the game can display it as if it were an inventory item.
  2. The game code will check if the user meets the placeholder unlocking requirements. For example, unlocks HoIAF placeholder only when a user has participated at least 5/10 seasons.
  3. The user can pick the placeholder medal and the game will collect info/stats, display dynamic contents, and select an appropriate style. The info/stats can be buffered in memory or stored in steam cloud and be updated periodically (after each mission / every 5-10 minutes / every start up etc).
  4. When connecting to a server with placeholder item equipped, the user has to send his placeholder progress/info to server on each mission restart, or just send the progress periodically
  5. server collectes placeholder data and sync to all clients periodically.
  6. Clients show the placeholder medal the same way as step 3

In this way, no steam inventory service is required, This solution could be used to achieve a strange-weapon-like system for medals if those data are stored in user's steam cloud. But it has some data broken issues when desyncing with steam cloud for some users. For some stats, we can check and reconstruct those data.

ywgATustcbbs avatar Jun 30 '23 17:06 ywgATustcbbs