The online racing simulator
How to build a script for controler?
Hi people,

Please, I need a tip for m y Momo: how do I make to have a script where I set controler for shift up/down for automatically change between the cars I choose? I mean, I'd like to choose the stick for road and gtr cars, and paddles for formulas.

I know there is a way to do that but I don't know how. Could someone explain me in a short way?

Thank you very much,

Silvio Camolesi
In the directory "data/scripts" open the file that is the same as the car you want to do change, in there you'll see a line "run road/sequential/paddle". Each of these set the current car to use a specific car config.

Road cars and gts would use "run sequential" and formulas would use "run paddle". When you have set up your cars correctly, open up sequential.lfs and paddle.lfs. In this you should have these two lines:

button (paddle/stick button id) shift_up
button (paddle/stick button id) shift_down

You can see the button id from within LFS so you just need to check that before editing the scripts.
Nevermind.

I had never looked into scripts before. Very nice feature. That'd be the way to do it.

Love,
Aero
I think I'm doing something wrong.

I wrote inside ROAD.FLS file the following lines:

button 40 shift_up
button 41 shift_down

and XFG.lfs is assigned for this file with a line like this:

run road

But the stick does not responde in game, and I can't choose any other key in the menu since I changed these files.

So what I'm doing wrong?

TIA,

Silvio
did you attach '/' ?

e.g.)
/run road 
Don't forget
/shifter sequential
what is the commands for 1st, 2nd gears and so on?
thank you very much
But I cant find the way to write correctly the files ROAD, SEQUENTIAL and PADDLES.LFS

I'd like to have 3 pedal set for road car and 2 pedal set for formula and gtrs, and also sequential for gtrs and formulas, paddle for v8, and h-shifter for road, but I dont know how to write these files.

Im using a g25 controller

forget, I found it. thanks again

FGED GREDG RDFGDR GSFDG