greenheartgames / greenworks

a node.js plugin to integrate nw.js/electron games with steamworks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question about GreenWorks - DayZ Discord Rich Presence

AlexAnimateMp4 opened this issue · comments

Hello.

I'm working on creating a Discord Rich Presence for DayZ.
For this I have to use the Steam API.
The Steam Web API works fine but the problem is that to access it you need a Steam token.
It would be better to use the Steam client directly.
GreenWorks does, I managed to use GreenWorks and retrieve the logged in user's Steam ID.
But except that I need more information, but I don't know if I can retrieve this information with GreenWorks.

I want this information:

https://developer.valvesoftware.com/wiki/Steam_Web_API#GetPlayerSummaries_.28v0002.29

  • The link of the user's Steam profile - profileurl
  • The identifier of the game played - gameid
  • The IP address and port of the server played - gameserverip
  • The Steam ID of the server being played - gameserversteamid
  • The name of the server being played - name
  • The name of the map played - map

I tried getFriendGamePlayed but it doesn't work properly.

Bonus: I would also like to know if with Steam browser protocol or GreenWorks I can launch DayZ directly with command arguments.

Thanks in advance, have a nice day.