Jump to content
McKay Development

UntitledUser

Member
  • Posts

    6
  • Joined

  • Last visited

Reputation Activity

  1. Like
    UntitledUser reacted to flameoflust69 in requestRichPresence returns empty object   
    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});  
  2. Like
    UntitledUser reacted to 4049_1572836826 in Non-working cookies   
    Browser script:
    document.cookie = 'steamLoginSecure=xxxxxxxxxxxxxxxxxxxxxxx; expires=Fri, 02 Jun 2023 10:14:12 GMT; path=/';  
    Node script with steam-session
    log(`Generating cookie: ${token}`, 'info', 'steam-session', true, id) const session = new LoginSession(EAuthTokenPlatformType.WebBrowser) session.refreshToken = token const cookie = await session.getWebCookies() log(`Cookie: ${cookie}`, 'info', 'steam-session', true, id)
×
×
  • Create New...