Controls.sii file changes to enhance the trucking experience. First post Updated 20/10/2024

Make your game even better
baranismen
Posts: 17
Joined: September 13th, 2022, 11:23 am
Location: Izmir/Turkey

Re: Controls.sii file changes to enhance the trucking experience. First post Updated 20/06/2022

Post by baranismen » November 6th, 2022, 9:06 pm

Thanks for your assistance. No auto function is on and all toggle Keys for related stuff are unassigned. Its so interesting that i got only problem with these, rest working just fine (on/off switches, momentary buttons etc)

Connections are also good because i try them on keyboard tester and they exactly send the code it should be. Whether the board is connected or not , mentioned combos work fine on keyboard but not via control box surprisingly. I say surprisingly because the board is merely a key press emulator.
User avatar
JHTrucker
Expert
Posts: 1356
Joined: February 7th, 2020, 3:19 pm
Location: UK

Re: Controls.sii file changes to enhance the trucking experience. First post Updated 20/06/2022

Post by JHTrucker » November 7th, 2022, 6:45 pm

@baranismen - Ok, so my work here is done!
Enjoy finding the box issue... could it be speed related?
As in, it's sending the key press code too quickly or for not long enough and the game doesn't register it as an input?
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
baranismen
Posts: 17
Joined: September 13th, 2022, 11:23 am
Location: Izmir/Turkey

Re: Controls.sii file changes to enhance the trucking experience. First post Updated 20/06/2022

Post by baranismen » November 7th, 2022, 7:02 pm

JHTrucker wrote:
November 7th, 2022, 6:45 pm
@baranismen - Ok, so my work here is done!
Enjoy finding the box issue... could it be speed related?
As in, it's sending the key press code too quickly or for not long enough and the game doesn't register it as an input?
I thought about that as well, but all of them have the same release delay actually, I'll ask the guy who wrote the code for that to know how much milliseconds is that, but i assume its around 20ms. If it would be the case, then none of the functions would work i believe.

Also mentioned switches are working just fine with the in-game assignable settings, lets say i can turn on / off the diff.lock with the ignition key by setting it up in-game.
User avatar
JHTrucker
Expert
Posts: 1356
Joined: February 7th, 2020, 3:19 pm
Location: UK

Re: Controls.sii file changes to enhance the trucking experience. First post Updated 20/06/2022

Post by JHTrucker » November 7th, 2022, 7:11 pm

@baranismen - Try the troublesome ones with just a single different key each rather than a combo of 3 keys to see if that makes a difference?
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
baranismen
Posts: 17
Joined: September 13th, 2022, 11:23 am
Location: Izmir/Turkey

Re: Controls.sii file changes to enhance the trucking experience. First post Updated 20/06/2022

Post by baranismen » November 7th, 2022, 7:18 pm

JHTrucker wrote:
November 7th, 2022, 7:11 pm
@baranismen - Try the troublesome ones with just a single different key each rather than a combo of 3 keys to see if that makes a difference?
That's exactly what I do since yesterday. Following config works just fine on keyboard, but not via board, even though the board sends the very same key-presses as keyboard!

Code: Select all

config_lines[309]: "mix ignitionoff keyboard.x?0 | semantical.ignitionoff?0"
config_lines[310]: "mix ignitionon keyboard.z?0 | semantical.ignitionon?0"
config_lines[311]: "mix ignitionstrt keyboard.e?0 | semantical.ignitionstrt?0"
baranismen
Posts: 17
Joined: September 13th, 2022, 11:23 am
Location: Izmir/Turkey

Re: Controls.sii file changes to enhance the trucking experience. First post Updated 20/06/2022

Post by baranismen » November 7th, 2022, 10:51 pm

I solved the problem. Mentioned keys are recognised as "hold" commands instead of press & release for some reason.
SgtNathan
Posts: 2
Joined: January 15th, 2023, 3:30 am

Re: Controls.sii file changes to enhance the trucking experience. First post Updated 20/06/2022

Post by SgtNathan » January 15th, 2023, 5:00 am

You do amazing stuff for the community by adding more functionality to this game with bindings and such, and I figured you'd be the best person to ask on whether something was possible.

So I have a wheel with a limited amount of buttons. I also play the game in VR and finding keys on the keyboard is rather difficult, so I was wondering if it be possible to combine 2 commands to a single button press?

For example on my wheel I have to bind 2 seperate buttons for window up, and window down. Would it be possible to have a single button control both window up and window down on say, alternating presses?
User avatar
Tapir
VIP
Posts: 4175
Joined: December 15th, 2018, 3:07 pm
Location: Stratford, UK

Re: Controls.sii file changes to enhance the trucking experience. First post Updated 20/06/2022

Post by Tapir » January 15th, 2023, 12:35 pm

BTW: I have a logitech G29 wheel with switches and for example one switch is for left window up and left window down: if i push the rocker switch up : window is closing and if i push the rocker switch down: window is opening.



Image

System: Windows 11 PRO
Processor: Intel i7-12700KF 5GHZ
Motherboard: Gigabyte B760 DS3H AX
Memory: Corsair DDR5-6000 32 GB
Storage: Samsung 990 M2 SSD + 2 Samsung 870 SSD
Graphics: Asus GeForce Dual RTX 3060 V2 12GB GDDR6
User avatar
JHTrucker
Expert
Posts: 1356
Joined: February 7th, 2020, 3:19 pm
Location: UK

Re: Controls.sii file changes to enhance the trucking experience. First post Updated 20/06/2022

Post by JHTrucker » January 15th, 2023, 8:08 pm

SgtNathan wrote:
January 15th, 2023, 5:00 am
For example on my wheel I have to bind 2 seperate buttons for window up, and window down. Would it be possible to have a single button control both window up and window down on say, alternating presses?
I'll add a new post topic as it may be useful for others, thanks for the idea!
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
User avatar
JHTrucker
Expert
Posts: 1356
Joined: February 7th, 2020, 3:19 pm
Location: UK

Re: Controls.sii file changes to enhance the trucking experience. First post Updated 20/06/2022

Post by JHTrucker » January 15th, 2023, 10:45 pm

How to use one key/button to toggle game functions to reduce the number of keys/buttons used.

Examples, open/close windows & raise/lower suspension requires 8 keys/buttons.
Here you can do all those functions with just 2 keys/buttons!

We can use the games 'head tracking' on/off toggle if you don't use it, I use TrackIR and don't use it as I can toggle it on/off with the TrackIR software assigned button, if I need to.
This will work for all users, VR, TrackIR, Tobbi Eye, Mouse, Gamepad etc.

Replace these 2 lines removing 'c_ht_on &':
"mix headtron `(trackiron | hmdon | eyeposon)`"
"mix headtrwmon `(trackiron | hmdon | eyeposon)`"

Replace every instance of keyboard.num1?0, keyboard.num2?0, keyboard.num3?0 & keyboard.num4?0 with your preferred keys/buttons.

Numpad1 - open/close left window:
"mix lwinopen `keyboard.num1?0 & ! c_ht_on`"
"mix lwinclose `keyboard.num1?0 & c_ht_on`"
Numpad2 - open/close right window:
"mix rwinopen `keyboard.num2?0 & ! c_ht_on`"
"mix rwinclose `keyboard.num2?0 & c_ht_on`"
"mix headtren `keyboard.num1?0 | keyboard.num2?0`"

Numpad1 - open/close left window & open/close right window at the same time:
"mix rwinopen `keyboard.num1?0 & ! c_ht_on`"
"mix rwinclose `keyboard.num1?0 & c_ht_on`"
"mix lwinopen `keyboard.num1?0 & ! c_ht_on`"
"mix lwinclose `keyboard.num1?0 & c_ht_on`"
"mix headtren `keyboard.num1?0`"

Numpad3 - Lower/Raise front suspension:
"mix frontsuspup `keyboard.num3?0 & ! c_ht_on`"
"mix frontsuspdwn `keyboard.num3?0 & c_ht_on`"
Numpad4 - Lower/Raise rear suspension:
"mix rearsuspup `keyboard.num4?0 & ! c_ht_on`"
"mix rearsuspdwn `keyboard.num4?0 & c_ht_on`"
"mix headtren `keyboard.num3?0 | keyboard.num4?0`"

Numpad3 - Lower/Raise front & rear suspension at the same time:
"mix frontsuspup `keyboard.num3?0 & ! c_ht_on`"
"mix frontsuspdwn `keyboard.num3?0 & c_ht_on`"
"mix rearsuspup `keyboard.num3?0 & ! c_ht_on`"
"mix rearsuspdwn `keyboard.num3?0 & c_ht_on`"
"mix headtren `keyboard.num3?0`"

Just ensure you add only the keys you want to toggle to this line, like so.
For individual left/right windows and individual front/rear suspension:
"mix headtren `keyboard.num1?0 | keyboard.num2?0 | keyboard.num3?0 | keyboard.num4?0`"
OR
For left/right windows together and front/rear suspension together:
"mix headtren `keyboard.num1?0 | keyboard.num3?0`"

There may be others that can be useful to toggle, just follow the same format as above examples.

Go back to the first post for the full list of what's available: viewtopic.php?p=24744#p24744
Last edited by JHTrucker on October 10th, 2023, 6:47 pm, edited 1 time 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
Post Reply