Community Forum

Auto Rotate Back in LS11

Forum Overview >> Farming Simulator 2011

CategoryFarming Simulator 2011
Created05.12.2010 14:05


Sander Van Hoeve (Unknown) 05.12.2010 14:12
I've been trying to get self.autoRotateBackSpeed to work for the wheels of a steerable in LS11. It worked brilliantly in LS09, but it fails to do anything in LS11.

I know it's used in the Steerable.lua script, but when trying to script something around it, such as a steering lock, it doesn't work.

Does anyone know why it doesn't work anymore, and maybe also how to get it working?

Stefan Geiger - GIANTS Software 06.12.2010 10:49
What exactly are you trying to achieve and how are you trying to do this?

self.autoRotateBackSpeed still has the same meaning as in LS09. If no input is available, it is the speed with this the wheels are rotated back to 0 rotation.
It is not modified by the game at runtime, so you can overwrite it to achieve the effects desired.

Sander Van Hoeve (Unknown) 06.12.2010 17:47
I'm attempting to set the steering up in such a way that when I release my A or D key, the wheels remain in the position they were in just before I released the key, no matter if the steerable is moving or not.

In FS09, when setting the <wheels autoRotateBackSpeed> to 0 (zero) in the xml of the steerable, you basically accomplished manual steering with the keyboard (with a lua-script addition obviously): the steering wheels remained in position until new input was given. That doesn't work anymore in LS11, and that's exactly what I'm trying to do.

Torsten Pfau (Unknown) 07.12.2010 03:39
Good machines if you change the wheels like this at the deutzAgrotronX720- hope it´s right:
<wheel rotSpeed="70" rotMax="20" rotMin="-20" driveMode="2" repr="0" driveNode="0|0" radius="1.038" deltaY="0.20" suspTravel="0.25" spring="100" damper="20" mass="0.42" lateralStiffness="25" />
<wheel rotSpeed="70" rotMax="20" rotMin="-20" driveMode="2" repr="1" driveNode="1|0" radius="1.038" deltaY="0.20" suspTravel="0.25" spring="100" damper="20" mass="0.42" lateralStiffness="25" />
<wheel rotSpeed="0" driveMode="1" repr="2" radius="1.128" deltaY="0.15" suspTravel="0.2" spring="150" damper="20" mass="0.5" lateralStiffness="25" />
<wheel rotSpeed="0" driveMode="1" repr="3" radius="1.128" deltaY="0.15" suspTravel="0.2" spring="150" damper="20" mass="0.5" lateralStiffness="25" />


I think the AuoWheelRotateBackspeed function is original in fs 2011.

Sander Van Hoeve (Unknown) 08.12.2010 11:46
Thank you for your reply, but that doesn't work at all for what I want to do. I tested it, but it doesn't work at all. There is no difference. lateralStiffness refers NOT to your steering, but to the behavior of your shocks and suspense settings.

Any other suggestions?

Stefan Geiger - GIANTS Software 09.12.2010 10:23
The problem is, that if you do not have any steering key pressed, the code switches to analog input behavior. This is the code in the steerable specialization starting at line 506. In this case the autoRotateBackSpeed value is not used anymore.
You should set maxRotatedTimeSpeed to 0 as well. If you do this, it is not possible anymore to steer with the analog axes.

Sander Van Hoeve (Unknown) 09.12.2010 21:11
Works like a charm, thank you!


Note: Log in to post. Create a new account here.