PDA

View Full Version : How to build a script for controler?


Speed Soro
12th December 2007, 19:13
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

DanneDA
12th December 2007, 20:05
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.

AeroMechanical
12th December 2007, 20:46
Nevermind. :thumb:

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

Love,
Aero

Speed Soro
12th December 2007, 22:59
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

yamakawa
13th December 2007, 09:13
did you attach '/' ?

e.g.)
/run road :nod:

AndroidXP
13th December 2007, 09:24
Don't forget
/shifter sequential

Speed Soro
23rd February 2008, 23:02
what is the commands for 1st, 2nd gears and so on?

AndroidXP
23rd February 2008, 23:12
http://en.lfsmanual.net/wiki/Script_Guide#Binding_.26_Executing_Commands

Speed Soro
23rd February 2008, 23:17
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 :)