Jump to content
McKay Development

Recommended Posts

Posted (edited)

I’ve been using requestRichPresence without issues, but after today’s Steam maintenance (3rd September 2025), it no longer returns any data.

Expected result (before today):

{
    "users": {
        "76561198006409530": {
            "richPresence": {
                "status": "Playing CS:GO",
                "version": "13765",
                "time": "15.851017",
                "game:state": "lobby",
                "steam_display": "#display_Menu",
                "connect": "+gcconnectG02C0193A"
            },
            "localizedString": "Playing CS:GO"
        }
    }
}

Result after maintenance:

{
  "users": {

  }
}

 

node-steam-user version: 5.2.3
Node.js version: 22.11.0

Edited by gerzy
  • gerzy changed the title to requestRichPresence returns empty object
  • 3 weeks later...
Posted

Fixed this by updating the schema steammessages_clientserver_2.json

"CMsgClientRichPresenceInfo": {
      "edition": "proto2",
      "fields": {
        "rich_presence": {
          "rule": "repeated",
          "type": ".CMsgClientRichPresenceInfo.RichPresence",
          "id": 1
        }
      },
      "nested": {
        "KV": {
          "fields": {
            "key": {
              "type": "string",
              "id": 1
            },
            "value": {
              "type": "string",
              "id": 2
            }
          }
        },
        "RichPresence": {
          "fields": {
            "steamid_user": {
              "type": "fixed64",
              "id": 1
            },
            "rich_presense": {
              "rule": "repeated",
              "type": ".CMsgClientRichPresenceInfo.KV",
              "id": 3
            }
          }
        }
      }
    },

 

And make changes for requestRichPresence inside friends.js because it returns array of object now not bytes
 

let response = {};
body.rich_presence = body.rich_presence || [];
for (let rp of body.rich_presence) {
    let kv = rp.rich_presense;
    if (!kv || !rp.steamid_user || kv.length == 0) {
        continue;
    }

    response[rp.steamid_user] = {
        richPresence: kv,
        localizedString: null,
    };
}

resolve({users: response});

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...