Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] PortMaster-SteamLink #748

Open
JeodC opened this issue Oct 7, 2024 · 0 comments
Open

[Feature Request] PortMaster-SteamLink #748

JeodC opened this issue Oct 7, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@JeodC
Copy link
Collaborator

JeodC commented Oct 7, 2024

As the number of indie ports grows, I've come to realize how important having reliable Steam metrics is to indie developers. I've previously voiced an opinion that I'd love to see a lightweight steamapi to connect PortMaster with Steam for these modern commercial ports, however after some research it doesn't seem too feasible.

Instead, I would like to investigate a possible workaround. Steam has the ability to run a non-steam application as a specific game through a steam_appid.txt file in the same directory as the application being run. The text file, as the name implies, contains only the appid. On running this non-steam game through Steam (steam://rungameid/<game_id>), Steam will believe it is running the appid contained in the text file. We will presumably have to parse the userdata/config/shortcuts.vdf file to obtain the gameid once added to Steam, and then use that for the console command. However, once that's set up, we should theoretically be able to do the following assuming the user is playing their handheld on the same network as the PortMaster-SteamLink listener:

  • User launches port
  • Launchscript sends appid to PM-SteamLink listener
  • PM-SteamLink listener modified steam_appid.txt with the received value
  • PM-SteamLink listener runs an instance of itself using steam://
  • Steam thinks the game is running, accruing playtime
  • PM-SteamLink listener closes its instance on port close

It sounds kinda nuts, but I think it might work.

@JeodC JeodC self-assigned this Oct 7, 2024
@JeodC JeodC added enhancement New feature or request help wanted Extra attention is needed labels Oct 7, 2024
@cdeletre cdeletre self-assigned this Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants