Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.
Zero Tolerance for Disrespect

Hiding the invitation command-line in Steam

Featured Replies

  • Author
  • Localization

aluigi, posted Tue Aug 05, 2014 12:46 pm (13)


An interesting feature of Steam is that you can invite your friends to join your game and you can also specify the command-line arguments that will be appended to the default ones of the game.

The Steamworks API to use for the invitation is the following:
Code:
   // rich invite support
   // if the target accepts the invite, the pchConnectString gets added to the command-line for launching the game
   // if the game is already running, a GameRichPresenceJoinRequested_t callback is posted containing the connect string
   // invites can only be sent to friends
   virtual bool InviteUserToGame( CSteamID steamIDFriend, const char *pchConnectString ) = 0;

So if we set pchConnectString to "-blah blahblah" then the game of the friend who accepts the invite will run with that additional arguments.

The problem is that the invited user will see the full custom command-line before accepting the invitation and so no fun for us:
Image

Let's try to add some bad chars like those below space (0x20):
Image
Yeah no fun yet.

Steam has an interesting interface option for improving the quality of the font, DirectWrite is switched off by default but many users like to improve everything:
Image

Let's send the same message sent before and watch the result :)
Image

Probably you are thinking that it's not that good but before the 11 July 2014 you didn't see those messy covered chars, the command-line was completely hidden.
The reason is probably explained in this changelog:
http://store.steampowered.com/news/13846/
Quote:
Fixed Korean text being cut off

Anyway it doesn't mean that we can't have fun doing things like the following:
Image
The command-line has been completely covered.

If you trust your "friend" why don't you accept the invite?
  • Author
  • Localization

trololo, posted Tue Dec 01, 2015 11:40 am (10230)


how ?
  • Author
  • Localization

aluigi, posted Wed Dec 02, 2015 9:03 am (10241)


With the Steam API, you have to write a small program to do that.
I have the old code that sends the message to all your friends (GetFriendCount()), but I don't know what's the current status of this "issue".
If needed I can upload both the code and the precompiled exe.
  • Author
  • Localization

trololo, posted Thu Dec 03, 2015 1:14 pm (10277)


yeah, it would be nice, if you can upload both
  • Author
  • Localization

aluigi, posted Thu Dec 03, 2015 7:00 pm (10287)


I guess Valve changed something because the InviteUserToGame API doesn't seem to work now, I mean even sending the "hello" command-line is not accepted, the friend will not receive the invite.

Anyway, just for reference, I have attached the code I used in my old test (over one year ago) that I have simply cleaned.
Totally useless.

steamviteme.zip

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.