Controls.sii file changes to enhance the trucking experience. First post Updated 20/10/2024
-
- Posts: 4
- Joined: March 21st, 2024, 2:02 pm
Re: Modifiche al file Controls.sii per migliorare l'esperienza di autotrasporto. Primo post Aggiornato 14/02/2024
thanks for answering me, I use the lever which in flying games would be the accelerator, in control.sii it is called joy2 and the axis is the z axis, so joy2.z does not have a centered return so when you release it it stays in the position, position 0 of the retarder should correspond to the lever pushed all the way forward while position 5 to the lever pulled all the way back, in this way it simulates the retarder lever that you pull up and down, when I get home I'll try those strings you wrote to me, I hope please understand I use google translator
Re: Controls.sii file changes to enhance the trucking experience. First post Updated 14/02/2024
@Italiantrucker97 - Here I've added a small deadzone for off and made all values positive, just in case.
"mix retarder0 `! abs(sign(deadzone(joy.z, 0.009))) | semantical.retarder0?0`"
"mix retarder1 `abs(sign(deadzone(joy.z, 0.01))) * ! abs(sign(deadzone(joy.z, 0.2))) | semantical.retarder1?0`"
"mix retarder2 `abs(sign(deadzone(joy.z, 0.21))) * ! abs(sign(deadzone(joy.z, 0.4))) | semantical.retarder2?0`"
"mix retarder3 `abs(sign(deadzone(joy.z, 0.41))) * ! abs(sign(deadzone(joy.z, 0.6))) | semantical.retarder3?0`"
"mix retarder4 `abs(sign(deadzone(joy.z, 0.61))) * ! abs(sign(deadzone(joy.z, 0.8))) | semantical.retarder4?0`"
"mix retarder5 `abs(sign(deadzone(joy.z, 0.81))) | semantical.retarder5?0`"
I tested the above in ETS2 and the truck (new merc) retarder lever only has off and 3 positions, but if your truck has more it should work ok.
This splits the movement into 3 steps:
"mix retarder0 `! abs(sign(deadzone(joy.z, 0.009))) | semantical.retarder0?0`"
"mix retarder1 `abs(sign(deadzone(joy.z, 0.01))) * ! abs(sign(deadzone(joy.z, 0.33))) | semantical.retarder1?0`"
"mix retarder2 `abs(sign(deadzone(joy.z, 0.34))) * ! abs(sign(deadzone(joy.z, 0.66))) | semantical.retarder2?0`"
"mix retarder3 `abs(sign(deadzone(joy.z, 0.67))) | semantical.retarder3?0`"
"mix retarder4 `semantical.retarder4?0`"
"mix retarder5 `semantical.retarder5?0`"
Hopefully that's enough for you to make it work.
"mix retarder0 `! abs(sign(deadzone(joy.z, 0.009))) | semantical.retarder0?0`"
"mix retarder1 `abs(sign(deadzone(joy.z, 0.01))) * ! abs(sign(deadzone(joy.z, 0.2))) | semantical.retarder1?0`"
"mix retarder2 `abs(sign(deadzone(joy.z, 0.21))) * ! abs(sign(deadzone(joy.z, 0.4))) | semantical.retarder2?0`"
"mix retarder3 `abs(sign(deadzone(joy.z, 0.41))) * ! abs(sign(deadzone(joy.z, 0.6))) | semantical.retarder3?0`"
"mix retarder4 `abs(sign(deadzone(joy.z, 0.61))) * ! abs(sign(deadzone(joy.z, 0.8))) | semantical.retarder4?0`"
"mix retarder5 `abs(sign(deadzone(joy.z, 0.81))) | semantical.retarder5?0`"
I tested the above in ETS2 and the truck (new merc) retarder lever only has off and 3 positions, but if your truck has more it should work ok.
This splits the movement into 3 steps:
"mix retarder0 `! abs(sign(deadzone(joy.z, 0.009))) | semantical.retarder0?0`"
"mix retarder1 `abs(sign(deadzone(joy.z, 0.01))) * ! abs(sign(deadzone(joy.z, 0.33))) | semantical.retarder1?0`"
"mix retarder2 `abs(sign(deadzone(joy.z, 0.34))) * ! abs(sign(deadzone(joy.z, 0.66))) | semantical.retarder2?0`"
"mix retarder3 `abs(sign(deadzone(joy.z, 0.67))) | semantical.retarder3?0`"
"mix retarder4 `semantical.retarder4?0`"
"mix retarder5 `semantical.retarder5?0`"
Hopefully that's enough for you to make it work.
multimon_config.sii files: viewtopic.php?p=17658#p17658
controls.sii edits: viewtopic.php?p=24744#p24744
TrackIR Driving Enhancements: viewtopic.php?p=46613#p46613
Extra Cameras: viewtopic.php?p=46034#p46034
controls.sii edits: viewtopic.php?p=24744#p24744
TrackIR Driving Enhancements: viewtopic.php?p=46613#p46613
Extra Cameras: viewtopic.php?p=46034#p46034
-
- Posts: 4
- Joined: March 21st, 2024, 2:02 pm
Re: Controls.sii file changes to enhance the trucking experience. First post Updated 14/02/2024
hi, so it works more or less, the problem is that the lever takes the center as the zero point instead of pushing it all the way forward, so from the center downwards or upwards it moves the retarder instead of using the entire stroke, I think that some value must be negative
Re: Controls.sii file changes to enhance the trucking experience.
Control the retarder with a non-centering analogue lever - 1.41+
As requested by forum member Italiantrucker97 - https://roextended.ro/forum/viewtopic.p ... 774#p63774
Note: The analogue lever you use for this should stay in position when you let go of it, that way it can be used as a selector switch.
-------------------------
@Italiantrucker97 - I've found and connected an old joystick that has a small thumb operated analogue throttle, that doesn't auto centre, it works like this:
Centre to forwards = negative
Centre = 0
Centre backwards = positive
Z default = joy2.z = -1.0 <-> 0.0 <-> 1.0
Z converted = (joy2.z + 1) * 0.5 = 0.0 <-> 1.0 (for full forward/backward lever range).
Using ETS2 New Merc and watching the in cab animated retarder lever (off & 3 positions) on the steering column:
My joystick throttle lever fully forward and in game animated lever shown as up.
Pushing joystick throttle lever backwards shows in game animated lever going down.
"mix retarder0 `! sign(deadzone((joy2.z + 1) * 0.5, 0.09)) | semantical.retarder0?0`"
"mix retarder1 `sign(deadzone((joy2.z + 1) * 0.5, 0.01)) * ! sign(deadzone((joy2.z + 1) * 0.5, 0.20)) | semantical.retarder1?0`"
"mix retarder2 `sign(deadzone((joy2.z + 1) * 0.5, 0.21)) * ! sign(deadzone((joy2.z + 1) * 0.5, 0.40)) | semantical.retarder2?0`"
"mix retarder3 `sign(deadzone((joy2.z + 1) * 0.5, 0.41)) * ! sign(deadzone((joy2.z + 1) * 0.5, 0.60)) | semantical.retarder3?0`"
"mix retarder4 `sign(deadzone((joy2.z + 1) * 0.5, 0.61)) * ! sign(deadzone((joy2.z + 1) * 0.5, 0.80)) | semantical.retarder4?0`"
"mix retarder5 `sign(deadzone((joy2.z + 1) * 0.5, 0.81)) | semantical.retarder5?0`"
OR
My joystick throttle lever fully forward and in game animated lever shown as down.
Pushing joystick throttle lever backwards shows in game animated lever going up.
"mix retarder0 `sign(deadzone((joy2.z + 1) * 0.5, 0.81)) | semantical.retarder?0`"
"mix retarder1 `sign(deadzone((joy2.z + 1) * 0.5, 0.61)) * ! sign(deadzone((joy2.z + 1) * 0.5, 0.80)) | semantical.retarder1?0`"
"mix retarder2 `sign(deadzone((joy2.z + 1) * 0.5, 0.41)) * ! sign(deadzone((joy2.z + 1) * 0.5, 0.60)) | semantical.retarder2?0`"
"mix retarder3 `sign(deadzone((joy2.z + 1) * 0.5, 0.21)) * ! sign(deadzone((joy2.z + 1) * 0.5, 0.40)) | semantical.retarder3?0`"
"mix retarder4 `sign(deadzone((joy2.z + 1) * 0.5, 0.01)) * ! sign(deadzone((joy2.z + 1) * 0.5, 0.20)) | semantical.retarder4?0`"
"mix retarder5 `! sign(deadzone((joy2.z + 1) * 0.5, 0.09)) | semantical.retarder5?0`"
Just choose one of the above options and change joy2.z to suit your setup.
Go back to the first post for the full list of what's available: https://roextended.ro/forum/viewtopic.p ... 744#p24744
As requested by forum member Italiantrucker97 - https://roextended.ro/forum/viewtopic.p ... 774#p63774
Note: The analogue lever you use for this should stay in position when you let go of it, that way it can be used as a selector switch.
-------------------------
@Italiantrucker97 - I've found and connected an old joystick that has a small thumb operated analogue throttle, that doesn't auto centre, it works like this:
Centre to forwards = negative
Centre = 0
Centre backwards = positive
Z default = joy2.z = -1.0 <-> 0.0 <-> 1.0
Z converted = (joy2.z + 1) * 0.5 = 0.0 <-> 1.0 (for full forward/backward lever range).
Using ETS2 New Merc and watching the in cab animated retarder lever (off & 3 positions) on the steering column:
My joystick throttle lever fully forward and in game animated lever shown as up.
Pushing joystick throttle lever backwards shows in game animated lever going down.
"mix retarder0 `! sign(deadzone((joy2.z + 1) * 0.5, 0.09)) | semantical.retarder0?0`"
"mix retarder1 `sign(deadzone((joy2.z + 1) * 0.5, 0.01)) * ! sign(deadzone((joy2.z + 1) * 0.5, 0.20)) | semantical.retarder1?0`"
"mix retarder2 `sign(deadzone((joy2.z + 1) * 0.5, 0.21)) * ! sign(deadzone((joy2.z + 1) * 0.5, 0.40)) | semantical.retarder2?0`"
"mix retarder3 `sign(deadzone((joy2.z + 1) * 0.5, 0.41)) * ! sign(deadzone((joy2.z + 1) * 0.5, 0.60)) | semantical.retarder3?0`"
"mix retarder4 `sign(deadzone((joy2.z + 1) * 0.5, 0.61)) * ! sign(deadzone((joy2.z + 1) * 0.5, 0.80)) | semantical.retarder4?0`"
"mix retarder5 `sign(deadzone((joy2.z + 1) * 0.5, 0.81)) | semantical.retarder5?0`"
OR
My joystick throttle lever fully forward and in game animated lever shown as down.
Pushing joystick throttle lever backwards shows in game animated lever going up.
"mix retarder0 `sign(deadzone((joy2.z + 1) * 0.5, 0.81)) | semantical.retarder?0`"
"mix retarder1 `sign(deadzone((joy2.z + 1) * 0.5, 0.61)) * ! sign(deadzone((joy2.z + 1) * 0.5, 0.80)) | semantical.retarder1?0`"
"mix retarder2 `sign(deadzone((joy2.z + 1) * 0.5, 0.41)) * ! sign(deadzone((joy2.z + 1) * 0.5, 0.60)) | semantical.retarder2?0`"
"mix retarder3 `sign(deadzone((joy2.z + 1) * 0.5, 0.21)) * ! sign(deadzone((joy2.z + 1) * 0.5, 0.40)) | semantical.retarder3?0`"
"mix retarder4 `sign(deadzone((joy2.z + 1) * 0.5, 0.01)) * ! sign(deadzone((joy2.z + 1) * 0.5, 0.20)) | semantical.retarder4?0`"
"mix retarder5 `! sign(deadzone((joy2.z + 1) * 0.5, 0.09)) | semantical.retarder5?0`"
Just choose one of the above options and change joy2.z to suit your setup.
Go back to the first post for the full list of what's available: https://roextended.ro/forum/viewtopic.p ... 744#p24744
Last edited by JHTrucker on March 22nd, 2024, 7:41 pm, edited 3 times in total.
multimon_config.sii files: viewtopic.php?p=17658#p17658
controls.sii edits: viewtopic.php?p=24744#p24744
TrackIR Driving Enhancements: viewtopic.php?p=46613#p46613
Extra Cameras: viewtopic.php?p=46034#p46034
controls.sii edits: viewtopic.php?p=24744#p24744
TrackIR Driving Enhancements: viewtopic.php?p=46613#p46613
Extra Cameras: viewtopic.php?p=46034#p46034
-
- Posts: 4
- Joined: March 21st, 2024, 2:02 pm
Re: Controls.sii file changes to enhance the trucking experience. First post Updated 14/02/2024
it works, thanks so much for your patience and help
Re: Controls.sii file changes to enhance the trucking experience. First post Updated 14/02/2024
@Italiantrucker97 - Glad to hear it, enjoy.
It seems that this is something that others may also want, so I'll add my post to the main list.
Thanks.
It seems that this is something that others may also want, so I'll add my post to the main list.
Thanks.
multimon_config.sii files: viewtopic.php?p=17658#p17658
controls.sii edits: viewtopic.php?p=24744#p24744
TrackIR Driving Enhancements: viewtopic.php?p=46613#p46613
Extra Cameras: viewtopic.php?p=46034#p46034
controls.sii edits: viewtopic.php?p=24744#p24744
TrackIR Driving Enhancements: viewtopic.php?p=46613#p46613
Extra Cameras: viewtopic.php?p=46034#p46034