Torcs' C: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
= Torcs' C# interface = | = Torcs' C# interface = | ||
== Compiling it == | == Compiling it == | ||
Line 10: | Line 6: | ||
Just build the whole solution. | Just build the whole solution. | ||
=== Requirements === | |||
Graphic plugin uses OgreDotNet, you should compile it first (the MonoDevelop project will look for DLL in mercurial's ogredotnet directory). | |||
== Installing it == | == Installing it == |
Latest revision as of 13:36, 16 July 2008
Torcs' C# interface
Compiling it
The MonoDevelop project is in torcs/sharpy.
Just build the whole solution.
Requirements
Graphic plugin uses OgreDotNet, you should compile it first (the MonoDevelop project will look for DLL in mercurial's ogredotnet directory).
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
Ogre3D C# binding is also needed:
cp ogredotnet/bin/libOgreBindings.so /usr/local/share/games/torcs cp ogredotnet/bin/plugins-unix.cfg /usr/local/share/games/torcs/plugins.cfg
Under windows, I suppose you'll have to change libOgreBindings.so to OgreBindings.dll, and plugins-unix.cfg to plugins-win.cfg.
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!