Code Monkey home page Code Monkey logo

uwphook's Introduction

UWPHook

Small project to link UWP games and XboxGamePass to Steam

If you want to add Windows Store or Xbox Game Pass Games to Steam, you need to do a bit of a workaround because Steam can't see UWP apps, and there's a chance Steam won't show it on your "Currently playing" status. This app aims to simplify a little bit the process where it is possible by automating the scripting and launching of Windows Store apps and Xbox Game Pass games.

To add UWP or XGP games to Steam

Download the latest version of UWPHook and store it somewhere on your PC.

Click on the πŸ”„ to load installed UWP Apps, we will find every UWP app and Xbox Game Pass game installed on your PC.

Select every app you want to add to Steam, you can change the name by double clicking the "name" collumn, press "Export selected apps to Steam" and πŸŽ‰, every app you selected will be added to Steam.

Close UWPHook, restart Steam if prompted, click play on your UWP game, and Steam will show your current game on your status as long as you are playing it!


SteamGridDB

Since v2.8, UWPHook can automatically import grid, icons and hero images from SteamGridDB

On your first usage, the app will ask you if you want it to download images, redirecting you to the settings page.

By adding a API Key obtained in the SteamGridDB preferences, UWPHook will try to find matching images for any exported games, giving you the following result:

You can refine the images by using filters for animated images, blurred, no logo or memes for example, but it will always pick the first it finds for the filters automatically.

Special thanks to @FusRoDah061 for implementing the base feature!

Troubleshooting

  • Steam's Overlay isn't working!
    • Unfortunately, it's a Steam limitation, Valve has to update it in order to work properly with UWP, DXTory is a recommended overlay for UWP games.
  • Using Steam Link
    • Check the option "Streaming" mode inside the settings screen
  • Steam Deck?
    • This app is not compatible with the Steam Deck in any way.

If you are facing an error of any kind, please check the contents of the file

  • I have shortcuts from other application that broke when i used UWPHook
    • You can find a backup of your shortcuts.vdf file in %appdata%\Roaming\Briano\UWPHook\backups, each file in this directory is a backup of the original shortcuts.vdf before manipulation by UWPHook, the files are renamed {userid}_{timestamp}_shortcut.vdf, you can restore these files to their original location for usage.
  • My question isn't listed here!
    • Drop by our subreddit and ask a question over there, maybe someone will help you, i surely will as soon as i can: https://www.reddit.com/r/uwphook
    • Please also paste the contents of the file %appdata%Roaming\Briano\UWPHook\application.log so i can try to understand better the problem.

Building

  • Clone project or forked project.
  • Install Visual Studio 2022 with .NET Framework 4.8.
  • Install SharpSteam by BrianLima and VDFParser and build.
  • If the project asks for the references for VDFParser and Sharpsteam, point it to the most recent build.
  • Press run!

Installer

The installer is built with NSIS, just run the script UWPHook.nsi and things should work. Modify any hardcoded paths to suit your setup. The installation consists of zipping the application and creating some of the paths for the user, since the application is mostly static/dynamic and does not depend a lot on where it is installed, the installer is made for convenience.


About

This software is open-source under the MIT License. It will mostly likely break withouth any heads up, since any API, file format, script and many other things used by it may be changed by Valve or Microsoft withouth prior notice.

I am not responsible if anything breaks.

If you like what i did with it and want to suport me, you can cheer me up at my Twitter or pay me a coffee via Paypal, it will help me to continue to build amazing open source tools for you!"

Thanks for your support, and game on!

uwphook's People

Contributors

alimbada avatar brianlima avatar camology avatar enumc avatar flaminsarge avatar fusrodah061 avatar gamerkingfaiz avatar jesper-hustad avatar novemberdobby avatar stevealexandre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

uwphook's Issues

To be able to change the disk in use.

The .exe always loads the UWP from C: but sometimes games (like XGP) are installed on the disc just for games.

So, being able to change the disc that is being watched is interesting.

Controlling BP Mode and game at the same time

When I run game for the first time after PC boot it runs properly, but when I restart the game I control BP and Game at the same time, to make it funnier after minimize and maximize game it runs properly again and issue comes back after restart the game, any solutions for that?

Location of Geforce Experience configuration files?

Hi guys, i'm working on a new version of UWPHook and thought of trying to add suport for Geforce Experience and AMD Crimson ReLive, but i don't own any Nvidia GPU. If someone could help me explaining how does Geforce Experience Works (Where does it stores the 'list' of games, how does it streams, can it stream the whole desktop?) or provide me example files it would help me much!

Sorry for the lack of updates and commits, been a bit busy :/

[BUG] In-house stream - Everything is black

Hi,

I can launch the game normally using the Steam shortcut. But if I try on a different computer play using stream, the host computer opens the game properly but the stream computer just shows a black screen.

The mouse works, if i move it on the host I can see it moving on the stream computer, and I can also hear the sound. Everything else is black and the stream exits after a few seconds (like 15s or something)

I'm using the lastest version and tested using a few different apps, but what i really want is forza

Thanks

Out of Memory Exception

Getting an Out of Memory exception when trying to export my games.

image

The game's I'm trying to add to Steam are Forza Horizon 3 and Halo 5: Forge. Tried just FH3, and it still crashes (the OoM exception pops up 4 times when I try and export). Tried with both Steam open and closed while exporting.

[Feature] Add custom steam grid images for imported games.

So, with the new app this might be possible, using it together with a web site that provides Steam grid images for games, the problem is: I can't figure out how does Steam generates the id it uses to tie non-steam games with their images on /config/grid.

Black Screen Streaming State of Decay 2

I am trying to add State of Decay 2 to Steam. I opened UWPHook and it sees SoD2 however when I try to stream I see nothing but a black screen while streaming. The host launches the game, however, the computer connecting hears sound but has no video.

Microsoft Flight Simulator

Wont launch.

Starts with windows error:

Windows cannot find C:\WINDOWS\system32\custominstallerexec.exe Make sure you've typed the name correctly, then try again.

Followed by a dependency package installer prompt in which I select 'yes'

followed by windows error:

C:\Program Files\WindowsApps\Microsoft.FlightSimulator_1.7.12.0x64_8w..\FlightSimulator.exe

File system error

[Feature Request] changing system language before launching game.

Hey,

Would it be possible to add a feature, which changes the system language to english -> launching the game -> change back to previous system langauge.

problem is that I use a german version of windows I'm one who plays every single game in english, but UWP games won't let me to do that. I always have to change the language to english - start the game - change back to german, which is a bit annoying.

UWP with steam stream and Forza Horizon 4

Hello!

First of all, thank you for you application.
I tried the other day to do steam stream from my desktop to my laptop using you app, setting the settings to steam stream and launch Forza Horizon 4 from my steam's laptop application.
It started the UWP wrapper, started the game on the desktop but nothing has been streamed to the laptop.

I'm getting black screen and I need to kill steam laptop process to get back to my desk.
Did you already encounter this issue ?
Is there any workaround ?

Thank you

Moving UWPHook results in launch error

When creating a shortcut in steam app should copy itself (or a smaller launcher) in a safe location like %appdata% so moving the downloaded app will not result in a failed launch.

suggestion:upload as zip

upload program as zip download?, not everyone wants to download 7zip just to get one file.

ty for making this :)

Failed to launch shortcut

I exported some games but when I try to launch them from Steam I get a failed to launch shortcut message and it doesn't launch. Is there a fix?

Can't find Dead Cells

Hi, I have installed Dead Cells throught game pass.
All the other 5 games I have installed are correctly detected.
Only Dead Cells can't be found :(

How can I find it? I really can't find it even in the unrecognized apps

Steam streaming doesn't see game window

To reproduce (tested with Sea of Thieves and Fallout Shelter):
Without streaming mode:

  1. Leave streaming mode disabled
  2. Add game to steam library on streaming host
  3. Start game from streaming client
    • Expected results:
      1. Game starts with audio, video and input
    • Actual results:
      1. Game starts with black screen, but audio and input

With streaming mode:

  1. Enable streaming mode
  2. Add game to steam library on streaming host
  3. Start game from streaming client
    • Expected results:
      1. Game starts with audio, video and input
    • Actual results:
      1. UWPHook starts with fullscreen window
      2. Video freezes as soon as focus shifts to game, audio works, input doesn't

Streaming host is running Windows 10 1903, Steam is opted into client beta on both host and client. Client runs Linux. I'm not trying to use a controller, just mouse and keyboard.

Unable to open steam chat/overlay?

Hi,

First time user of UWPHook, using UWPHook with Microsoft games the games load fine and show that I'm playing the game "In non-Steam game Gears Of War 5" but I'm unable to open the steam chat, I have tried the following:

Changed Key combo (Default is Tab + Shift).
Ran Steam as admin.

I'm wording if this is normal or if I have done something wrong on my side?

Thanks!

[BUG] Using a controller with SteamLink won't work with UWPHook.

I'm not 100% sure since i don't have a SteamLink to test, but i think that Steam link redirects xInput calls directly to the app it launches, since it is launching UWPHook and not the UWP game added with it, it won't work. Maybe i could intercept button presses and make UWPHook work as a input wrapper for these cases? I have to test with in home streamming and try to diagnose what is happening. I hope both work in the same way, because i can't get my hands on a SteamLink.

Other Non-Steam Games Gone?

I couldn't replicate this issue, so it was likely just some freak occurence, but the first time I ran UWPHook and exported a program, it removed the rest of the non-steam games that were in my library.

UWPHook Crashes through Steam

i followed the instructions but when I load any windows game through the steam shortcut UWPHook crashes immediately.

Faulting application name: UWPHook.exe, version: 1.0.0.0, time stamp: 0x57df20dc
Faulting module name: KERNELBASE.dll, version: 10.0.15063.726, time stamp: 0x32774c02
Exception code: 0xc000041d
Fault offset: 0x000ecbb2
Faulting process id: 0x4200
Faulting application start time: 0x01d37e02cbaface6
Faulting application path: C:\UWPHook\UWPHook.exe
Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
Report Id: 41a56022-a590-4e59-a136-7748840c6614
Faulting package full name:
Faulting package-relative application ID:

[Feature Request] UWPHook Portable executable

Hey there,

I'm the guy who asked you on Twitter for a portable version of UWPHook, which you provided, which is great! Thanks again! Any chance we might see regular portable UWPHook releases in the future as well? Just the executable without the installer wrapped around it.

I like to keep a lot of the tools I need on several systems in a folder I can just plop down and start working with. UWPHook would be an excellent candidate for that.

[BUG] GoW4 starting in Background

I have been using your program fine with FH3. Yesterday I tried adding GoW4 to my steam list which worked fine, but every time I tried to start it through steam it runs in the background. When started from the start menu it runs fine.

UWPHook Infinite Loading

Whenever I try to load installed apps, I get infinite loading. I have tried reinstalling the app several times. I have tried rebooting my computer as well, but to no avail.

[Bug] Access error when launching Gears of War 4

Launching GoW 4: Standard Edition results in the following error and causes UWPHook to quit/crash.

Error while trying to launch your app.
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

Windows 10 Pro
V. 1709
B. 16299.64

Currently installed on a non boot SSD, though GoW: Ultimate is also on this drive and works. (Though it isn't found by UWPHook: Microsoft.DeltaPC_8wekyb3d8bbwe!App)

gearserror

cant find games installed on different drives

Hi, I install all my games on either a HDD or SSD. Both are different from the C: drive i use exclusively for Windows.
The Hook can only find the software installed on C:/ not others.

Sea of Thieves - Value does not fall within the expected range. :(

Greetings!

First of all, thanks for creating this app! It really seems like it could be very useful :)

Having said that, I seem to be getting the same issue that this guy was getting

#24

I am using the latest version, and same as the other guy, when using shell:appsFolder\Microsoft.SeaofThieves_8wekyb3d8bbwe!AthenaClientShipping as a launch condition for explorer.exe, it does work

Uploaded screenshots in case they help :)

https://imgur.com/a/Sk9Pp0Y

Thanks again!

Update: Derp, I'm an idiot, seems I installed version 2.3.0, will edit this post again with results after updating to the actual latest version :)

Launch options not working

Adding --enable-dev-ui to cities skylines does not do anything. Is there something else I need to do or is this a bug?

Clashing with steam controller support

Hi

I've been using UWPhook for a while.
Lately though, it clashes with steam controller support, I guess some change on steam caused this.

For instance when I launch forza 3 the right stick controls the mouse (since that's my desktop profile on steam). I guess I can just disable the desktop control profile and it would just be a minor annoyance.... but it's still an annoyance.

Error while exporting your games: Error while trying to write your Steam shortcuts

Error
All my games work fine to load into Steam except Astroneer. It is not detected by name like the others but the aumid begins with SystemEraSoftworks.
I have logged into other accounts on Steam before. The error is showing a user account I havent logged into since 2017 (and doesnt have a config folder) while all the other games I added used the proper user/config/shortcuts.vdf file

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.