question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improvement of gamesPlayed method

See original GitHub issue

I think that method gamesPlayed can be improved by specifying appid when using type of shortcut (or at least using a fixed value). Say we want to see a custom message at the chat area (for status message, debug purposes, etc.) which will be the same for desktop client chat window and friends list, mobile client friends list and https://steamcommunity.com/chat):

const Long = require('bytebuffer').Long;

client.gamesPlayed([{
    game_id: new Long((2 << 24) | 250820, 0x80000000, true), // or just "-9223372036820970556"
    game_extra_info: 'Custom text'
}, 550]);
// 250820 - appid of SteamVR (always available and wont spoil profile play feed)
// and 550 of L4D2 for example while using list of games

Also it looks like that Steam need that high bit to display properly: https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/public/steam/steamclientpublic.h#L1062

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
DoctorMcKaycommented, Jan 3, 2017

Okay, confirmed that does work on mobile and desktop, but I’m not sure I want to add something that amounts to a glitch to the module, as it’s liable to break at any point in the future. Shortcut names are officially supported but using this thing is a glitch.

You’re welcome to do it manually if you wish using the code you posted previously.

1reaction
shqkecommented, Dec 31, 2016

Like I said in the beginning my whole point of using shortcut names was to provide ‘status text’ feature. Thus I think it wouldn’t be too bad to have gamesPlayed slightly changed or overloaded to support a feature on mobile app. Maybe a fixed appid can be used (like SteamVR tool which wont spoil playfeed)? I doubt it will change anytime soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

In Defense of the Games Played Method of Apportionment ...
The players argued that the games played method of apportionment violates the Due Process Clause and. Commerce Clause of the United States Constitution....
Read more >
The Robert Ris Chess Improvement Method - iChess.net
Most games played below the 2200 Elo level are decided by tactics. Mastering them helps you at any stage of the game –...
Read more >
Chess.com Lessons vs Improvement: The Stats
Traditionally, chess players have improved by practicing, reading books and analyzing with stronger players. Now some new methods are being ...
Read more >
Executive Functions Can Be Improved in Preschoolers ...
This study aimed to test the impact of play on the development of executive functions (EFs) in preschoolers. Thirty-two games were designed ...
Read more >
The Lasker Method to Improve in Chess
I've always believed that you'll benefit more from studying games played by someone 200-300 points stronger than you than you would from top...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found