seishun / node-steam

Interface directly with Steam servers from Node.js
MIT License
1k stars 181 forks source link

Avalible fields for steamRP.upload? #372

Closed mindcrimes closed 8 years ago

mindcrimes commented 8 years ago

hi, I'm trying to use steamRP but i cant seem to find what field i should use for uploading, steamRP.upload( { body: { status: "Competitive Inferno [ 3 : 10 ]", version: "13503", time: "4411.216601", "game:mode": "competitive", "game:mapgroupname": "mg_de_inferno", "game:map": "random", "game:server": "kv", "watch": "1", "game:score": "[ 3 : 1]" } }) ive already tried body and RP but i get an error about an unknown field

seishun commented 8 years ago

body is a CMsgClientRichPresenceUpload object.

You'll need to serialize the RP body yourself and put it in rich_presence_kv. I couldn't find a library that supports serializing binary VDF, but you can look how it's done here.