Torcs' C

From SpaceElevatorWiki.com
Revision as of 11:55, 15 July 2008 by Jeko (talk | contribs)
Jump to navigationJump to search

Torcs' C# interface

Compiling it

The MonoDevelop project is in torcs/sharpy.

Just build the whole solution.

Installing it

The .exe file will be found by torcs using "sharpy/monographic.exe" file.

To make him found it, it should be placed into torcs' data folder.

On my computer it is /usr/local/share/games/torcs/, so here are the commands to type:

 mkdir /usr/local/share/games/torcs/sharpy
 cp torcs/sharpy/monographic/bin/Debug/* /usr/local/share/games/torcs/sharpy

Using it

You should edit ~/.torcs/config/raceengine.xml and change graphic module name from "ssgraph" to "ogre3d".

It will then use default mono directories, you can override them by specifying environment variables :

  • MY_MONO_LIB (to /usr/lib for example)
  • MY_MONO_ETC (to /etc for example)

For WDB's computer:

 MY_MONO_LIB="C:\Programme\Mono-1.9.1\lib"
 MY_MONO_ETC="C:\Programme\Mono-1.9.1\etc"

Enjoying it

Not yet!