The online racing simulator
LFS Script System
(189 posts, started )
you jsut have to add to all of the cars *.lfs file something to over-ride what you have the Limiter set to.
Quote from dawesdust_12 :you jsut have to add to all of the cars *.lfs file something to over-ride what you have the Limiter set to.

what i mean is that i assume it's something like

FZ5.lfs

/btn 39 = TC_mode_toggle

but i dont know!
in order to make say button 39 different for all cars, I am assuming you would do something like this.

FZ5.lfs
/btn 39 = add tc command here

GTI.lfs
/btn 39 = add different command here
and so on...
if you dont add the line in GTI.lfs then whatever the default command for btn 39 was that will be used.

OR

so instead of editing all the [cars].lfs you could just add a command in road.lfs
/btn 39 = /say hello

and in singleseaters(dont know the exact name).lfs file you would add the commnd
/btn = tc


Quote from Jakg :what i mean is that i assume it's something like

FZ5.lfs

/btn 39 = TC_mode_toggle

but i dont know!

so what IS the tc command?
In the list of commands, there's a tc_disable. I don't know if there's a corresponding tc_enable, or if it's effectively a toggle switch.

If you've got TC still assigned to a key (default is "o"), you can put this in the fz5.lfs script file:-

/button 39 press o

And for cars where you want it to be a pit limiter, you can put the line in their script..

/button 39 press l

(That's a lowercase L, btw)
Quote from SamH :In the list of commands, there's a tc_disable. I don't know if there's a corresponding tc_enable, or if it's effectively a toggle switch.

If you've got TC still assigned to a key (default is "o"), you can put this in the fz5.lfs script file:-

/button 39 press o

And for cars where you want it to be a pit limiter, you can put the line in their script..

/button 39 press l

(That's a lowercase L, btw)

where is the list of commands?

And is space " " or "space"? and "press" doesnt work either
Quote from SamH :http://www.lfsforum.net/showthread.php?p=162696#post162696

Paste your script so far, and we'll work through it. I'm not good at it yet, either, but I reckon it's worth spending some time figuring it out

// This script is run when you select the BF1

run paddle
/btn 35 press o
/btn 41 press space

it was button, but it complained about button, so i changed it to btn and it still complained

iirc do i need the /?
I'm just trying stuff out too. I'd forgotten everything I'd learned.

Try this:-
run paddle
/button 35 tc_disable
/button 41 reset

That's assuming that space is your reset button.

You don't need the / any more. I do it out of habit.
Quote from SamH :I'm just trying stuff out too. I'd forgotten everything I'd learned.

Try this:-
run paddle
/button 35 tc_disable
/button 41 reset

That's assuming that space is your reset button.

You don't need the / any more. I do it out of habit.

works GREAT, now all i need is to pull both paddles and it goes into shift + g!
hats wrong with /button 35 press F9
/button 41 press F10 then?
I've not tested it, but I think it would be:-

/button 35 f9
/button 41 f10

Give that a spin.. let us know.
Quote from SamH :I've not tested it, but I think it would be:-

/button 35 f9
/button 41 f10

Give that a spin.. let us know.

nope, didn't work
Bahh! Okay.. have you got any spare Ctrl+F keys?

In mine, on the Text Keys menu, I have Ctrl+F3 with the text "/press f9". Then I have a button assigned to it.
Quote from SamH :Bahh! Okay.. have you got any spare Ctrl+F keys?

In mine, on the Text Keys menu, I have Ctrl+F3 with the text "/press f9". Then I have a button assigned to it.

nope, none spare :'(
Ack. Umm..

There's an answer.. working on it..
Jakg

Try here

http://www.lfsforum.net/showthread.php?p=175639#post175639

As you can see i've got a DFP and wanted to assign F9 & F10. I hope this explains what I did (with assistance from Scawen)

EDIT
AAAHHH hang on, i've just noticed you've run out of CTRL keys!!!!
Script Request
Hi, I'm kinda new to the scripting thing. I was wondering if one of you scripting guru's could make a script for me.

What I'm wanting to do is have a button mapped to shift to a specific gear. So that I'm able to use paddle shifting, but when I come up to a corner, eg turn 1 Ky2, i can brake and punch the button to go directly to 4th gear.

Any ideas???
scripts arent really corner depending, but they could be track dependant (by InSim?)
Quote from Tony Pearce :Hi, I'm kinda new to the scripting thing. I was wondering if one of you scripting guru's could make a script for me.

What I'm wanting to do is have a button mapped to shift to a specific gear. So that I'm able to use paddle shifting, but when I come up to a corner, eg turn 1 Ky2, i can brake and punch the button to go directly to 4th gear.

Any ideas???

Isn't possible, but I can make you a script, that you press the button once, 1. corner script, twice - 2 corner script etc.
Excuse my ignorance but where are the available scripting commands documented?

Is the scripting client-side only?
The commands are listed in the Commands.txt file in the docs folder. That is, if you have U20 installed.

I'm not sure what you mean about it being client side only. It can work on a host if you type it on a host. You can also use a script to call admin commands that affect the host. So it some senses it's client side only and others, it's not.

If that explanation doesn't help much, please give an example of what you want to do with it, on a host.
Quote from Scawen :The commands are listed in the Commands.txt file in the docs folder. That is, if you have U20 installed.

I'm not sure what you mean about it being client side only. It can work on a host if you type it on a host. You can also use a script to call admin commands that affect the host. So it some senses it's client side only and others, it's not.

If that explanation doesn't help much, please give an example of what you want to do with it, on a host.

I come from a background of running game servers for the gaming community I help run. If I use a CounterStrike server as an example ...

I can construct scripts that run server-side that, as an example, would configure the server for a match and announce the fact to the players on the server. These would be run by the admins. I can also get scripts to run on set events - round start/end etc. This is possible because the server has a command set that can be configured into scripts.

I, and everyone else, can also construct client-side scripts that would allow the buying of weapons, ammo, armour etc. These scripts can be bound to keys. It is also possible to create strings of commands and designate an alias to them. This alias is then bound to a key, called and the commands execute.

With LfS ...

From what I can gather, I can construct a script that can control a host and that script can resides client-side or on the host. Is that correct? So what happens if I have a script of the same name client-side?
Thanks for the explanation. I don't think there is a way for an admin to start a script running on a host, from a script file that already exists on the host. So in fact, the script system is only client side at the moment (unless you have access to the host via a keyboard or InSim).

I've added it to my list. I know that this and the wait / pause command and some attaching of scripts to events, would open up a lot of new possibilities.
Quote from Scawen :I've added it to my list. I know that this and the wait / pause command and some attaching of scripts to events, would open up a lot of new possibilities.

:hyper:

So how many harddrives is the list already filling?

LFS Script System
(189 posts, started )
FGED GREDG RDFGDR GSFDG