- Overview
- System Requirements
- Installation
- Running the Application
- Application Flow
- Troubleshooting
- Support and Resources
This simulation application integrates three core components to provide a comprehensive driving simulation experience:
- BeamNG.drive game for simulation
- Python backend for data collection and analysis
- Frontend interface for user interaction
Before beginning the installation, ensure your system meets these minimum requirements:
- Windows 10 or later
- 16 GB RAM minimum (32 GB recommended)
- DirectX 11 compatible graphics card with 4 GB VRAM
- 60 GB available disk space
- Python 3.8 or later
- Steam account
-
Install Steam
- Download Steam from https://store.steampowered.com/about/
- Create a Steam account if you don't have one
- Install Steam and log in to your account
-
Install BeamNG.drive
- Purchase BeamNG.drive from Steam Store
- In your Steam library, locate BeamNG.drive
- Click "Install" and choose your installation directory
- Wait for the download and installation to complete
- Note down your installation path (default:
C:\Program Files (x86)\Steam\steamapps\common\BeamNG.drive
)
-
Install Python
- Download Python 3.8 or later from https://www.python.org/downloads/
- During installation, check "Add Python to PATH"
- Complete the installation
-
Install Required Dependencies
pip install -r requirements.txt
-
Update BeamNG Path
In the Python code, update the BeamNG paths to match your installation:
beamng = BeamNGpy('localhost', 51394, home='YOUR_BEAMNG_INSTALLATION_PATH', user='YOUR_PROJECT_PATH/user')
Replace:
YOUR_BEAMNG_INSTALLATION_PATH
with your BeamNG.drive installation pathYOUR_PROJECT_PATH
with your project directory path (use default user path if none exists)
-
Frontend Setup
- Place all frontend files in the
dist
directory - Ensure
index.html
is directly indist
- Store all other frontend assets in
dist/assets
- Place all frontend files in the
-
Start the Backend Server
uvicorn server:app --reload
The server will start on
http://localhost:8000
-
Launch the Application
- Ensure BeamNG.drive is not currently running
- Open your web browser and navigate to
http://localhost:8000
- Enter a player ID in the frontend interface
The application follows this sequence:
- User enters their player ID in the frontend
- Backend automatically launches BeamNG.drive
- Simulation runs for 30 seconds, collecting vehicle telemetry data
- Data is processed and analyzed
- AI-generated summary of the driving session is presented
- Performance graphs and insights are displayed
-
BeamNG.drive Won't Launch
- Verify the installation paths in the code
- Ensure BeamNG.drive runs normally through Steam
- Check if any other instance is running
-
Missing Data Files
- Verify the
telematics
directory exists - Check write permissions for the directory
- Verify the
-
API Errors
- Ensure all Python dependencies are installed
- Verify the server is running
- Check console for specific error messages
- BeamNG.drive Documentation: https://documentation.beamng.com/
- Python BeamNGpy Documentation: https://github.com/BeamNG/BeamNGpy
For additional support, please refer to the documentation or raise an issue in the project repository.