Noel Hibbard
I am writing an rFactor plugin which will dynamically set the steering lock on Logitech wheels based on which car you are driving. It has an INI file called DynaLock.ini that looks something like this:
So given you are using the INI file above and you drive the RS Spyder it will change the lock to 540. If you drive a car that isn't in the INI file it will create a new entry for that car using the default value.
I am running into problems. Maybe there is another dev out there that can help. I have two ways to accomplish this. One way is hacky and involves setting some values in the registry and then closing the Logitech profiler and then launching it again forcing it to pick up the registry changes. This works perfect the only problem is it will cause rFactor to minimize. I added code to just minimize rF, then do the reg hacking, then maximize rF. But it is still annoying and some mods hang if you minimize rF.
The alternative is to use Logitech's SDK. Everyone has this SDK, it ships with driver version 5.08 and above and can be found here:
C:\Program Files\Logitech\Gaming Software\Logitech_SDK_For_PC_1.00.002.zip
I attempted to use the SDK without luck. I know TechAde tried to add dynamic lock support to RealFeel and ran into the same problems and even Logitech wasn't able to help him although I don't think they every responded to him. There are some devs that tried to implement dynamic lock with a plugin for LFS without luck and resorted to the hacky registry method I ended up using. So I am not alone in trying to implement this through the SDK.
As of right now the plugin is complete and works perfect if you don't mind seeing rF minimize for 500ms and then restore. I personally hate it. So I am going to hold off on releasing it in hopes of figuring out this stupid SDK. If I don't figure it out and no one else has any clues I will just release it as is.
Code:
[Defaults]
Lock=900
[RS Spyder]
Lock=540
So given you are using the INI file above and you drive the RS Spyder it will change the lock to 540. If you drive a car that isn't in the INI file it will create a new entry for that car using the default value.
I am running into problems. Maybe there is another dev out there that can help. I have two ways to accomplish this. One way is hacky and involves setting some values in the registry and then closing the Logitech profiler and then launching it again forcing it to pick up the registry changes. This works perfect the only problem is it will cause rFactor to minimize. I added code to just minimize rF, then do the reg hacking, then maximize rF. But it is still annoying and some mods hang if you minimize rF.
The alternative is to use Logitech's SDK. Everyone has this SDK, it ships with driver version 5.08 and above and can be found here:
C:\Program Files\Logitech\Gaming Software\Logitech_SDK_For_PC_1.00.002.zip
I attempted to use the SDK without luck. I know TechAde tried to add dynamic lock support to RealFeel and ran into the same problems and even Logitech wasn't able to help him although I don't think they every responded to him. There are some devs that tried to implement dynamic lock with a plugin for LFS without luck and resorted to the hacky registry method I ended up using. So I am not alone in trying to implement this through the SDK.
As of right now the plugin is complete and works perfect if you don't mind seeing rF minimize for 500ms and then restore. I personally hate it. So I am going to hold off on releasing it in hopes of figuring out this stupid SDK. If I don't figure it out and no one else has any clues I will just release it as is.