Hello!
I thought there should be a thread where we can share our scripts for LFS.
Prelude:
The scriptfiles go to "Your_LFS_Directory/data/Script" and require Patch U18 or above.
All scripts are set up for the setup of the author, so your will need to edit them. You can't just copy them into your scripts folder and hope that they'll work, because they won't. You'll need to alter the number of the axes, the assigned ctrl-F keys and the number of the buttons according to your setup. You can see the button-number flash up to the right of the screen when you press the button while in the "Controls" screen. The number of the axes can be seen in the axes submenu of the control screen.
All scripts can be edited using window's notepad. Information about the available commands can be found in the testpatch-thread.
Here are mine:
1. The F9->F10->F12->F12 cycle.
This script will make a button on your wheel cycle through the F9, F10 and F12 screens. You press the button a first time, the F9 screen comes up. You press it a second time, F10 comes up, third time, F12 comes up, fourth time, F12 disappears, fifth time F9 appears and again.
In my version I use button 40 and CTRL+F12 for the script. Change this as necessary for your setup in the scripts.
Place "run bindF9" in your autoexec.lfs to enable this script.
2. The clutchstart-script.
This script will make a button on your comtroller turn your brake pedal (or any axis) into a clutch and disable autoclutch. Upon the second button press the axis works as a brake again and autoclutch is restored. This can be used to launch the car with a manual clutch and to switch back to the normal two-pedal setup once you're at a higher speed.
I myself have few use for it and only did it to see wether it works, but perhaps someone else wants to use it.
To use this script make sure you have clutch set to axis in the top section of the controls-screen.
I use button 45, axis 7 and CTRL+F9 to trigger the script. Change as necessary.
Place "run clutchstart" in your autoexec.lfs to enable this script.
3. Indicators
This script will allow you to assign a button on your controller to an indicator. You press the button, the indicator starts flashing. You press the button again, the indicator is disabled.
My scripts use buttons 42, 43, Ctrl+F10 and Ctrl+F11. Change these as necessary.
Add "run bind8" and "run bind7" to your autoexec.lfs to enable this script.
LFS's script system isn't very complicated. If you're confused what the commands do, read them up in the testpatchthread. If you're confused about how the scripts work (which file calls which scripts for what reason) feel free to ask.
Vain
I thought there should be a thread where we can share our scripts for LFS.
Prelude:
The scriptfiles go to "Your_LFS_Directory/data/Script" and require Patch U18 or above.
All scripts are set up for the setup of the author, so your will need to edit them. You can't just copy them into your scripts folder and hope that they'll work, because they won't. You'll need to alter the number of the axes, the assigned ctrl-F keys and the number of the buttons according to your setup. You can see the button-number flash up to the right of the screen when you press the button while in the "Controls" screen. The number of the axes can be seen in the axes submenu of the control screen.
All scripts can be edited using window's notepad. Information about the available commands can be found in the testpatch-thread.
Here are mine:
1. The F9->F10->F12->F12 cycle.
This script will make a button on your wheel cycle through the F9, F10 and F12 screens. You press the button a first time, the F9 screen comes up. You press it a second time, F10 comes up, third time, F12 comes up, fourth time, F12 disappears, fifth time F9 appears and again.
In my version I use button 40 and CTRL+F12 for the script. Change this as necessary for your setup in the scripts.
Place "run bindF9" in your autoexec.lfs to enable this script.
2. The clutchstart-script.
This script will make a button on your comtroller turn your brake pedal (or any axis) into a clutch and disable autoclutch. Upon the second button press the axis works as a brake again and autoclutch is restored. This can be used to launch the car with a manual clutch and to switch back to the normal two-pedal setup once you're at a higher speed.
I myself have few use for it and only did it to see wether it works, but perhaps someone else wants to use it.
To use this script make sure you have clutch set to axis in the top section of the controls-screen.
I use button 45, axis 7 and CTRL+F9 to trigger the script. Change as necessary.
Place "run clutchstart" in your autoexec.lfs to enable this script.
3. Indicators
This script will allow you to assign a button on your controller to an indicator. You press the button, the indicator starts flashing. You press the button again, the indicator is disabled.
My scripts use buttons 42, 43, Ctrl+F10 and Ctrl+F11. Change these as necessary.
Add "run bind8" and "run bind7" to your autoexec.lfs to enable this script.
LFS's script system isn't very complicated. If you're confused what the commands do, read them up in the testpatchthread. If you're confused about how the scripts work (which file calls which scripts for what reason) feel free to ask.
Vain