The online racing simulator
#1 - Pasci
Insim Packets to set/get force feedback of the wheel
Hello

Since I started driving with my new Moza steering wheel, I've noticed that I have to (should) adjust the force feedback strength depending on the vehicle in order to prevent clipping. And yes, that was actually the case with the Logitech G27 too.

I haven't found any information in the insim.txt that would allow me to read or even set the force feedback value. And yes, you can set an FF value using the /ff command, but first I want to know - from a program perspective - what is currently set/adjusted in order to be able to save this information.

My goal would be to be able to automatically set a previously used/saved value depending on the vehicle selected, without having to manually make this adjustment every time I change vehicles. I would also have to manually note down the current setting somewhere in order to set this setting again in the same way. Wink

Are there already Insim packages for this that I just haven't discovered yet? Shrug
You can use data/script/[car name].lfs files to add /ff commands there (e.g. XRT.lfs). For mods the file must be named after the SkinID - C2EBCF.lfs for example.
yeah i don't there's any efficient way to track what force-feedback each car has.

I would probably do what Flame suggested.
#4 - Pasci
Thank you for your answers

But that is not a solution (or only for parts of the request).

Updating/adapting any files is not very efficient and doing so for every possible car is not either. It is very cumbersome.

For me that means that it is currently not 100% feasible. Let's see, maybe Scawen can include the current FF value in a suitable Insim package (for reading; to change the value, the solution with the command is sufficient). Smile
Quote from Pasci :maybe Scawen can include the current FF value in a suitable Insim package (for reading; to change the value, the solution with the command is sufficient). Smile

Actually i disagree with this one. A better solution to this would be to change the /ff [value] command.

- Typing /ff 15 would set the force-feedback to the value of 15.
- Typing /ff would return the force-feedback value in the chat, like Force Feedback : 15

All Pasci then had to do is read the chat and parse the value.


Although, this is also quite possible without even needing to know the value of the force-feedback.
Say you have storage, sqlite in this example - each time you (the local player) enters the track:
- You query the database and check if the ffCars table has a record of the car you just joined with. If it does, you send an IS_MST with the command /ff [value] (replace with value from the record).

If the query didn't find any records, you add the record and apply the value you prefer for this vehicle. Of course this kind of feature needs some kind of ff management, so you can change the ff for said car at any time.

I have not played around with this (except for in my head), but i definitely do think it is possible with both approaches.

FGED GREDG RDFGDR GSFDG