Git Product home page Git Product logo

torcs-track-generation's Introduction

Flags

  1. Set up the right flags for your system and torcs installation
  2. Run python test_run.py --num_races=10, which should print results of 10 (identical) races

Other flags for test_run.py:

  • --log=INFO|DEBUG
  • --track_length=4 number of points for tracks
  • --track_scale=10 range for generating points

Example flags.py:

TORCS_DIR = "/home/$USER/.torcs/"
TORCS_EXEC = "/usr/games/torcs"
RACE_CONFIG = "$PROJECT_DIR/templates/quickrace_template.xml"
RESULTS_DIR = "/home/$USER/.torcs/results/"
TRACKS_DIR = "/usr/local/share/games/torcs/tracks/evolution"

Ignore your changes to flags.py, e.g. using git update-index --assume-unchanged flags.py.

TORCS modifications

The directory torcs contains modifications needed to collect some data, as well as fixes for bugs that prevent the original code from compiling.

Installation

  1. Download the "all-in-one" source package from the TORCS website
  2. Copy the contents of the torcs directory into the extracted source code
  3. Follow the installation instructions

Running the evolution

Before running the evolution:

  1. Set up flags.py
  2. Prepare a JSON config file containing parameters for the evolution. Example files are provided in the configs directory.

Then you can run the script evolution.py. You can call python evolution.py --help for the list of available options.

Warning: be cautious of your disk space when the evolution is running, as some torcs processes fail to exit properly, which may lead to gathering large log files.

torcs-track-generation's People

Contributors

sjmikler avatar jaworwr avatar konrad-wer avatar manwi23 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.