BrianLima / UWPHook

🔗 Add your Windows Store or UWP games to Steam
https://brianlima.github.io/UWPHook/
MIT License
1.59k stars 118 forks source link

Forza Motorsport not showing up #127

Open hamburgerghini1 opened 1 year ago

hamburgerghini1 commented 1 year ago

UWPHook didn't show forza on the list

lyndonguitar commented 1 year ago

same

CressoTheGrey commented 1 year ago

I noticed this too. My main controller is a DualSense Edge, and I can't really use that without Steam Input. I'm stuck playing the game with keyboard and mouse, which is horrible for a racing game

hamburgerghini1 commented 1 year ago

I noticed this too. My main controller is a DualSense Edge, and I can't really use that without Steam Input. I'm stuck playing the game with keyboard and mouse, which is horrible for a racing game

Yeah, this was the exact reason why I want to add the game to steam, since my xbox controller is broken.

Mentor1337 commented 1 year ago

It looks like that is because Forza does not appear under C:\ProgramFiles\WindowsApps\

Is there a way to manually add the location to UWPhook?

jayvolr commented 1 year ago

I'm having this issue too. Forza is installed under C:\XboxGames, which for me was the location the Xbox app defaulted to installing it.

philipbry commented 1 year ago

easy fix:

a bunch of new apps will show up in the list including Microsoft.ForzaMotorsport, just rename it to Forza Motorsport and youre good to go.

this is a temporary hack for peoples games missing because the powershell script returning a list of installed apps ignores apps that do not have a direct name but rather use a symbol for it. Forza is one of those.

TuriaCaspaira commented 1 year ago

easy fix:

  • install the latest version of Visual Studio (installs the developer powershell).
  • close UWPHook
  • start the Developer PowerShell from the windows search bar Yikm2b9
  • enter: cd "$env:appdata\Briano\UWPHook"; ildasm /out=mod.il UWPHook.exe; ii .
  • right click and edit UWPHook.Resources.GetAUMIDScript.ps1
  • replace the continue; with $name = $app.Name; and save
  • go back to the developer powershell window and enter: ilasm /resource=mod.res /exe /output=UWPHook.exe mod.il
  • Done!

a bunch of new apps will show up in the list including Microsoft.ForzaMotorsport, just rename it to Forza Motorsport and youre good to go.

this is a temporary hack for peoples games missing because the powershell script returning a list of installed apps ignores apps that do not have a direct name but rather use a symbol for it. Forza is one of those.

I can't find this file > * right click and edit UWPHook.Resources.GetAUMIDScript.ps1

philipbry commented 1 year ago

I can't find this file > * right click and edit UWPHook.Resources.GetAUMIDScript.ps1

make sure you are running the Developer PowerShell for VS 2022 and not the regular powershell, else the ilasm command wont work. there should be no output in the console for the command you enter and the explorer window that opens should have that file inside.

TuriaCaspaira commented 1 year ago

I can't find this file > * right click and edit UWPHook.Resources.GetAUMIDScript.ps1 make sure you are running the Developer PowerShell for VS 2022 and not the regular powershell, else the ilasm command wont work. there should be no output in the console for the command you enter and the explorer window that opens should have that file inside.

Do i need to enable ildasm in some way this is the first time i've used visual studio I believe i am using the correct powershell

TuriaCaspaira commented 1 year ago

image

philipbry commented 1 year ago

open a new developer powershell window and run this command before running the one you tried. $env:PATH += ';C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools'

if that doesnt work check if the above folder and ildasm.exe exist. if it does not exists open the visual studio installer, click modify on visual studio and make sure that Universal Windows Platform development is installed. Once it is installed you should be able to open a new developer powershell window and execute the initial command without an error.

philipbry commented 1 year ago

@TuriaCaspaira i forgot to mention: replace the continue; on line 34

TuriaCaspaira commented 1 year ago

it wasn't installed yet~ that fixed it thank you

lyndonguitar commented 6 months ago

$env:PATH += ';C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools'

I tried the ff Universal Windows Platform development = installed running Developer PowerShell for VS 2022 Restarted PC

seems its still shows that error and UWPHook.Resources.GetAUMIDScript.ps1 still not found

EDIT: ok, i made it work.

open Visual Studio installer modify and add new stuff select individual components Check .NET Framework 4.8 and 4.8.1, both SDK and targeting pack

I did that and the command worked