Controls.sii file changes to enhance the trucking experience. Updated 02/08/2020

Make your game even better
Post Reply
User avatar
JHTrucker
Posts: 665
Joined: February 7th, 2020, 3:19 pm
Location: UK

Controls.sii file changes to enhance the trucking experience. Updated 02/08/2020

Post by JHTrucker » June 26th, 2020, 2:47 pm

Controls.sii file changes to enhance the trucking experience.

This is a start for a collection of the most useful ideas that add a bit of something extra to the game.
If you have an idea, post it and i'll see if it's possible to create and add to the list.
If you already use custom controls.sii changes, post them with a description and a how to setup and i'll add them to this list.
No mods in here, just controls.sii edits.

If you'd rather stand outside whilst refueling, instead of sat in the cab, then here's a quick and easy automated solution.
viewtopic.php?p=24745#p24745

At a toll booth that you have to stop at or a border control point, you have to hand over money or documents for checking. You should therefore open the window first.
viewtopic.php?p=24764#p24764

Use the in game zoom feature with head tracking instead of pressing a button.
viewtopic.php?p=24823#p24823

Pressing left and right indicator buttons at the same time will activate the hazard warning lights.
viewtopic.php?p=26057#p26057 - Updated 02/08/2020

More to come ? If i can think of any more.
Last edited by JHTrucker on August 2nd, 2020, 9:14 pm, edited 7 times in total.
For best AA results always use latest files.
First post STEP 2 files updated 10/04/2020 viewtopic.php?f=19&t=1000
Additional non standard screen configs to try: viewtopic.php?p=17658#p17658
User avatar
JHTrucker
Posts: 665
Joined: February 7th, 2020, 3:19 pm
Location: UK

Re: Controls.sii file changes to enhance the trucking experience.

Post by JHTrucker » June 26th, 2020, 2:50 pm

If you'd rather stand outside whilst refueling, instead of sat in the cab, then here's a quick and easy automated solution.

Game controls:
Cam1 - button 1 & engine (add this existing button).
Cam5 - button 5 & Fuel button (add this new button).
Activate - Activate button & Fuel button (add this new button).

When i stop for fuel, switch off engine and press and hold fuel button (instead of activate).
The view changes to view 5, i'm now stood next to the drivers door and fuel pump looking back a the truck fuel tank.
When filling is complete, press engine button to turn on electric and view changes to view 1 and i'm back in the cab.
Press engine button again to start the engine and drive off.
We still have to pay whilst driving away.

Here's what my controls.sii looks like (line numbers correct for game version 1.37):
I use nummultiply for the new fuel button and joy.b4?0 for engine start.

config_lines[166]: "mix cam1 `keyboard.key1?0 | joy.b4?0 | semantical.cam1?0`"
config_lines[170]: "mix cam5 `keyboard.key5?0 | keyboard.nummultiply?0 | semantical.cam5?0`"
config_lines[271]: "mix activate `joy.b19?0 | keyboard.nummultiply?0 | semantical.activate?0`"
config_lines[273]: "mix engine `joy.b4?0 | semantical.engine?0`"
Last edited by JHTrucker on June 27th, 2020, 6:38 pm, edited 1 time in total.
For best AA results always use latest files.
First post STEP 2 files updated 10/04/2020 viewtopic.php?f=19&t=1000
Additional non standard screen configs to try: viewtopic.php?p=17658#p17658
User avatar
JHTrucker
Posts: 665
Joined: February 7th, 2020, 3:19 pm
Location: UK

Re: Controls.sii file changes to enhance the trucking experience.

Post by JHTrucker » June 26th, 2020, 8:07 pm

At a toll booth that you have to stop at or a border control point, you have to hand over money or documents for checking. You should therefore open the window first.

For head tracking only:
Press and hold "open driver side window button".
Turn your head towards the booth and it'll activate.
You can now stop pressing "open driver side window button".
Drive off whilst closing your window.

Add the highlighted part to your "mix activate" line (line number correct for game version 1.37).
config_lines[271]: "mix activate `keyboard.a?0 | keyboard.nummultiply?0 | abs(headtryaw)*1.25 & (lwinopen | rwinopen) | semantical.activate?0`"

Note: For example, this does mean that if you are parked ready to sleep you will activate sleep if you do the above sequence. But you won't, probably, so you just press your normal activate button to sleep.

For button look users (standard game analogue isn't suitable here):
Press and hold "open driver side window button".
Press your button to look towards the booth and it'll activate. (lookleft/lookpos5/lookright/lookpos4).
You can now stop pressing "open driver side window button".
Drive off whilst closing your window.

Add the highlighted part to your "mix activate" line (line number correct for game version 1.37).
config_lines[271]: "mix activate `keyboard.enter?0 | (lookleft | lookpos5 & lwinopen) | (lookright | lookpos4 & rwinopen) | semantical.activate?0`"
Last edited by JHTrucker on June 27th, 2020, 6:38 pm, edited 1 time in total.
For best AA results always use latest files.
First post STEP 2 files updated 10/04/2020 viewtopic.php?f=19&t=1000
Additional non standard screen configs to try: viewtopic.php?p=17658#p17658
User avatar
JHTrucker
Posts: 665
Joined: February 7th, 2020, 3:19 pm
Location: UK

Re: Controls.sii file changes to enhance the trucking experience.

Post by JHTrucker » June 27th, 2020, 6:17 pm

Use the in game zoom feature with head tracking instead of pressing a button.

Feels right to lean forward to read up coming signs. One less button to press!
It's much easier now to look at the passenger mirror while reversing without having to keep pressing the zoom button on my wheel at the same time as steering.

As standard, when you lean forward you get closer to the dash.
This adds to that feature by allowing you to lean further forward and thereby trigger the in game zoom.

All line numbers correct for game version 1.37 for Trackir etc only. Tobii Eye test at bottom.
Replace this line: (I used wheel button joy.b22?0 to zoom before changing to this way)
config_lines[180]: "mix camzoom `joy.b22?0 | semantical.camzoom?0`"
With this line:
config_lines[180]: "mix camzoom `keyboard.lshift?0 & keyboard.z?0 | -trackir.device.position.z?0 * 1.3`"

Trigger 'zoom view' when leaning forward (TIR z) - Default 1.3
The higher the value the sooner zoom will be triggered. 1.4, 1.5, 2.0 etc - max 3.0 otherwise it'll zoom every time you twitch.

Pic 1 - Sitting normally.
Pic 2 - Standard lean forward to move closer to the dash.
Pic 3 - With this change - Lean further forward to zoom the view, with your head instead of the standard button.
zoom.png
.
If, like me, you only use TIR yaw (left/right) you can still use this zoom method by disabling in game "z" movement.
Enable "z" in your head tracking software.
Then do the following:

Replace this line:
config_lines[249]: "mix headtrz `clamp(sel(trackiron, trackirz, 0) + sel(eyeposon, eyeposz, 0), -0.2, 0.05) + sel(hmdon, hmdz, 0)`"
With this line:
config_lines[249]: "mix headtrz `clamp(sel(trackiron, trackirz, 0) + sel(eyeposon, eyeposz, 0), 0, 0) + sel(hmdon, hmdz, 0)`"

Your in game head won't move back and forward anymore but it will trigger zoom when you lean far enough forward.
Also, reduce the amount of forward movement required to trigger zoom by using 3. But you can adjust as required.
config_lines[180]: "mix camzoom `keyboard.lshift?0 & keyboard.z?0 | -trackir.device.position.z?0 * 3`"


Tobii Eye may work as well. I don't have one to test but this is my best guess.

Replace this line:
config_lines[180]: "mix camzoom `joy.b22?0 | semantical.camzoom?0`"
With this line:
config_lines[180]: "mix camzoom `keyboard.lshift?0 & keyboard.z?0 | -eye_track.head_position.z?0 * 1.3`"

You can use line 249 above if you want to disable "z" movement. Read the description with it.
Feel free to say if this works with your Tobii or it's not required because Tobii already does this?
For best AA results always use latest files.
First post STEP 2 files updated 10/04/2020 viewtopic.php?f=19&t=1000
Additional non standard screen configs to try: viewtopic.php?p=17658#p17658
User avatar
JHTrucker
Posts: 665
Joined: February 7th, 2020, 3:19 pm
Location: UK

Re: Controls.sii file changes to enhance the trucking experience.

Post by JHTrucker » July 29th, 2020, 7:40 pm

Pressing left and right indicator buttons at the same time will activate the hazard warning lights.
Now no need to waste an extra button on hazard warning lights.

Note: When you press left and right indicator buttons at the same time again to switch off, either left or right indicator will be flashing. Just cancel it in the normal way.

Line number correct for game version 1.38:
config_lines[328]: "mix flasher4way `lblinker & rblinker | semantical.flasher4way?0`"

UPDATE: Or you can try this way... its doesn't leave an indicator flashing when you switch off the hazard warning lights... most times anyway, as long as you let go of both buttons at the same time.

I use the flappy paddles on my G27 wheel to indicate left/right. joy.b6?0 & joy.b5?0.

Just copy & add your left/right buttons for lines 324/326/328 like i have highlighted below:

config_lines[324]: "mix lblinker `your left button & ! your right button | semantical.lblinker?0`"
config_lines[326]: "mix rblinker `your right button & ! your left button | semantical.rblinker?0`"
config_lines[328]: "mix flasher4way `your left button & your right button | semantical.flasher4way?0`"

And here are my lines 324/326/328 for your reference:

config_lines[324]: "mix lblinker `joy.b6?0 & ! joy.b5?0 | semantical.lblinker?0`"
config_lines[326]: "mix rblinker `joy.b5?0 & ! joy.b6?0 | semantical.rblinker?0`"
config_lines[328]: "mix flasher4way `joy.b6?0 & joy.b5?0 | semantical.flasher4way?0`"
Last edited by JHTrucker on August 2nd, 2020, 9:11 pm, edited 3 times in total.
For best AA results always use latest files.
First post STEP 2 files updated 10/04/2020 viewtopic.php?f=19&t=1000
Additional non standard screen configs to try: viewtopic.php?p=17658#p17658
User avatar
BenganJ
Moderator
Posts: 6601
Joined: December 15th, 2018, 11:54 am
Location: Gothenburg, Sweden

Re: Controls.sii file changes to enhance the trucking experience.

Post by BenganJ » July 29th, 2020, 7:41 pm

@JHTrucker

Damn, you are creative! Thanks for this too! :victory:
---------------------------------------------------------------------------------------------------------------------------------------------
System: Windows 8.1
Processor: Intel Core i7-4790@
Memory: 16GB
Graphics: ASUS GeForce GTX1660Ti
Image
User avatar
JHTrucker
Posts: 665
Joined: February 7th, 2020, 3:19 pm
Location: UK

Re: Controls.sii file changes to enhance the trucking experience.

Post by JHTrucker » August 2nd, 2020, 9:12 pm

@BenganJ - If you used the hazards mod... check the update out.
For best AA results always use latest files.
First post STEP 2 files updated 10/04/2020 viewtopic.php?f=19&t=1000
Additional non standard screen configs to try: viewtopic.php?p=17658#p17658
User avatar
BenganJ
Moderator
Posts: 6601
Joined: December 15th, 2018, 11:54 am
Location: Gothenburg, Sweden

Re: Controls.sii file changes to enhance the trucking experience.

Post by BenganJ » August 2nd, 2020, 9:14 pm

@JHTrucker

Oki!
---------------------------------------------------------------------------------------------------------------------------------------------
System: Windows 8.1
Processor: Intel Core i7-4790@
Memory: 16GB
Graphics: ASUS GeForce GTX1660Ti
Image
Post Reply