Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Mac port of Torcs, The Open Racing Car Simulator

branch: master
README.md

About

This project contains all necessary files to patch and compile the original Torcs 1.3.1 sources into a bundled Mac OS X application using Xcode.

The Xcode project is based on previous work by Stephen Hudson and others, with vast changes to streamline the build, leverage the existing Torcs makefiles for installing data, and reduce the size of the final application bundle. The Mac-specific changes to the source code have been redone to minimize impact (for instance, there is now no need to change the way learning and tmath headers are included). As a result, this port should be easier to maintain and adapt to future versions of Torcs.

Camillo Lugaresi

How to install

  • Download the Torcs 1.3.1 source package from SourceForge: torcs-1.3.1.tar.bz2
  • Extract it, and put the MacTorcs folder inside the torcs-1.3.1 folder
  • Open the Torcs project
  • Build the "Apply patch" target to patch the source code for Mac support
  • Build the "Torcs.app" target to build Torcs as a Mac application
  • Enjoy!

How to add a driver

  • Duplicate one of the existing driver targets (eg "tita.so") and rename it as appropriate (eg "newdriver.so")
  • Double-click the new target, go to the "Build" tab and change the product name (eg "newdriver")
  • Expand the new target and remove all files from the Compile Sources phase
  • Add the new driver's source files to the project; choose to add them to the new target you just set up
  • Add the new target to "All Dynamic Libraries" (drag it)
  • Double-click on the "Install drivers" phase in the "Torcs.app" target and add your newdriver.so to the input files (follow the pattern).

TODO

  • Save settings in the Preferences folder instead of modifying the application bundle.
Something went wrong with that request. Please try again.