简体中文

forza_auto_gear

forza_auto_gear is a tool for Forza Horizon 5. It will help us understand the best gear shift point using Manual or w/ Clutch in Forza Horizon 5. Built with python.

Quick View

A800, GTR93, drag strip

  • Automatic (00:27.665): automatic
  • Manual (00:27.166): manual
  • Manual with Clutch (00:26.441): manual w/ clutch
  • Program, Manual with Clutch (00:26.265): program manual w/ clutch

Prerequisites

Install >= Python 3.8

Installation

pip3 install -r requirements.txt
git submodule init
git submodule update --recursive

Usage

  1. Setup the data out: data_output_settings
  2. Run main.py
  3. F10 starts the data collection:
    • Find a drag strip location.
    • Starting from Gear 1, accelerate until fuel cut-off (rpm is vibrating), then up shifting gear. Repeat until reaching the maximum gear.
    • Press REWIND to pause, then press F10 to stop data collect.
  4. F8 to analyze the data. It will generate the car performance figures like below: console_analysis forza_performance_analysis Then the result will be saved at ./config/{car ordinal}.json
  5. F7 to start auto gear shifting! f7 test
  6. Press F7 again to stop.

Moreover

  1. By default the shifting mode is Manual with Clutch. You could change it in constants.py.
  2. Lots of variables could be modified in constants.py
  3. If you already have the config file, then run F7 directly. It will load the config automatically while driving. Or you could share configs to your friends. Don’t forget to share your car tune as well 🙂
  4. You could modify the log level in logger.py for console and file handlers.
  5. Feel free to modify any logic to fit your style.

Acknowledgments

GitHub

View Github