Re: rally car drivers

Enrico Mattea <[email protected]>
Newsgroups gmane.games.torcs.general
Message-ID <[email protected]>
Hello Albert,

> Is it true in general that copying a driver directory to 
> /usr/share/torcs/drivers is enough? Same for cars and tracks?

I think it's not enough, you also need to copy the driver's library to 
/usr/lib/torcs (also, check if in /usr/lib  you find a folder named 
torcs, because I'm not sure about the location of default folders for 
package install).


> How can I duplicate a driver? For example, create a new set of damned 
> drivers out of the current ones by copying/editing the xml files?


I think you have to download the whole torcs sources and compile them; 
to copy an existing robot (but in sources you'll already find berniw 
two), copy sources from the existing robot, modify them (you'll have to 
modify the robot's name into the sources and into the xml file, see 
www.berniw.org, torcs section, robot tutorial sub-section, chapter one); 
after that, you have to compile the new robot, after setting up some 
environment variables: copy the following lines at the end of .bashrc 
file in your home directory

export LD_LIBRARY_PATH=the path where is located torcs folder with robot 
libraries, default is /usr/local/lib
export TORCS_BASE=the folder where torcs sources are located (if it's on 
your Desktop, it should be /home/name/Desktop/torcs-1.3.1)
export MAKE_DEFAULT=${TORCS_BASE}/Make-default.mk

To compile the new robot, open a shell into your robot's sources 
directory (F4) and run "make" and "make install" commands.

Bye,
Ocirne


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.