Bot Installation (system.py)
To allow your server to send statistics to the LFS Rank network, you must host and run our open-source InSim bot locally.
Prerequisites
- Python 3.8+ installed on your machine.
- An API Key and a Cryptographic Key Pair (generated via the lfsrank.com dashboard).
- A running instance of Live for Speed with the InSim port enabled.
Step-by-Step Installation
- Clone or download the
system.pyscript. - Create a file named
config.jsonin the same directory with the following structure:
json
{
"api_key": "YOUR_API_KEY_HERE",
"private_key": "YOUR_PRIVATE_KEY_HERE",
"insim_host": "127.0.0.1",
"insim_port": 29999,
"insim_admin": "your_admin_password",
"server_name": "Your Server Name"
}- Install required dependencies. The script requires standard libraries plus Ed25519 signature support:
bash
pip install ed25519 requests- Run the bot:
bash
python3 system.pyTIP
We recommend running the bot using a process manager like screen, tmux, or systemd to keep it online after closing the terminal.
