This Python script enhances your driving experience in Forza Horizon 4/5 by simulating a realistic gearbox.
It's perfect for those who enjoy casual driving in the city and occasional quick accelerations for overtaking. Inspired by a YouTube video on a realistic gearbox, this project aims to bring that experience to everyone.
Check out the Demonstration Video to see the gearbox in action!
- Shift like a REAL CAR: Experience gear shifting just like you would in a real vehicle.
- Sports Mode: Hold RPM when intensively driving.
- Drive Mode Selection: Choose between Normal, Sports, Eco, or Manual modes.
- Forza Truck Simulator?: Trucks are included!
📦
├─ FHGearbox.exe
├─ FHGearbox_MS_store.exe
├─ Ping and Retroflect Utility.exe
├─ README.md
├─ reference_from_other_game
└─ src
├─ DATAOUT.py
├─ FH_auto.py
├─ FH_auto_classes.py #main file
├─ GUI.py
├─ buildEXE.bat
├─ ping_tool.py
└─ utils
- Standard Users: Simply download the
.exe
file and run it. - Advanced Users: Download the
.py
file and feel free to tweak the values in your editor.
Download FHGearbox_MS_store.exe
and Ping.and.Retroflect.Utility.exe
.
- Requirements: A controller or wheel is necessary.
- Open Game: Open up Forza Horizon 4/5
- Settings: Ensure gear changing is set to manual and that
Q
andE
keys canshift down and up
, respectively. - Data Output: Configure the HUD and gameplay data output as follows:
- Data Output:
ON
- IP Address:
127.0.0.1
- Port:
8000
- Data Output:
- Run
Ping.and.Retroflect.Utility.exe
and choose a unused IP and ping it to check.(recommend IPs are list in-app) - Unused IPs will be listed in the bottom. Choose one and click Retroflect.
- Open up game and set the UDP Data Out IP to
<WHAT YOU CHOSE TO RUN IN RETROFLECT>
and Data Out Port8000
- Open
FHGearbox_MS_store.exe
and have fun!
If you want to run the game and this app or even Retroflect all at one click, you can check the discussion here
This project builds upon the work from:
- Forza Horizon Data Out Python
- Assetto Corsa Real Automatic Gearbox
- twisteroidambassador/retroflect
- GinoLin980/retroflect
- When coasting in high rpm and then full accelerate, it will sometimes upshift first and then downshift(maybe because the code detects too quickly)
- Parameter fine tune(gas_threshold)
- Add cruise control or pit limiter(I've tried and it's impossible to do without reaching the core of the game, GO VOTE TO LET THEM SEE!!!!!!!!!)
- Add adaptive to slope. Hold RPM and do not upshift when climbing.
- Reinforcement Learning using velocity
This mod might violate the Forza Code of Conduct, so take your own responsibility.
(they are bad at making the game better and they didn't reply my 3 emails and I'm not getting banned yet:) GO VOTE
Find this project on Nexus Mods.