Skip to content

GinoLin980/Forza-Horizon-realistic-gearbox

Repository files navigation

Realistic Gearbox for Forza Horizon 4/5

Buy Me a Coffee

Introduction

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.

Demonstration

Check out the Demonstration Video to see the gearbox in action!

😎Features

  • 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!

Project Structure

📦 
├─ 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

Installation Github All Releases

  • 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.

‼️If you installed Forza Horizon from Microsoft Store.‼️

Download FHGearbox_MS_store.exe and Ping.and.Retroflect.Utility.exe.

Setup Instructions

  • 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 and E keys can shift 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

For Microsoft Store Version

  1. Run Ping.and.Retroflect.Utility.exe and choose a unused IP and ping it to check.(recommend IPs are list in-app)
  2. Unused IPs will be listed in the bottom. Choose one and click Retroflect.
  3. Open up game and set the UDP Data Out IP to <WHAT YOU CHOSE TO RUN IN RETROFLECT> and Data Out Port 8000
  4. Open FHGearbox_MS_store.exe and have fun!

Tips

If you want to run the game and this app or even Retroflect all at one click, you can check the discussion here

Forked From🤞

This project builds upon the work from:

Big thanks to these bros, I can't make this without them. 🫶

Future Goals

  • 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

⚠️DISCLAIMER

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

Nexus Mod

Find this project on Nexus Mods.

🤝Support

Encounter any issues? Post an Issue or join my Discord server to contribute to the development.