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

Forza Motorsport not showing up #127

Open
hamburgerghini1 opened this issue Oct 10, 2023 · 14 comments
Open

Forza Motorsport not showing up #127

hamburgerghini1 opened this issue Oct 10, 2023 · 14 comments
Assignees
Labels
missing-games Games that are missing from the list

Comments

@hamburgerghini1
Copy link

UWPHook didn't show forza on the list

@lyndonguitar
Copy link

same

@CressoTheGrey
Copy link

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
Copy link
Author

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
Copy link

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
Copy link

jayvolr commented Oct 16, 2023

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
Copy link

philipbry commented Oct 23, 2023

easy fix:

  • install the latest version of Visual Studio (installs the developer powershell, make sure that Universal Windows Platform is checked in the installer).
  • 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; on line 34 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.

@TuriaCaspaira
Copy link

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
Copy link

philipbry commented Oct 23, 2023

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
Copy link

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
Copy link

image

@philipbry
Copy link

philipbry commented Oct 23, 2023

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
Copy link

philipbry commented Oct 23, 2023

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

@TuriaCaspaira
Copy link

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

@BrianLima BrianLima self-assigned this Apr 8, 2024
@BrianLima BrianLima added the missing-games Games that are missing from the list label Apr 8, 2024
@lyndonguitar
Copy link

lyndonguitar commented Apr 12, 2024

$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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
missing-games Games that are missing from the list
Projects
None yet
Development

No branches or pull requests

8 participants