Multiple Universal External Cameras v9.0 with look function for 1.38 to 1.50 - Updated 18/05/2024

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

Multiple Universal External Cameras v9.0 with look function for 1.38 to 1.50 - Updated 18/05/2024

Post by JHTrucker » January 11th, 2021, 4:15 pm

Note: This isn't a mod to just drop into your mod manager, you'll also need to follow instructions and edit your controls.sii file.

If you want to have internal & external cameras then try MUC: viewtopic.php?p=46034#p46034
Otherwise read on.

UPDATED 04/02/2021 - Lines 251, 252, 254 & 256 amended and new menu mod v2. What's new? Look here: viewtopic.php?p=34836#p34836
UPDATED 11/02/2021 - Lines 251, 252, 254, 255 & 256 amended - What's new? Look here: viewtopic.php?p=35134#p35134
UPDATED 13/02/2021 - Line 251 amended. Fixed an issue where 'cam 1' was limited to 90 degrees left/right after last update.
UPDATED 01/04/2021 - Just to confirm the below edits and required mod all work on 1.40
UPDATED 19/06/2021 - Re-apply all line edits. New menu mod v3. What's new? Look here: viewtopic.php?p=43489#p43489
UPDATED 16/07/2021 - Lines 173, 177, 178 & 179 amended to prevent possible camera switching issues.
UPDATED 17/07/2021 - Lines 131,132,133,134,177,178,179 & 343 amended. Lines 135 & 180 added. What's new? Look here: viewtopic.php?p=44328#p44328
UPDATED 19/07/2021 - Lines 177 & 250 amended. Fixed mouse not working for cam 1 & 5 when MUEC code disabled in menu and mod removed.
UPDATED 24/08/2021 - Line 243 (headtrpitch) amended & New Menu Mod v5. What's new? Look here: viewtopic.php?p=45647#p45647
UPDATED 10/04/2022 - New menu mod v6 and associated line edits as date highlighted. What's new? Look here: viewtopic.php?p=50466#p50466
UPDATED 17/05/2022 - New menu mods v6.1 (1.38-143) & v7.0 (1.44). What's new? Look here: viewtopic.php?p=50869#p50869
UPDATED 27/06/2022 - Improvements for CAM 1 camera movement with the associated line edits date highlighted. What's new? Look here: viewtopic.php?p=51646#p51646
UPDATED 12/08/2022 - New menu mod v8.0 (1.45). What's new? Look here: viewtopic.php?p=52725#p52725
UPDATED 23/11/2022 - New menu mods v6.2 (1.38-1.43), v7.1 (1.44) & v8.1 (1.45-1.46) and associated line edits as date highlighted. What's new? Look here: viewtopic.php?p=55498#p55498
UPDATED 19/05/2023 - Minor fix. Amended line edits date highlighted (headtron & headtren) and new controls.sii file. What's new? Look here: viewtopic.php?p=58861#p58861
UPDATED 22/05/2023 - Minor improvement for camera selecting. Amended line edits date highlighted (headtren & eyepreset4) and new controls.sii file. What's new? Look here: viewtopic.php?p=58910#p58910
UPDATED 01/12/2023 - New menu mod v8.2 (1.45+) - No actual change from v8.1, only game version reference is now 1.45+
UPDATED 18/05/2024 - New menu mod, v9.0, required to prevent a "crash to desktop" when using game version 1.50

==============================================================================
Confirmed to work for ATS/ETS2 game versions 1.38 to 1.50
The game will crash to desktop due to the new UI in game version 1.51
The Tobii Eye menu file that I need to modify to create the menu is no longer available
from the extracted 1.51 game files.
==============================================================================



If you don't like or want to use the in cab driving view (CAM 1) but find it annoying that the external cameras that SCS provide have no look functionality, then this may be for you. However, CAM 1 can still be used as normal along with these new external cameras.

Position multiple new cameras where you like outside the truck and have the ability to look around as required from that location with or without "steer look". So, for example, you can have a bumper, hood or roof cam just like SCS provide but now you can look left, right & behind.

***New 10/04/2022***
Walk around your truck:
This camera mode allows you to use your analogue controls (steering/accelerator/brake/look) to walk a path around your truck.
See "How to 'Walk Around Your Truck'" section at the bottom of this post.

***New 27/06/2022***
Optional - In the driving seat.
Press 'CAM 1' to toggle look left/right movement control:
Button look - Game standard movement or instant movement with instant re-centre.
Analogue gamepad - Game standard movement or direct movement with auto centre.
If enabled in the line edits "mix eyepause `1`" then instant movement control is turned off when you move the mouse.

***New 10/04/2022***
Optional - Control DEVCAM using your analogue controls, as well as or instead of, the default mouse & keyboard.
See "How to control DEVCAM using your analogue controls" section at the bottom of this post.

Use the attached Menu Mod (select CAM 5, 6, 7 or 8 first), press shift + numlock or shift + 9, to adjust where the camera is located or pick one of the supplied presets and adjust to suit. You can also add presets to one of 3 available buttons, making quick switching possible.
These cameras have collision enabled. Meaning a high up chase camera will duck under bridges as required so you don't loose sight of your truck.

Note: You cannot use this with Tobii Eye as this uses the Tobii Eye menu and variables and will therefore mess up your Tobii Eye setup!!!
VR isn't supported just because I assumed no one would want this for VR.


Demo (17/05/2022) - Ignore the image quality - Game on lowest graphics settings and recorded on old camera phone (720p).


Requirements for use:
Attached Menu Mod and edited controls.sii & config_local.cfg files as detailed below.
At least one of the following:
Keyboard - Instant look left/right/back.
Standard game TrackIR - Look left/right/up/down & move left/right/up/down/forward/backward (TIR x/y/z) when using chase cam's.
Analogue gamepad - look left/right/up/down with auto centre. Note: This works the same as my CAM 1 "Analogue look left/right/up/down auto centre" mod and so you can just apply this mod and its edits without loosing anything.
Mouse only works for the standard SCS cameras, CAM 1 & 2.

Available cameras: ***Amended 22/05/2023***
CAM 1 - Game standard driving view. (Default Keyboard 1 or assign a key/button of your choice)
CAM 2 - Game standard chase view. (Default Keyboard 2 or assign a key/button of your choice)
CAM 3 - Game standard top down view. (Default Keyboard 3 or assign a key/button of your choice)
CAM 4 - Game standard roof view. (Default Keyboard 4 or assign a key/button of your choice)
CAM 5 - New 'Look Behind' view. (Keyboard 5 - Shown as 'complex', see below note)
CAM 6 - New - Assign a preset via the menu. (Keyboard 6 - Shown as 'complex', see below note)
CAM 7 - New - Assign a preset via the menu. (Keyboard 7 - Shown as 'complex', see below note)
CAM 8 - New - Assign a preset via the menu. (Keyboard 8 - Shown as 'complex', see below note)
CAM 9 - Cam Cycle Disabled (Shown as 'complex'). It doesn't work with new cameras.
CAM 'Shift + Keyboard 6' - Game standard Bumper view. (You can't change this!)
CAM 'Shift + Keyboard 7' - Game standard On-Wheel view. (You can't change this!)
CAM 'Shift + Keyboard 8' - Game standard Drive-By view. (You can't change this!)

Note: If required, see "How to assign your own keys/buttons for CAM's 5/6/7/8" at the bottom of this post.

Preset Templates:
Cam 6/7/8 - Adjust Sliders & Save - Template (Origin - ground level in front of truck)
Cam 6/7/8 - Bumper - Look Left/Right 90 Degrees - ATS Template
Cam 6/7/8 - Bumper - Look Left/Right 90 Degrees - ETS2 Template
Cam 6/7/8 - Bumper - Look Left/Right Down The Side - ATS Template
Cam 6/7/8 - Bumper - Look Left/Right Down The Side - ETS2 Template
Cam 6/7/8 - Chase - Far - Template
Cam 6/7/8 - Chase - Far - 'No look left/right height reduction' - Template
Cam 6/7/8 - Chase - Near - Template
Cam 6/7/8 - Chase - Near - Look Left/Right 90 Degrees - Template
Cam 6/7/8 - Chase - Very Far - Template
Cam 6/7/8 - Chase - Very Far & High - Template
Cam 6/7/8 - Chase - Very Far - 'No look left/right height reduction' - Template
Cam 6/7/8 - Chase - Offset Left Side - Template
Cam 6/7/8 - Chase - Offset Right Side - Template
Cam 6/7/8 - Drone - Template
Cam 6/7/8 - Drone - Ultra High - Template
Cam 6/7/8 - Hood - Look Left/Right 90 Degrees - Template
Cam 6/7/8 - Hood - Look Left/Right Down The Side - Template
Cam 6/7/8 - Hood - Look Left/Right Down The Side - Steer Look - Template
Cam 6/7/8 - Look Behind - High - Template
Cam 6/7/8 - Look Behind - Offset Left Side - Template
Cam 6/7/8 - Look Behind - Offset Right Side - Template
Cam 6/7/8 - Lean Out Drivers Window - LHD Template
Cam 6/7/8 - Lean Out Drivers Window - RHD Template
Cam 6/7/8 - Refuel - LHD Template
Cam 6/7/8 - Refuel - RHD Template
Cam 6/7/8 - Roof - Look Left/Right Down The Side - Template
Cam 6/7/8 - Roof - Look Left/Right Down The Side - Steer Look - Template
Cam 6/7/8 - Roof - Look Left/Right Straight Back - Template
Cam 6/7/8 - Walk Around Truck - xHD xxx - Far Distance ***New 10/04/2022***
Cam 6/7/8 - Walk Around Truck - xHD xxx - Near Distance ***New 10/04/2022***
Cam 6/7/8 - Walk Around Truck - xHD xxx - Offset - Far Distance ***New 10/04/2022***
Cam 6/7/8 - Walk Around Truck - xHD xxx - Offset - Near Distance ***New 10/04/2022***
Cam 6/7/8 - Walk Facing Truck - xHD xxx - Far Distance ***New 23/11/2022***
Cam 6/7/8 - Walk Facing Truck - xHD xxx - Near Distance ***New 23/11/2022***
Cam 6/7/8 - Walk Facing Truck - xHD xxx - Offset - Far Distance ***New 23/11/2022***
Cam 6/7/8 - Walk Facing Truck - xHD xxx - Offset - Near Distance ***New 23/11/2022***
Note 1: 'xHD' is shown as LHR or RHD in menu - 'xxx' is shown as ATS or ETS in menu - Total of 24 'walk' presets.
Note 2: 'Walk Around Truck' & 'Walk Facing Truck' aren't templates you can make changes to, like the other presets, they're camera modes only.
Note 3: 'Offset' versions allow you to stand further away from your truck and trailer(s).
Note 4: 'Walk Around Truck' presets will keep your head facing back down the side of the truck as you turn your steering to walk around it.
Note 5: 'Walk Facing Truck' presets will keep your head facing the truck as you turn your steering to walk around it.

You can create your own presets as required, details available at the bottom of this post.
Note: The preset templates supplied are considered general, I used an ATS Mack Anthem to make them. You may want to copy and tweak the bumper/hood/roof templates to better suit the truck you use - Then add as a new preset "Hood - VNL" for example.
ETS2 can possibly use the same preset across all trucks whereas ATS trucks will require different bumper/hood/roof presets to suit the very different shaped trucks.

Example Presets (supplied in "eye_tracking_presets" folder):
Bumper - Kenworth W900
Hood - ETS LHD ***New 10/04/2022***
Hood - ETS RHD ***New 10/04/2022***
Hood - Freightliner Cascadia 2019
Hood - Kenworth T680
Hood - Kenworth W900
Hood - Peterbilt 389
Hood - Westernstar 49x
Roof - Peterbilt 389
Roof - Kenworth W900

Example W900 Hood camera looking around - Use analogue controller thumbstick / Look buttons / TrackIR
Image

In game menu - Select CAM 5, 6, 7 or 8 first and then press shift + numlock or shift + 9 to open.
Image

The menu mod is in English only.
Here's what each option does from top to bottom - if you need to translate them.

Enable code (Tick) - Disable (Untick) then remove this mod.
***Only untick to disable code & remove menu mod if you require a mod free profile with game standard cameras***

Steer Look : 1.00=90 degrees Left / Right <-- Use with a steering wheel for best results.

Move Left / Right : Far Left=0.0 - Centre=2.5 - Far Right=5.0

Move Up / Down : Just above ground=0.0 - Very high=5.0

Move Forward / Backward : In Front of Truck=0.0 - Far behind=5.0

Pitch : 90 degrees Down=0.0 - Level=2.5 - 90 degrees Up=5.0

Rotate : 180 degrees Left=1.0 - 0 degrees Centre=3.0 - 180 degrees Right=5.0

Auto move camera position when looking left / right - Useful for chase cam views to get closer to truck at junctions.
***See note below for extra info on 'Auto move camera' option.***

Camera Look movement - Half (untick) - Full (tick) : 'Half' is useful to prevent the camera rotating back through the truck (eg. Bumper).
***See note below for extra info on 'Look Movement' option.***

Setup - You need to do these 3 steps:
1 - Add the correct menu mod for your game version.
2 - Edit your controls.sii file or use the supplied one.
3 - Edit your config_local.cfg file.

***New 18/05/2024***
Add the mod "Multiple Universal External Cameras.scs" to your mod folder - But you know this already!
Multiple Universal External Cameras v6.2.scs for game version 1.38-1.43
Multiple Universal External Cameras v7.1.scs for game version 1.44
Multiple Universal External Cameras v8.21.scs for game version 1.45-1.49
Multiple Universal External Cameras v9.0.scs for game version 1.50
(All mods have the exact same functions, just use the correct one for your game version).
Multiple Universal External Cameras v6.2, v7.1, v8.21 & v9.0.zip --> https://mega.nz/file/GlwQ2ZJb#UIGC8vJdm ... mdBpJdO4JY

Put the supplied "eye_tracking_presets" folder into your games home directory (the one with your MOD folder).
Example - C:\Users\TEST\Documents\American Truck Simulator\MOD
Example - C:\Users\TEST\Documents\American Truck Simulator\eye_tracking_presets\xxxxxx.sii etc (all camera presets are stored here).
This folder is only created by the game if you have a Tobii Eye device. If you have and don't use Tobii Eye now then just rename your original folder to "OLD eye_tracking_presets" to avoid problems.

***New 22/05/2023***
This supplied 'controls.sii' file is a game default file with all current MUEC line edits applied to it.
By using this 'controls.sii' file you'll need to re-setup all your game controls for buttons, keys, wheel, pedals, shifter & Force Feedback settings etc.
Or don't use this file and apply the MUEC line edits to your 'controls.sii' file instead. The choice is yours!
controls 22-05-2023 --> https://mega.nz/file/W8Ql0bAB#X0R53492I ... 9_k_IsaSoI
NOTE: Read the Readme.txt file within the zip for further details.

Here are the required edits for your config_local.cfg file that's in the same folder as your controls.sii file. Use notepad/wordpad etc:
(American/Euro Truck Simulator 2\profiles\Your Profile\config_local.cfg)

uset g_eye_preset_5 "g:tobii_head_only"

Set 'uset g_eye_preset_4' to setup your preferred movement control for CAM 1:***Amended 27/06/2022***
Setup when using TrackIR:
uset g_eye_preset_4 "g:tobii_4c"
OR
Setup when using analogue controller thumbstick look, button look or mouse look that only has game standard look movement:
uset g_eye_preset_4 "g:default"
OR
Setup when using analogue controller thumbstick look or button look:
uset g_eye_preset_4 "g:tobii_4c"
Press 'CAM 1' to toggle between game standard look control and auto centre.

Set these for default CAM 6/7/8 cameras (you can change these in the MUEC menu):
uset g_eye_preset_3 "g:ext_drone_uhigh"
uset g_eye_preset_2 "g:ext_chase_near"
uset g_eye_preset_1 "g:ext_hood"

Close & save.

Here are the required manual edits for your controls.sii file:
Make a backup copy of controls.sii file for safe keeping, just in case.
(American/Euro Truck Simulator 2\profiles\Your Profile\controls.sii)

Note: The line numbers are different between game versions. The numbers shown are from my 1.44 version, yours may be different.
Just match the "mix name" and paste the highlighted part into the correct line number to suit your game version.

config_lines[191]: "mix cam1 `keyboard.key1?0 | semantical.cam1?0`" <-- This is game default

config_lines[192]: "mix cam2 `keyboard.key2?0 | semantical.cam2?0`" <-- This is game default

config_lines[193]: "mix cam3 `keyboard.key3?0 | semantical.cam3?0`" <-- This is game default

config_lines[194]: "mix cam4 `keyboard.key4?0 | semantical.cam4?0`" <-- This is game default

config_lines[195]: "mix cam5 `((eyepreset1?0 | eyepreset2?0 | eyepreset3?0 | eyepreset5?0) * c_et_hv_mode * c_et_head) + (keyboard.key5?0 * ! c_et_head)`"

config_lines[196]: "mix cam6 `keyboard.key6?0 * ! c_et_head | keyboard.key6?0 * sign(keyboard.lshift?0 + keyboard.rshift?0) * c_et_head`"

config_lines[197]: "mix cam7 `keyboard.key7?0 * ! c_et_head | keyboard.key7?0 * sign(keyboard.lshift?0 + keyboard.rshift?0) * c_et_head`"

config_lines[198]: "mix cam8 `keyboard.key8?0 * ! c_et_head | keyboard.key8?0 * sign(keyboard.lshift?0 + keyboard.rshift?0) * c_et_head`"

config_lines[199]: "mix camcycle `keyboard.key9?0 * ! c_et_head`"

***Amended 19/05/2023***
config_lines[278]: "mix headtron `((c_et_hv_mode | (! sign(c_et_yawsc) * ! sign(c_et_pitchsc) * ! sign(c_etwm_yawsc) * ! sign(c_etwm_pitsc) * sign(c_et_hv_exp) * ! c_et_hv_mode * c_ht_on)) * c_et_head) | trackiron | ! sign(abs(c_et_gv_ext - 0.123456)) * c_et_head`"

***Amended 23/11/2022***
config_lines[279]: "mix headtryaw `((((deadzone(steering, c_steer_dz ) * (c_et_gv_res * 0.5)) * c_et_hv_mode * ! lookpos1?0 * ! lookpos2?0 * ! lookpos3?0 * ! lookpos4?0 * ! lookpos5?0 * ! lookleft?0 * ! lookright?0) + (((((-c_et_hv_exp + 3.0) * 0.5 * ! lookpos1?0 * sign(! lookleft?0 + ! lookright?0)) + sign(lookpos1?0 + (lookleft?0 * lookright?0)) + (0.5 * lookpos5?0) + (0.25 * lookpos3?0 + (0.25 * lookpos3?0 * lookpos5?0 * c_et_pos)) + (0.375 * lookleft?0) + (-0.5 * lookpos4?0) + (-0.25 * lookpos2?0 - (0.25 * lookpos2?0 * lookpos4?0 * c_et_pos)) + (-0.375 * lookright?0)) * c_et_hv_mode) + (((0.375 * lookleft?0) + (0.5 * lookpos5?0) + (0.25 * lookpos3?0) + (-0.375 * lookright?0) + (-0.5 * lookpos4?0) + (-0.25 * lookpos2?0) + (lookleft?0 * lookright?0)) * ! sign(c_et_yawsc) * ! sign(c_et_pitchsc) * ! sign(c_etwm_yawsc) * ! c_et_hv_mode * ! trackiron * c_et_head) + (clamp(deadzone(pow(-sel(c_jilooklr, -j_look_lr?0, j_look_lr?0), 3), c_lr_dz) * (0.5 + (0.5 * c_et_pos)), -0.5 - (0.5 * c_et_pos), 0.5 + (0.5 * c_et_pos)) * ! lookpos1?0 * sign(! lookleft?0 + ! lookright?0) * ! trackiron * (1.0 - 0.5 * ! abs(sign(c_et_hv_exp - c_et_hv_mode)))) + clamp(sel(trackiron * ! lookpos1?0 * sign(! lookleft?0 + ! lookright?0), trackiryaw, 0), -0.5 - (0.5 * c_et_pos), 0.5 + (0.5 * c_et_pos))) * (1.0 - abs((steering * (c_et_gv_res * (0.5 + 0.5 * ! c_et_pos))) * c_et_hv_mode * ! lookpos1?0 * ! lookpos2?0 * ! lookpos3?0 * ! lookpos4?0 * ! lookpos5?0 * ! lookleft?0 * ! lookright?0 * (1.0 - 0.5 * ! abs(sign(c_et_hv_exp - 1)))))) * sign(abs(c_et_gv_ext - 0.123456)) * c_et_head) + ((sel(trackiron, trackiryaw, 0) + (deadzone(pow(-sel(c_jilooklr, -j_look_lr?0, j_look_lr?0), 3), c_lr_dz))) * ! c_et_head) + (((sel(trackiron, trackiryaw, 0)) + (sign(! c_et_pos - 0.5) + (((0.5 - c_et_pos) + (clamp(-msteering, -0.375 * ! c_et_pos, 0.375 * c_et_pos) * 2.667)) * c_et_hv_res) + deadzone(-sel(c_jilooklr, -j_look_lr?0, j_look_lr?0), c_lr_dz) + (((sign(lookpos3) * 0.85) + (sign(lookpos5) * 0.35) + (sign(lookleft?0) * 0.35)) + -((sign(lookpos4) * 0.35) + (sign(lookpos2) * 0.85) + (sign(lookright?0) * 0.35))))) * ! sign(abs(c_et_gv_ext - 0.123456)) * sign(abs(c_et_pitchsc + 100.0)) * c_et_head)`"

***Amended 27/06/2022***
config_lines[280]: "mix headtrpitch `(((((-0.1 * sign(lookpos1?0 + (lookleft?0 * lookright?0))) + (((c_etwm_pitsc - ((c_etwm_pitsc - 2.28) * abs(headtryaw)) * c_et_hv_ac * ! abs(sign(c_et_hv_exp - 3.0))) - 2.5) * 0.2) * ! lookpos1?0 * sign(! lookleft?0 + ! lookright?0)) * c_et_hv_mode) + (deadzone(pow(-sel(c_jilookud, -j_look_ud?0, j_look_ud?0), 3), (c_ud_dz * ! c_et_hv_ac) + ((c_etwm_yawsc * 0.1) * c_et_hv_ac)) * (0.2 + (0.8 * c_et_pos * ! c_et_hv_ac * sign(4.0 - ! abs(sign(deadzone(c_et_yawsc - 2.5, 0.2))) - ! sign(deadzone(c_et_pitchsc, 0.4)) - ! sign(deadzone(c_etwm_yawsc, 0.99)) - ! abs(sign(c_et_hv_exp - 3.0))))) * ! lookpos1?0 * sign(! lookleft?0 + ! lookright?0) * ! trackiron) + clamp(sel(trackiron * ! lookpos1?0 * sign(! lookleft?0 + ! lookright?0), trackirpitch, 0), -0.25 - (0.75 * c_et_pos * sign(4.0 - ! abs(sign(deadzone(c_et_yawsc - 2.5, 0.2))) - ! sign(deadzone(c_et_pitchsc, 0.4)) - ! sign(deadzone(c_etwm_yawsc, 0.99)) - ! abs(sign(c_et_hv_exp - 3.0)))), 0.25 + (0.75 * c_et_pos * sign(4.0 - ! abs(sign(deadzone(c_et_yawsc - 2.5, 0.2))) - ! sign(deadzone(c_et_pitchsc, 0.4)) - ! sign(deadzone(c_etwm_yawsc, 0.99)) - ! abs(sign(c_et_hv_exp - 3.0)))))) * sign(abs(c_et_gv_ext - 0.123456)) * c_et_head) + ((sel(trackiron, trackirpitch, 0) + (deadzone(pow(-sel(c_jilookud, -j_look_ud?0, j_look_ud?0), 3), c_ud_dz))) * ! c_et_head) + (((sel(trackiron, trackirpitch, 0)) + ((deadzone(-sel(c_jilookud, -j_look_ud?0, j_look_ud?0), c_ud_dz) * 0.5) - ((sign(lookpos5) * 0.05) + (sign(lookpos4) * 0.05)))) * ! sign(abs(c_et_gv_ext - 0.123456)) * sign(abs(c_et_pitchsc + 100.0)) * c_et_head) + (! sign(abs(c_et_pitchsc + 100.0)) * -0.5 * c_et_head)`"

***New 10/04/2022***
config_lines[281]: "mix headtrroll `sel(trackiron & c_ht_roll, trackirroll, 0) * sign(sign(abs(c_et_pitchsc + 100.0)) + ! c_et_head)`"

***Amended 27/06/2022***
config_lines[282]: "mix headtrx `((((((0.0 * sign(lookpos1?0 + (lookleft?0 * lookright?0))) + ((c_et_yawsc * 3.0) - 7.5) * ! lookpos1?0 * sign(! lookleft?0 + ! lookright?0)) * c_et_hv_mode) + ((clamp(headtryaw * (1.0 + (c_etwm_yawsc * 0.1)), -0.5, 0.5) * (c_etwm_yawsc * 10)) * (1.0 - abs(deadzone(headtryaw, 0.5))) * c_et_hv_ac) * ! lookpos1?0 * sign(! lookleft?0 + ! lookright?0)) * sign(c_et_hv_exp - 1) + (((((-headtryaw + 1.0) * 25.0) * c_et_hv_ac) * ! lookpos1?0 * sign(! lookleft?0 + ! lookright?0)) * ! sign(c_et_hv_exp - 1)) + (clamp(sel(trackiron, trackirx, 0), -0.1, 0.1) * ! c_et_hv_mode) + (clamp(sel(trackiron, trackirx, 0), -1.0, 1.0) * c_etwm_yawsc * c_et_hv_mode * c_et_hv_ac * ! lookpos1?0 * sign(! lookleft?0 + ! lookright?0) * ! abs(sign(c_et_hv_exp - 3))) + (-((abs(headtryaw) - 0.4) * 3.0) * sign(deadzone(headtryaw, 0.4)) * (c_et_pos * ! c_et_hv_ac * ! abs(sign(deadzone(c_et_yawsc - 2.5, 0.2))) * ! sign(deadzone(c_et_pitchsc, 0.4)) * ! sign(deadzone(c_etwm_yawsc, 0.99)) * ! abs(sign(c_et_hv_exp - 3.0)) * ! lookpos1?0 * sign(! lookleft?0 + ! lookright?0)))) * sign(abs(c_et_gv_ext - 0.123456)) * c_et_head) + (clamp(sel(trackiron, trackirx, 0), -0.1, 0.1) * ! c_et_head) + (((((-(((sign(msteering + abs(msteering))) * abs((0 - (abs(deadzone(clamp(msteering * 4, -1.0, 1.0), 0.5)))) * 3.9 * (1 + (dclutch * 2.4))) - (1.6 * (1 + (dclutch * 3)))) * -1)) * ! c_et_pos) + (((((sign(msteering - abs(msteering))) * abs((0 - (abs(deadzone(clamp(msteering * 4, -1.0, 1.0), 0.5)))) * 3.9 * (1 + (dclutch * 2.4))) + (1.6 * (1 + (dclutch * 3)))))) * c_et_pos))) * ! sign(abs(c_et_gv_ext - 0.123456)) * sign(abs(c_et_pitchsc + 100.0)) * c_et_head)`"

***Amended 27/06/2022***
config_lines[283]: "mix headtry `(((((2.0 * sign(lookpos1?0 + (lookleft?0 * lookright?0))) + ((((c_et_pitchsc - ((c_et_pitchsc - 0.4) * abs(headtryaw)) * c_et_hv_ac * ! abs(sign(c_et_hv_exp - 3.0))) + clamp(sel(trackiron, trackiry, 0), -c_et_pitchsc * (1.0 - abs(headtryaw * abs(sign(c_et_hv_exp - 1)))), c_et_pitchsc * (1.0 - abs(headtryaw * abs(sign(c_et_hv_exp - 1))))) * c_et_hv_mode * c_et_hv_ac) * 10.0) - 1.5) * ! lookpos1?0 * sign(! lookleft?0 + ! lookright?0)) * c_et_hv_mode) + clamp(sel(trackiron, trackiry, 0), -0.05, 0.05) * ! c_et_hv_mode) * sign(abs(c_et_gv_ext - 0.123456)) * c_et_head) + (clamp(sel(trackiron, trackiry, 0), -0.05, 0.05) * ! c_et_head) + ((-0.8 - (0.8 * (normalize(sel(c_jzthrottle, sel(c_jithrottle, -j_throttle?0, j_throttle?0), sel(c_jithrottle, j_throttle?1 * -0.5 + 0.5, j_throttle?-1 * 0.5 + 0.5)), c_throt_dz))) + clamp(sel(trackiron, trackiry, 0), -0.8, 0.1)) * ! sign(abs(c_et_gv_ext - 0.123456)) * sign(abs(c_et_pitchsc + 100.0)) * c_et_head) + (! sign(abs(c_et_pitchsc + 100.0)) * -10 * c_et_head)`"

***Amended 27/06/2022***
config_lines[284]: "mix headtrz `(((((-7.5 * sign(lookpos1?0 + (lookleft?0 * lookright?0))) + (((c_etwm_yawsc * 10.0) - 7.5) * (1.0 - (abs(clamp(deadzone(-sel(c_jilookud, -j_look_ud?0, j_look_ud?0), c_ud_dz * 2), -(1.0 - abs(headtryaw)), 0.0)) * c_et_hv_ac * ! trackiron * sign(c_et_hv_exp - 1)) + (clamp(sel(trackiron, trackirz, 0), -1.0, 0.5) * c_et_hv_ac)) * ! lookpos1?0 * sign(! lookleft?0 + ! lookright?0)) * abs(clamp(abs((headtryaw * 2) * c_et_hv_ac * sign(c_et_hv_exp - 1)), -0.0, 1.0) - 1)) * c_et_hv_mode) + (clamp(sel(trackiron, trackirz, 0), -0.2, 0.05) * ! c_et_hv_mode) - ((abs(clamp(deadzone(headtryaw, 0.5), -0.93, 0.93)) * 11) * c_et_hv_ac * sign(c_et_hv_exp - 1) * ! lookpos1?0 * sign(! lookleft?0 + ! lookright?0) * ! lookpos2?0 * ! lookpos3?0 * ! lookpos4?0 * ! lookpos5?0) + abs(((((-headtryaw + 1.0) * 15.0) * c_et_hv_ac) * ! lookpos1?0 * sign(! lookleft?0 + ! lookright?0)) * ! sign(c_et_hv_exp - 1)) + (-abs(headtryaw) * 0.5 * (c_et_pos * ! c_et_hv_ac * ! abs(sign(deadzone(c_et_yawsc - 2.5, 0.2))) * ! sign(deadzone(c_et_pitchsc, 0.4)) * ! sign(deadzone(c_etwm_yawsc, 0.99)) * ! abs(sign(c_et_hv_exp - 3.0)) * ! lookpos1?0 * sign(! lookleft?0 + ! lookright?0)))) * sign(abs(c_et_gv_ext - 0.123456)) * c_et_head) + (clamp(sel(trackiron, trackirz, 0), -0.2, 0.05) * ! c_et_head) + (((0.0 - abs(clamp(-msteering * 2, -0.25 * ! c_et_pos, 0.25 * c_et_pos) * ((14 - (5.5 * c_et_hv_ac)) + (dclutch * 50 * (abs(clamp(msteering * 2, -0.375, 0.375)) - abs(deadzone(clamp(msteering * 2, -0.625, 0.625), 0.375)))))) + abs(deadzone(clamp(-msteering * 1.25, -1.0 * ! c_et_pos, 1.0 * c_et_pos), 0.75) * (3.75 - (1.46 * c_et_hv_ac))) + abs(deadzone(msteering, (0.25 * (sign(msteering - (msteering * 2) + abs(msteering))) * c_et_pos) + (0.25 * (-sign(msteering - (msteering * 2) - abs(msteering))) * ! c_et_pos)) * (8 + (c_et_hv_end * 100))))) * ! sign(abs(c_et_gv_ext - 0.123456)) * sign(abs(c_et_pitchsc + 100.0)) * c_et_head)`"

***New 27/06/2022***
config_lines[285]: "mix headtrwmon `trackiron`"

***New 10/04/2022***
config_lines[295]: "mix steering `(dsteering - (pow(normalize(abs(sel(c_jisteer, -j_steer?0, j_steer?0)), c_steer_dz), (1.0 + c_steer_func * 0.5)) * sign(sel(c_jisteer, -j_steer?0, j_steer?0))) - semantical.steering?0) * sign(abs(c_et_gv_ext - 0.123456) + ! c_et_head)`"

***New 10/04/2022***
config_lines[296]: "mix msteering `((-mouse.rel_position.x?0 * c_msens) * sign(abs(c_et_gv_ext - 0.123456) + ! c_et_head)) + (-sel(c_jisteer, -j_steer?0, j_steer?0) * ! sign(abs(c_et_gv_ext - 0.123456)) * c_et_head)`"

***New 10/04/2022***
config_lines[300]: "mix aforward `(normalize(sel(c_jzthrottle, sel(c_jithrottle, -j_throttle?0, j_throttle?0), sel(c_jithrottle, j_throttle?1 * -0.5 + 0.5, j_throttle?-1 * 0.5 + 0.5)), c_throt_dz) + semantical.aforward?0) * sign(abs(c_et_gv_ext - 0.123456) + ! c_et_head)`"

***New 10/04/2022***
config_lines[301]: "mix abackward `(normalize(sel(c_jzbrake, sel(c_jibrake, -j_brake?0, j_brake?0), sel(c_jibrake, j_brake?1 * -0.5 + 0.5, j_brake?-1 * 0.5 + 0.5)), c_brake_dz)) * sign(abs(c_et_gv_ext - 0.123456) + ! c_et_head)`"

***New 10/04/2022***
config_lines[304]: "mix dclutch `((c_et_hv_sta * 15) + normalize(sel(c_jzbrake, sel(c_jibrake, -j_brake?0, j_brake?0), sel(c_jibrake, j_brake?1 * -0.5 + 0.5, j_brake?-1 * 0.5 + 0.5)), c_brake_dz)) * 1.5 * ! sign(abs(c_et_gv_ext - 0.123456)) * c_et_head`"
OR
Alternative line edit that splits the 'walk away' movement (brake pedal/thumbstick) into 4 steps instead of a continuous, but twitchy, movement.
config_lines[304]: "mix dclutch `((c_et_hv_sta * 15) + (sign(deadzone(normalize(sel(c_jzbrake, sel(c_jibrake, -j_brake?0, j_brake?0), sel(c_jibrake, j_brake?1 * -0.5 + 0.5, j_brake?-1 * 0.5 + 0.5)), c_brake_dz), 0.25)) * 0.25) + (sign(deadzone(normalize(sel(c_jzbrake, sel(c_jibrake, -j_brake?0, j_brake?0), sel(c_jibrake, j_brake?1 * -0.5 + 0.5, j_brake?-1 * 0.5 + 0.5)), c_brake_dz), 0.5)) * 0.25) + (sign(deadzone(normalize(sel(c_jzbrake, sel(c_jibrake, -j_brake?0, j_brake?0), sel(c_jibrake, j_brake?1 * -0.5 + 0.5, j_brake?-1 * 0.5 + 0.5)), c_brake_dz), 0.75)) * 0.25) + (sign(deadzone(normalize(sel(c_jzbrake, sel(c_jibrake, -j_brake?0, j_brake?0), sel(c_jibrake, j_brake?1 * -0.5 + 0.5, j_brake?-1 * 0.5 + 0.5)), c_brake_dz), 0.95)) * 0.25)) * 1.5 * ! sign(abs(c_et_gv_ext - 0.123456)) * c_et_head`"

***New 10/04/2022***
config_lines[305]: "mix clutch `(normalize(sel(c_jzclutch, sel(c_jiclutch, -j_clutch?0, j_clutch?0), sel(c_jiclutch, j_clutch?1 * -0.5 + 0.5, j_clutch?-1 * 0.5 + 0.5)), c_clutch_dz) + semantical.clutch?0) + ! sign(abs(c_et_gv_ext - 0.123456)) * c_et_head`"

***Amended 10/04/2022***
config_lines[379]: "mix eyecfg `(modifier(shift_only, keyboard.key9?0) | modifier(shift_only, keyboard.numlock?0)) * c_et_hv_mode * sign(sign(abs(c_et_gv_ext - 0.123456)) + sign(abs(c_et_pitchsc + 100.0))) * c_et_head | (modifier(shift_only, keyboard.key9?0) | modifier(shift_only, keyboard.numlock?0)) * ! c_et_head`"

***Amended 22/05/2023***
config_lines[507]: "mix headtren `((cam1?0 | sign(abs(mouse.rel_position.x?0)) * c_ht_on * eyepause?0) * ! sign(c_et_yawsc) * ! sign(c_et_pitchsc) * ! sign(c_etwm_yawsc) * ! c_et_hv_mode) * ! trackiron * c_et_head | cam1?0 * ! c_ht_on * trackiron * c_et_head`"

***New 27/06/2022***
config_lines[509]: "mix eyepause `0`" <-- Allow button toggle to switch CAM 1 game standard look control and auto centre.
OR
config_lines[509]: "mix eyepause `1`" <-- Allow above toggle and moving the mouse to switch CAM 1 from auto centre to game standard look control.
OR
config_lines[509]: "mix eyepause `1`" <-- If using TrackIR, set this to 1 to ensure CAM 1 always has mouse movement if TrackIR is turned off during game play.

config_lines[510]: "mix eyepreset1 `keyboard.key6?0 * ! sign(keyboard.lshift?0 + keyboard.rshift?0) * c_et_head`"

config_lines[511]: "mix eyepreset2 `keyboard.key7?0 * ! sign(keyboard.lshift?0 + keyboard.rshift?0) * c_et_head`"

config_lines[512]: "mix eyepreset3 `keyboard.key8?0 * ! sign(keyboard.lshift?0 + keyboard.rshift?0) * c_et_head`"

***Amended 22/05/2023***
config_lines[513]: "mix eyepreset4 `(cam1?0 | cam2?0 | cam3?0 | cam4?0 | (sign(abs(mouse.rel_position.x?0)) * c_ht_on * eyepause?0 * ! sign(c_et_yawsc) * ! sign(c_et_pitchsc) * ! sign(c_etwm_yawsc) * ! c_et_hv_mode * ! trackiron) | (keyboard.key6?0| keyboard.key7?0 | keyboard.key8?0) * sign(keyboard.lshift?0 + keyboard.rshift?0) | cam0?0 * sign(abs(c_et_gv_ext - 0.123456))) * c_et_head`"

config_lines[514]: "mix eyepreset5 `keyboard.key5?0 * c_et_head`"

Close & save.

To use keyboard look functions:
In the games Keys Menu, assign your look keys for these actions (if required):
Look Left (Default Number Pad /) = To Look 68 Degrees Left ***New 27/06/2022***
Look Right (Default Number Pad *) = To Look 68 Degrees Right ***New 27/06/2022***
Look Left & Look Right = Look Behind ***New 27/06/2022***
Interior Look Forward (Default Number pad 5) = Look Behind
Interior Look Up Left (Default Number pad 7) = Look 45 Degrees Left
Interior Look Left (Default Number pad 4) = Look 90 Degrees Left
Interior Look Up Right (Default Number pad 9) = Look 45 Degrees Right
Interior Look Right (Default Number pad 6) = Look 90 Degrees Right
Note: The look view is instant and you must press & hold the button. Letting go of the button will instantly centre the view.
Note 2: In the driving seat (LHD only) - Pressing 'Look Left' & 'Look Right' buttons together will instant look back out of the drivers window. ***New 27/06/2022***
Note 3: Yes you can also assign game pad buttons instead of using the keyboard to look.

To use analogue look functions:
Setup controller as normal in game, like so:
OPTIONS - CONTROLLERS - Keyboard+Controller
Pick your "Look up/down axis" & "Look left/right axis"
Adjust dead zones & axis mode as required.

NOTE: Don't change any key bindings in the game menu's that state "COMPLEX".
The above edits are the reason those are "complex".

Don't click 'Reset to default' at the bottom of the keys/buttons & controller menus as that will remove the ECC line edits!
You can click 'Force Feedback - Reset to defaults' if required.


That's it, go try it out.

In the driving screen you just change camera views as normal (keys 1 to 8).
You have 4 new camera views assigned to keys 5, 6, 7 & 8 for quick switching. When using CAM 5, 6, 7 or 8 you can also just open the Menu mod, shift + numlock or shift + 9, and select from the main preset list (top right) a view you want to use temporarily, close menu (esc), driving screen will change and stay on that view until you change cameras again.

TIP: Re-open the saved control.sii file before running the game for the first time. This prevents the game resetting your controls.sii file if you made an error.
If the new cameras don't work then open the console, if you see one of the above lines in red text, you need to check that line again for a typo or a bad copy/paste. Save controls.sii but don't close then run game again.
Once you are happy all is working as intended you can keep the controls.sii file closed.
Here's an example of an error in line "mix headtrx `........ as indicated in the red box. The green box is how it should look when correct.
Image
Example errors in your game.log.txt file and how to fix them:
This error will prevent MUEC from working all together. It's caused by missing a " from the end of one of the line edits. Be careful when copy/pasting as this error can cause the game to reset the whole file back to game defaults.
00:00:04.454 : <ERROR> [unit] File '<C:/Users/TEST/Documents/American Truck Simulator | /home>/profiles/xxxx/controls.sii', line 519:
00:00:04.454 : <ERROR> Expecting string value, found '"'
00:00:04.454 : <ERROR> load_unit_tree() - Failed to load unit tree from file (/home/profiles/xxxx/controls.sii)

To locate the problem subtract 6 from the line number stated. For example: 519-6=513
So the error is caused by the line starting "config_lines[513]:..."
Re-copy/paste the matching "mix name..." line edit from your line 513 into your controls.sii file.

This error will allow some MUEC functions to work but the MUEC function associated to this line won't. The game will reset this line to game default.
00:00:04.453 : <ERROR> [inp] line "mix name...`" is malformed
Re-copy/paste the matching "mix name..." line edit into your controls.sii file.

==========================================================================================

Note: 'Auto move camera position when looking left / right'
When using any 'chase cam' your height and pitch will automatically reduce as you turn left/right until you are 180 degrees and facing your truck.
To disable this 'auto reduce height/pitch function', if required, for your 'preset chase cam', set it's 'camera rotation' from 3.00 (straight ahead) to 3.01 (almost straight ahead). Then a high up chase cam will always stay high up when turning the view.

Note: 'Look Movement' Half (90 degrees left/right) or Full (180 degrees left/right).
If you don't want the camera to rotate through the truck, for example 'lean out' or 'bumper' cams, then set to 'Half'.
Using 'Full' with Hood & Roof cams will rotate to look down the side of your truck if the camera is placed in the truck cab area and this strict criteria is followed:
Move Left / Right Slider = 2.31 to 2.69 (centre of truck area - centre varies per truck)
Move Up / Down Slider = 0.00 to 0.40 (ground to just above general roof height)
Move Forward / Backward = 0.00 to 0.99 (in front of the truck to approx back of cab area)
Camera Rotate = 3.00 (straight ahead only)
Auto Move - Untick
Look Movement - Tick
Any values outside of the above will disable this 'look around the side of truck' option.

==========================================================================================

How to add your own preset:
Select CAM 5, 6, 7 or 8 first, then open the Menu Mod, pick a preset from the top right list that matches the type of camera you want to make or pick 'Cam 6/7/8 Template' (ground level in front of truck) and use the sliders to adjust where you want the camera to be located. Check how it looks (press esc) but don't change cameras or you'll lose your settings! Just go back to the menu to make further adjustments until you are happy.

Where you see 'Custom' (after positioning your camera) on the menu top preset box, click '+' then type your preset name in the box and press 'enter'.
If you type the same name as an existing preset you can overwrite it if required.
You can also delete presets. On the top preset box, click 'x' and the currently displayed preset will be deleted.
Note: You can't delete or change the mod standard presets, 'Cam 1 - Mouse & Keyboard (Don't Use) / Cam 1 - TrackIR & Analogue Controller (Don't Use) / Cam 5 only (Don't Use)' & 'Cam 6/7/8 - Templates'.
All presets created are stored in the games 'eye_tracking_presets' folder.
The preset lists have all 'templates' listed first followed by:
"Templates above ---^^^ or User created presets below ---vvv"
and then user created presets.

Your new preset is now selectable from the Cam 6, 7 & 8 drop down lists.
Just repeat the above for other presets you make.

See this post for extra help to setup your camera presets: viewtopic.php?p=64510#p64510

==========================================================================================

How to 'Walk Around Your Truck': ***New 10/04/2022***
Add one of the 'Walk Around Your Truck' presets to CAM 6, CAM 7 or CAM 8 in the menu.
Select that 'Walk Around Your Truck' CAM to 'Walk Around Your Truck'.

Requires:
Setup your devices in games controls menu first.
Analogue Steer (Wheel / Thumbstick / Joystick) to walk around your truck
Analogue Accelerator (Pedal / Thumbstick / Trigger) to crouch beside your truck
Analogue Brake (Pedal / Thumbstick / Trigger) to stand back from your truck
Analogue Look Left/Right/Up/Down (Thumbstick / Joystick) to look Left/Right/Up/Down
or
TrackIR to look Left/Right/Up/Down/Crouch/Tip toes

This won't work, and can't be made to work, with mouse & keyboard only as they are digital and we need analogue inputs.

'Walking' works best when using a wheel as you can hold your position much easier than you can when using a gamepad thumbstick for steering.

Note: Your truck steering/accelerator/brake/clutch are all disabled to prevent your truck moving when using those same controls for 'walking'.

Walking movement limits:
The yellow line represents the 'walk' path around the truck.
Outside the drivers door (LHD or RHD) is the start point, when your steering is centered. Use your steering wheel/thumbstick/joystick to 'walk' around the path.
The blue line represents the path as you move away from your truck, by pressing your brake pedal/thumbstick/trigger.
Image
You can look around by using headtracking/analogue look left/right/up/down.
You can therefore refuel whilst stood next to the trucks tank or attach/detach your trailer.
SCS don't provide any further gameplay elements and so you'll have to pretend you are doing pre-delivery safety checks etc.

Note 1: If your brake pedal has a "dirty pot" then the 'move away' movement will be jittery due to the fluctuating values coming from the pedals potentiometer. Alternative line edit available that splits that movement into 4 steps instead - See line edit for "mix dclutch...
Note 2: If your truck & trailer(s) are not inline and you 'walk' into the side of your trailer, you'll hop over it rather than pass through it. It's not ideal but that's how the game code reacts to collision data.

==========================================================================================

How to control DEVCAM using your analogue controls: ***New 10/04/2022***
Ensure you have 'Multiple Universal External Cameras' setup and working correctly before adding this.
Click this link for the required extra line edits: viewtopic.php?p=50460#p50460

Select CAM 5 and open the menu mod.
Select "Cam 0 - DEVCAM analogue control - Close menu - Press '0'" from the top drop down list.
Close menu - The screen will go black.
Press '0' and DEVCAM will now have analogue control and default mouse & keyboard control.

Or when 'Walk Around Your Truck' camera mode is in use, press '0' and DEVCAM will now have analogue control and default mouse & keyboard control.

Note 1: When 'DEVCAM analogue control' is used your truck steering/accelerator/brake/clutch functions are disabled, otherwise your truck would drive around as you move the DEVCAM.

Note 2: If you want to drive your truck whilst using DEVCAM then don't pick the above preset. Just press '0' to have default mouse & keyboard control only.

==========================================================================================

How to assign your own keys/buttons for CAM's 5/6/7/8. ***New 22/05/2023***

For example, you may want CAM 5 (look behind) as a button on your wheel or gamepad rather than pressing keyboard 5.
But, by default, MUEC CAM's 5/6/7/8 assignments are shown as 'complex' and cannot be changed without breaking the MUEC code.
Therefore this alternate way and line edits will allow you to select any key/button for CAM's 5/6/7/8.

In game - KEYS & BUTTONS Menu - WALK MODE - Secondary assignments (keep your preferred walk mode keys/buttons as primary assignments for walking in the garage):
Image
Secondary Forward = MUEC CAM 5 (Look behind)
Secondary Back = MUEC CAM 6 (user specified via MUEC menu)
Secondary Left = MUEC CAM 7 (user specified via MUEC menu)
Secondary Right = MUEC CAM 8 (user specified via MUEC menu)

Note: In the garage view using 'walk mode', the above will not change cameras, they will simply move you in the direction stated, if pressed.

These are the required alternate line edits that you'll need to apply to your controls.sii file:
Note: The line numbers are different between game versions. The numbers shown are from my 1.44 version, yours may be different.
Just match the "mix name" and paste the highlighted part into the correct line number to suit your game version.

config_lines[393]: "mix camwalk_for `keyboard.w?0 | keyboard.key5?0 | semantical.camwalk_for?0`"

config_lines[394]: "mix camwalk_back `keyboard.s?0 | keyboard.key6?0 | semantical.camwalk_back?0`"

config_lines[395]: "mix camwalk_righ `keyboard.d?0 | keyboard.key8?0 | semantical.camwalk_righ?0`"

config_lines[396]: "mix camwalk_left `keyboard.a?0 | keyboard.key7?0 | semantical.camwalk_left?0`"

config_lines[510]: "mix eyepreset1 `camwalk_back?0 * ! sign(keyboard.lshift?0 + keyboard.rshift?0) * c_et_head`"

config_lines[511]: "mix eyepreset2 `camwalk_left?0 * ! sign(keyboard.lshift?0 + keyboard.rshift?0) * c_et_head`"

config_lines[512]: "mix eyepreset3 `camwalk_righ?0 * ! sign(keyboard.lshift?0 + keyboard.rshift?0) * c_et_head`"

config_lines[514]: "mix eyepreset5 `camwalk_for?0 * c_et_head`"

Note: MUEC CAM's 5/6/7/8 are still defaulted to keyboard 5/6/7/8, but you can now change them as required using above method.

==========================================================================================

Q & A:

Q - Do I have to apply all those line edits every time SCS update the game?
A - No. At least I've never had to. The line numbers may change but that's not a problem.

Q - Why show line edits stating "<-- This is game default"?
A - If you want to test between ECC, MUEC or MUC you won't then have left over edits that would affect your current setup.

Q - Does it matter which preset I modify?
A - Never use 'Cam 1 - Mouse & Keyboard (Don't Use) / Cam 1 - TrackIR & Analogue Controller (Don't Use) / Cam 5 only (Don't Use)' as a starting point. Use one of the other presets that best matches what you want your camera to do.

Q - When I press 9 nothing happens... why doesn't the menu appear like it did in V2?
A - From V3 you press shift + 9 instead. The change is because of now being able to save your presets in game, entering 9 in a preset name, 'Hood - W900' for example, caused the menu to close.

Q - When I press shift + numlock or shift + 9 nothing happens... why doesn't the menu appear?
A - You must already be using CAM 5, 6, 7 or 8 for the menu to open to prevent menu changes whilst using other CAM's that will give incorrect results. If you have no presets set for CAM 6, 7 or 8 then just select CAM 5 and then open menu mod and add presets are required.

Q - Presets 'Cam 1 - Mouse & Keyboard (Don't Use) / Cam 1 - TrackIR & Analogue Controller (Don't Use)' don't work properly when selected for CAM 6, 7 or 8.
A - Those 2 presets are not views and instead are only used by my code to enable switching to the original CAM 1.

Q - After adjusting the sliders to my liking I then change cameras and my adjustments have gone!
A - Never change cameras when making adjustments to the sliders. Save your preset as shown above so your new view will always be selectable.

Q - I have no mouse movement in CAM 1, what's wrong?
A - Look back at "Set 'uset g_eye_preset_4' to setup your preferred movement control for CAM 1:". Check "mix eyepause" value in the line edits (0 or 1).

Q - How do i use 'steer look slider' for CAM 1?
A - That slider will only work for CAM 6, 7 & 8. Use game original 'steer look' in the controls menu for CAM 1.

Q - I want a roof cam that looks straight back but it keeps moving to the side when using 'Look movement full'.
A - Simply set 'Camera Rotation' to 3.01 instead of 3.00 to disable the 'look around the side' movement when camera is positioned within the 'trigger area'.

Q - Why use camcycle key 9 for the menu?
A - Camcycle doesn't display these new cams correctly, so best not to use it for that.

Q - Every time I try to open the menu mod the game crashes to desktop.
A - Check the statement for "Confirmed to work for ATS/ETS2 game versions..." at the top of the post. Ensure you are using the correct mod for your game version.

Q - I've removed the menu mod but the cameras are acting strange.
A - You must disable the MUEC code first (untick) in menu before removing the mod.
Or without mod loaded, Press '6' '7' or '8' and then 'shift + 9'. You'll see the original Tobii Eye menu, untick 'Enable extended view', the menu will 'grey out' and you'll have game standard cameras again.

Q - I can't access cam 3 anymore, what's wrong?
A - That's an SCS known issue that can randomly happen. https://forum.scssoft.com/viewtopic.php?f=181&t=220925
Forum member "Dieling" had this issue and fixed it : viewtopic.php?p=44313#p44313

Q - Can I click 'Reset to default' at the bottom of the keys/buttons & controller menus?
A - No. That will remove the MUEC line edits!

Q - Can I click 'Force Feedback - Reset to defaults'?
A - Yes.

Q - I'm far too lazy to do all that stuff, just give me a roof cam mod that can look around!
A - Enjoy... viewtopic.php?p=34287#p34287
Last edited by JHTrucker on September 21st, 2024, 3:15 pm, edited 201 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
User avatar
BenganJ
Moderator
Posts: 9589
Joined: December 15th, 2018, 11:54 am
Location: Gothenburg, Sweden

Re: Multiple Universal External Cameras for ATS & ETS2 1.38/1.39

Post by BenganJ » January 11th, 2021, 4:26 pm

@JHTrucker

DAMN, you're a creative bastard! I've many times, I'm testing maps before release most often with the roof camera,
sworn that I can't "look around" in that view. Looking forward to this later!
---------------------------------------------------------------------------------------------------------------------------------------------
System: Windows 8.1
Processor: Intel Core i7-4790@
Memory: 16GB
Graphics: ASUS GeForce GTX1660Ti
Image
User avatar
JHTrucker
Expert
Posts: 1356
Joined: February 7th, 2020, 3:19 pm
Location: UK

Re: Multiple Universal External Cameras for ATS & ETS2 1.38/1.39

Post by JHTrucker » January 11th, 2021, 5:07 pm

@BenganJ - Well i thought of it and decided to do it even though it's not something i need.
But using TIR and "chase very far" is oddly entertaining. You are far behind your truck and trailers but when leaning forwards you zoom to the truck roof for better view at junctions etc. Maybe better for map checking?
Enjoy.
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: Multiple Universal External Cameras for ATS & ETS2 1.38/1.39

Post by JHTrucker » January 14th, 2021, 5:23 pm

First post updated:
Line 255 amended to allow TrackIR 'y' (up/down) movement whilst having "Auto move position when looking left/right" enabled.

That means TrackIR users can now move left/right/up/down/forward/backwards when using chase cam's etc (when auto move menu option is enabled).
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
kmorreison
Posts: 18
Joined: October 6th, 2020, 8:29 pm

Re: Multiple Universal External Cameras with look function - 1.38/1.39

Post by kmorreison » January 24th, 2021, 5:32 am

pleaseee!! i love this for change my cams!! buut i have a best problem!! i cant have a numpad!! i cant have key numlock!! pls how need to change this key for open menu?? for use insert or supr key?? help me pls!!

Thanks for you work!
User avatar
JHTrucker
Expert
Posts: 1356
Joined: February 7th, 2020, 3:19 pm
Location: UK

Re: Multiple Universal External Cameras with look function - 1.38/1.39

Post by JHTrucker » January 24th, 2021, 6:16 pm

@kmorreison - Thanks for being the first to comment after 13 downloads, but too bad you can't open the menu. Shift Numlock is SCS default for Tobii eye menu.

I'll update soon to allow another key... Done. Read the next post.
Last edited by JHTrucker on January 24th, 2021, 7:45 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
User avatar
JHTrucker
Expert
Posts: 1356
Joined: February 7th, 2020, 3:19 pm
Location: UK

Re: Multiple Universal External Cameras with look function - 1.38/1.39

Post by JHTrucker » January 24th, 2021, 7:43 pm

First post updated to allow opening the menu with key '9' as well as the original 'shift + numlock'

Line 181 added and line 343 amended.

As already stated in the first post, the menu won't open unless you are already using cam 5 or 6.
If you are using cam 1 and press '9' then nothing will happen.
Change to cam 5 or 6 before pressing '9' to show the menu.
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
kmorreison
Posts: 18
Joined: October 6th, 2020, 8:29 pm

Re: Multiple Universal External Cameras with look function - 1.38/1.39

Post by kmorreison » January 24th, 2021, 11:15 pm

Sorry for the inconvenience, the truth already works perfectly with the 9 key !!! thank you.

My English is not very good, I use google hahaha ...

Could you help me on how to make a camera like the original 6 of the game which is seen from the bumper, but what I would like is to be able to raise it a little to the height of the real window! and to be able to have the functions of turning the head like this now !!

I love camera 5 that looks like the cabin! but the 6th I would like to do what I tell you!

Thank you for all the work you do so that others can enjoy it!
kmorreison
Posts: 18
Joined: October 6th, 2020, 8:29 pm

Re: Multiple Universal External Cameras with look function - 1.38/1.39

Post by kmorreison » January 24th, 2021, 11:35 pm

I managed to make the configuration I wanted by touching the parameters !! but is there any way to save it ?? if not every time I change the camera to 1 they are erased.

And another doubt when I put the camera as close as if it were the first person I have a problem ... and that is that when I turn the camera to look to the sides I really see the cab of the truck from the opposite side.

Sorry and Thanks!

Edited: Removing the automove tab I solve the problem of looking to the right and left !! I just need to know if there is any way to save the camera!, i would like the configuration that I put to always be saved in 6.
Edited2: Is there a way with the keyboard that when you look to the right or left it will turn your head slowly? that it was not instantaneous?
User avatar
JHTrucker
Expert
Posts: 1356
Joined: February 7th, 2020, 3:19 pm
Location: UK

Re: Multiple Universal External Cameras with look function - 1.38/1.39

Post by JHTrucker » January 25th, 2021, 12:23 am

@kmorreison - Glad you got it to work.
Everything you are asking for help with is already in the first post,
The Q&A section has your exact question regarding losing your camera.

Perhaps you know someone that can read the main post and help you rather than google?
Keep playing this and trying the options out so you better understand what does what.

Use "HOOD" to get a window height camera that looks left/right or "ROOF"?

Read "How to add your own preset" <--- that is how to save your camera.
Move the menu sliders to where you want them.
Write down their numbers.
Edit a spare preset file by adding those numbers.

EDIT: I've added a simple picture to help explain "how to save a preset" in the main post.
EDIT 2: Added description of menu mod sliders to main post to help you translate.

As stated in the main post, pressing look left/right is instant and can't be moved slowly unless you use a gamepad (xbox360 etc).
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