Skip to content

Commit 93b9183

Browse files
committed
Added fix for Forza Horizon 5 (See request #1 )
- Added ForzaHorizon5.bat - Added ForzaHorizon5_light.bat - Remade README file with Markdown and new info
1 parent 364f472 commit 93b9183

5 files changed

+93
-24
lines changed

ForzaHorizon4.bat

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ if '%errorlevel%' NEQ '0' (
1919
pushd "%CD%"
2020
CD /D "%~dp0"
2121

22-
echo Executing ForzaHorizon4Fix (v2.0) by @paxanddos.
23-
echo If you have any issues please address them to https://github.com/PAXANDDOS/ForzaHorizon4Fix/issues
22+
echo Executing ForzaHorizonFix (v2.0) by @paxanddos.
23+
echo If you have any issues please address them to https://github.com/PAXANDDOS/ForzaHorizonFix/issues
2424
echo Waiting for Forza Horizon 4 to finally launch and then killing explorer.exe.
2525

2626
net start XboxNetApiSvc

ForzaHorizon4_light.bat

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@echo off
22

3-
echo Executing ForzaHorizon4Fix (v2.0) by @paxanddos.
4-
echo If you have any issues please address them to https://github.com/PAXANDDOS/ForzaHorizon4Fix/issues
3+
echo Executing ForzaHorizonFix (v2.0) by @paxanddos.
4+
echo If you have any issues please address them to https://github.com/PAXANDDOS/ForzaHorizonFix/issues
55
echo Waiting for Forza Horizon 4 to finally launch and then killing explorer.exe.
66

77
start /high explorer.exe shell:appsFolder\Microsoft.SunriseBaseGame_8wekyb3d8bbwe!SunriseReleaseFinal

ForzaHorizon5.bat

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
@echo off
2+
3+
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
4+
5+
if '%errorlevel%' NEQ '0' (
6+
echo Requesting administrative privileges...
7+
goto UACPrompt
8+
) else ( goto gotAdmin )
9+
10+
:UACPrompt
11+
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
12+
set params = %*:"=""
13+
echo UAC.ShellExecute "cmd.exe", "/c %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"
14+
15+
"%temp%\getadmin.vbs"
16+
del "%temp%\getadmin.vbs"
17+
exit /B
18+
:gotAdmin
19+
pushd "%CD%"
20+
CD /D "%~dp0"
21+
22+
echo Executing ForzaHorizonFix (v2.5) by @paxanddos.
23+
echo If you have any issues please address them to https://github.com/PAXANDDOS/ForzaHorizonFix/issues
24+
echo Waiting for Forza Horizon 5 to finally launch and then killing explorer.exe.
25+
26+
net start XboxNetApiSvc
27+
net start XboxGipSvc
28+
net start XblAuthManager
29+
net start XblGameSave
30+
timeout /T 1 /NOBREAK
31+
32+
start /high explorer.exe shell:appsFolder\Microsoft.624F8B84B80_8wekyb3d8bbwe!Forzahorizon5
33+
SetLocal EnableExtensions
34+
SetLocal ENABLEDELAYEDEXPANSION
35+
Set game=ForzaHorizon5.exe
36+
timeout /T 60 /NOBREAK
37+
taskkill /f /im explorer.exe
38+
39+
:loop
40+
tasklist | Find /i "%game%" || (goto Else)
41+
:THEN
42+
timeout /T 5 /NOBREAK
43+
goto loop
44+
:ELSE
45+
start explorer.exe
46+
exit

ForzaHorizon5_light.bat

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
@echo off
2+
3+
echo Executing ForzaHorizonFix (v2.5) by @paxanddos.
4+
echo If you have any issues please address them to https://github.com/PAXANDDOS/ForzaHorizonFix/issues
5+
echo Waiting for Forza Horizon 5 to finally launch and then killing explorer.exe.
6+
7+
start /high explorer.exe shell:appsFolder\Microsoft.624F8B84B80_8wekyb3d8bbwe!Forzahorizon5
8+
SetLocal EnableExtensions
9+
SetLocal ENABLEDELAYEDEXPANSION
10+
Set app=ForzaHorizon5.exe
11+
timeout /T 60 /NOBREAK
12+
taskkill /f /im explorer.exe
13+
14+
:loop
15+
tasklist | Find /i "%app%" || (goto Else)
16+
:THEN
17+
timeout /T 5 /NOBREAK
18+
goto loop
19+
:ELSE
20+
start explorer.exe
21+
exit

README.md

+22-20
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
1-
<p align="center"><img src="https://static.wikia.nocookie.net/logopedia/images/f/f8/Forza_Horizon_4_logo.svg/revision/latest/scale-to-width-down/512?cb=20191202151349" height="70"/></p>
1+
<p align="center"><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/a/a9/Forza_Horizon_logo.svg/1249px-Forza_Horizon_logo.svg.png" height="180"/>
22
<p align="center">
33
<img alt="windows" src="https://img.shields.io/badge/Windows-blue.svg?style=flat-square&logo=windows&logoColor=white" />
44
<img alt="release" src="https://img.shields.io/github/v/release/PAXANDDOS/ForzaHorizon4Fix?style=flat-square" />
5-
<img alt="downloads" src="https://img.shields.io/github/downloads/PAXANDDOS/ForzaHorizon4Fix/v2.0/total?style=flat-square" />
65
<img alt="downloads" src="https://img.shields.io/github/downloads/PAXANDDOS/ForzaHorizon4Fix/total?style=flat-square" />
76
</p>
8-
<h2 align="center">Fix for the Forza Horizon 4 Crashes</h2>
7+
<h2 align="center">Fix for the Forza Horizon crashes</h2>
98

10-
<p>Hey! Forza Horizon 4 is not a perfect game and you may experience some unexpected game crashes. In most cases, this happens due to a running explorer.exe process. (Game from Microsoft crashing because of software from Microsoft, funny, right?)<br>This fix should help you to overcome this issue! <a href="#grey_question-how-does-it-work">See details.</a>
11-
</p>
9+
Hey there! :wave: Forza Horizon series turned out not to be a perfect and you may experience some unexpected game crashes. In most cases, this happens due to a running explorer.exe process. (Game from Microsoft crashing because of software from Microsoft, funny, right?)
10+
This fix should help you to overcome this issue! [See below.](#grey_question-how-does-it-work)
1211

13-
<h2>:inbox_tray: Downloads</h2>
14-
<b>Preferred version — <a href="https://github.com/PAXANDDOS/ForzaHorizon4Fix/releases/download/v2.0/ForzaHorizon4.bat">Download</b></a><br>
15-
Light version — <a href="https://github.com/PAXANDDOS/ForzaHorizon4Fix/releases/download/v2.0/ForzaHorizon4_light.bat"><b>Download</b></a>
12+
## :inbox_tray: Downloads
13+
***Forza Horizon 5***
14+
- **Preferred version**[Download](https://github.com/PAXANDDOS/ForzaHorizon4Fix/releases/download/v2.5/ForzaHorizon5.bat)
15+
- Light version — [Download](https://github.com/PAXANDDOS/ForzaHorizon4Fix/releases/download/v2.5/ForzaHorizon5_light.bat)
1616

17-
<h2>:grey_question: How does it work?</h2>
18-
<p>
19-
Download the <b>preferred</b> version above and run the batch file. This version is compatible with Windows 10 Home and Pro editions and should run correctly. If you experienced some difficulties, you may download the light version, it will run the game without requesting admin rights and without services check.<br>
20-
After the batch file starts, it will request admin rights for further operations. It will check for required Xbox services and start them if they're disabled. Then your game will start and after some time explorer.exe process will be killed, it starts again as soon as you exit the game.
21-
</p>
22-
<p>
23-
<b>Warning!</b><br>
24-
This fix is only for the Microsoft Store version of Forza Horizon 4.<br>
25-
Once exlorer.exe is killed, you are not able to switch between different windows (Shift+Tab) and even adjust the volume. If you want to adjust the volume or something else, enter the Ctrl+Alt+Del screen, everything works fine there.
26-
</p>
17+
***Forza Horizon 4***
18+
- **Preferred version**[Download](https://github.com/PAXANDDOS/ForzaHorizon4Fix/releases/download/v2.0/ForzaHorizon4.bat)
19+
- Light version — [Download](https://github.com/PAXANDDOS/ForzaHorizon4Fix/releases/download/v2.0/ForzaHorizon4_light.bat)
20+
21+
## :grey_question: How does it work?
22+
Download the **preferred** version for your game above and run the batch file. This version is compatible with Windows 10 Home and Pro editions and should run correctly. Also, it is compatible with Windows 11 Home and Pro editions, but so far Windows 11 has no such problems with the Forza Horizon series. If you experienced some difficulties, you may download the *light* version for your game, it will run without requesting admin rights and without a services check.
23+
After the batch file starts, it will request admin rights for further operations. It will check for required Xbox services and start them if they're disabled. Then your game will start and after some time explorer.exe process will be killed, it starts again as soon as you exit the game.
24+
25+
**Warning!**
26+
This fix is only for the Microsoft Store version of the Forza Horizon series.
27+
Once exlorer.exe is killed, you are not able to switch between different windows (Alt+Tab) and even adjust the volume. If you want to adjust the volume or something else, enter the Ctrl+Alt+Del screen, everything works fine there.
2728

28-
<h2>:fox_face: Have a great day!</h2>
29-
If you are intrested in my other works, please <a href="https://paxanddos.github.io">visit my website</a>!
29+
## :fox_face: Have a great day!
30+
Feel free to leave a feedback or ask something by creating an [issue](https://github.com/PAXANDDOS/ForzaHorizon4Fix/issues/new)!
31+
And if you are intrested in my other works, please [visit my website](https://paxanddos.github.io)!

0 commit comments

Comments
 (0)