PAXANDDOS / ForzaHorizonFix

A simple fix for Forza Horizon 4 and Forza Horizon 5 crashes
29 stars 10 forks source link

Steam version support #6

Closed sprlptr48 closed 1 year ago

sprlptr48 commented 1 year ago

Would this work with Forza Horizon 4 on steam if i edit the folders in the .bat files? Is it not compatible with Steam?

PAXANDDOS commented 1 year ago

These files are originally not meant to work with Steam because the script uses the shell to launch UWP applications. Games from Windows Store are UWP so they require some extra headache to launch via batch file. Also, you're the first one on my mind who reports that Forza crashes on Steam as well, I thought it was good there.

Anyways, I believe you can still launch it, just will have to edit the start command. Let's say you want to edit ForzaHorizon4_light.bat, you would need to change 7th line as follows and provide a path to its executable:

5  echo Waiting for Forza Horizon 4 to finally launch and then killing explorer.exe.
6 
-  start /high explorer.exe shell:appsFolder\Microsoft.SunriseBaseGame_8wekyb3d8bbwe!SunriseReleaseFinal
+  start /high D:\Steam\steamapps\common\ ...
8  SetLocal EnableExtensions
9  SetLocal ENABLEDELAYEDEXPANSION

I can't guarantee that everything will work as expected, or will work at all, but still worth a shot

sprlptr48 commented 1 year ago

Writing this to inform you, the fix did indeed terminate explorer.exe. But it still crashes for me so my problem probably weren't related to that.

PAXANDDOS commented 1 year ago

Sorry to hear that, but honestly I was almost sure that running my script against Steam won't help. Try searching results on steam discussions/guides or generally googling problem for Steam, and good luck!