Torcs' C: Difference between revisions
(New page: == 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" fi...) |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
= Torcs' C# interface = | |||
== Compiling it == | == Compiling it == | ||
Line 4: | 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 == | ||
Line 15: | Line 22: | ||
mkdir /usr/local/share/games/torcs/sharpy | mkdir /usr/local/share/games/torcs/sharpy | ||
cp torcs/sharpy/monographic/bin/Debug/* /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 == | == Using 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!