Auto-starting a race in TORCS

18 views
Skip to first unread message

ChrisB

unread,
Nov 15, 2009, 7:20:18 PM11/15/09
to Car Racing Competition
Hi guys,

I'm trying to start the TORCS game system from a batch file (or
similar) so it launches straight into the results view of a practice
mode race (i.e. with the racer actually racing).

I know you can fiddle the XML files to set up the default parameters
for practicre mode (i.e. to set track, racer ID, real-time mode or
results only - which isn't the problem), and I know you could probably
delve into the TORCS source code, and change it to bypass all the
menus when it's launched, but this seems a tad involved.

Does anyone know of a simple command line parameter to get it to do
this?

(I'll be using both nix and windows, incase it makes a difference,
don't think it will though)

Cheers,

Chris

Daniele Loiacono

unread,
Nov 16, 2009, 1:25:08 AM11/16/09
to racingco...@googlegroups.com
Hi Chris,

there is no a simple way to do what you wish.
As you said, you need to go through the TORCS sources to bypass the menu.
However we are working toward adding this functionality and we will
release a new version of the software API with it as soon as possible.

Daniele

ChrisB

unread,
Nov 16, 2009, 6:44:31 PM11/16/09
to Car Racing Competition
I thought you'd say that. Any idea on an ETA for the new API? Or any
hints as to what else is going to be different for this year, so far
as the interface is concerned - should we be safe basing a new
algorithm around last year's interface?

Thanks,

Chris

On Nov 16, 7:25 pm, Daniele Loiacono <daniele.loiac...@gmail.com>
wrote:

ChrisB

unread,
Nov 23, 2009, 10:34:26 PM11/23/09
to Car Racing Competition
Daniele,

I'm going to have a go burrowing through the TORCS source. A few
questions, so that you can integrate it with your server packages:

The TORCS source available from SF requires MS C++ 6.0, or a recompile
of zlib and pnglib. I presume you're using a latter version of MS
Visual Studio and hence the recompile to a modern version is
preferred? Alternatively, is there an open repository somewhere that
has more up to date source code that you are using?

Also, if I end up modifying files relevant to your server package (gut
feeling is I will...) would it be easier for me to edit your source
code and send you an updated .cpp file (with summary change log), or
would you rather I made a detailed how-to, so that you can reproduce
at your end?

Cheers,

Chris


On Nov 16, 7:25 pm, Daniele Loiacono <daniele.loiac...@gmail.com>
wrote:

Pier Luca Lanzi

unread,
Nov 24, 2009, 4:05:54 AM11/24/09
to racingco...@googlegroups.com
Chris,

We are mainly using g++.

The binary for Windows are released only after we are sure that
everything is ok with g++.

So if you make some changes I w consider g++ as a compiler of choice to
be sure that your patch can work on all the OSs.

Best,
Pier Luca
Reply all
Reply to author
Forward
0 new messages