Extra Cabin Cameras v4 with look function for 1.38 to 1.44 - Updated 22/06/2022

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

Extra Cabin Cameras v4 with look function for 1.38 to 1.44 - Updated 22/06/2022

Post by JHTrucker » July 22nd, 2021, 9:55 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 10/08/2021 - New menu mod v2 & line edits amended as date highlighted. What's new? Look here: viewtopic.php?p=45092#p45092
UPDATED 04/11/2021 - Added game version 1.42 line numbers only. Nothing has changed as it all still works in 1.42.
UPDATED 23/12/2021 - Added game version 1.43 line numbers only. Nothing has changed as it all still works in 1.43.
UPDATED 09/04/2022 - New menu mod v3 and associated line edits as date highlighted. What's new? Look here: viewtopic.php?p=50461#p50461
UPDATED 16/05/2022 - New menu mods v3.1 (1.38-143) & v4.0 (1.44). What's new? Look here: viewtopic.php?p=50831#p50831
UPDATED 22/06/2022 - Improvements for CAM 1 camera movement with the associated line edits date highlighted. What's new? Look here: viewtopic.php?p=51504#p51504

There must be at least 1 person in our trucking world that will love this... whilst everyone else will think it's a waste of time!

With the attached Menu Mod and controls.sii & config_local.cfg file edits you'll have 3 extra internal camera positions, Passenger seat, Sleeper seat or Sleeper laid down for SCS trucks or Mod trucks.
So now you can switch to sleeper position before activating in game sleep... if you really want this option! Or you can "Move To" these new cameras using your real steering wheel to move you through the cabin to your chosen camera position.
You can also just place the camera anywhere inside the cab, between the front seats to get a centered driving view for example, if that's what you want. You can also look around upto 90 degree left/right/up/down.

***New 22/06/2022***
Optional - In the driving seat.
Press 'CAM 1' or 'CAM 5' 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 09/04/2022***
Optional - Control DEVCAM using your analogue controls, as well as or instead of, the default mouse & keyboard.

Note: You cannot use this with my 'TrackIR Option 7 Window Block' or 'Multiple Universal External Cameras'.
Tobii Eye can't be used as this uses the Tobii Eye menu and variables and will therefore mess up your Tobii Eye setup!!!
VR isn't supported, but could be.
All other existing cameras (2/3/4/5/6/7/8) are just game standard cameras.

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


Requirements for use:
Attached Menu Mod & an edited controls.sii file & config_local.cfg file as detailed below.
At least one of the following:
Keyboard - Instant look left (45, 68 or 90 degrees) / right (45, 68 or 90 degrees).
Standard game TrackIR - Look left/right/up/down/roll (these 3 ECC cameras only, CAM 1 still has full 6DOF movement).
Analogue gamepad - look left/right/up/down. 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 look isn't supported and can't be.

Example pic using ATS Freightliner Cascadia 2019 72" Sleeper.
Image
Note: The quality of the interior will vary between trucks, the SCS Renault T, for example, has transparent front seats when viewed from the sleeper area, but the SCS Scania 2016 doesn't.
Example of W900 with transparent seats:
Image
Example DAF 2021 XG+ 'Move To' Sleeper - Use real steering wheel for movement:
Image
These 3 cameras can be moved to exactly where you want them using the menu mod and then saved as a preset to suit each truck, so you can have preset positions for all of your trucks, just select the right ones for the truck you are currently driving.
Note: I've supplied LHD / RHD templates that will need to be adjusted to suit your truck and then saved.
Passenger Templates will just need to move left/right to line up with seat.
Sleeper Templates will just need to move forward/backwards to line up with bed (you may also need to adjust height).
So it's really easy to place your camera if you start with a suitable template first.
I'm not creating all truck combinations for you, so you can enjoy setting them up as and when required.
I have supplied presets for Freightliner Cascadia 2019, RHD Renault T & LHD Scania 2016 all contained in the eye_tracking_presets folder in the mod zip file.
ETS trucks are more or less the same size and therefore the LHD/RHD Templates may just be fine to use for all of them.
ATS trucks vary greatly in cabin length and width and therefore you'll need to adjust the ATS templates and save as each truck as and when required.

To access these 3 new cameras:
Press 'shift + 2' for Passenger Seat or Refuel
Press 'shift + 3' for Sleeper Area or Refuel
Press 'shift + 4' for Sleeper Area or Refuel
Note: If your truck doesn't have a sleeper cabin then don't use sleeper cameras or you'll be outside!
If there is no preset selected for one of the 'Shift +' cameras then nothing will happen.
If you can't change to any of the 'Shift +' cameras then change to CAM 1 and then open the menu mod shift + numlock or shift + 9 to add presets to them.

Default Presets:
Driving Seat (LHD/RHD this is the origin of the camera) and can be used as a starting point to relocate the camera.

LHD ETS Passenger Seat Template
LHD ETS Sleeper Laid down Template LHS (Head Left Hand Side)
LHD ETS Sleeper Laid down Template RHS (Head Right Hand Side)
LHD ETS Sleeper Seat 1 Template
LHD ETS Sleeper Seat 2 Template

RHD ETS Passenger Seat Template
RHD ETS Sleeper Laid down Template LHS (Head Left Hand Side)
RHD ETS Sleeper Laid down Template RHS (Head Right Hand Side)
RHD ETS Sleeper Seat 1 Template
RHD ETS Sleeper Seat 2 Template
Note: 'Seat 1 Template' is sat on the bed between the front seats whereas 'Seat 2 Template' is on the end of the bed.

LHD ATS Passenger Seat Template
LHD ATS 48 Sleeper Laid down Template LHS (Head Left Hand Side)
LHD ATS 48 Sleeper Laid down Template RHS (Head Right Hand Side)
LHD ATS 48 Sleeper Seat Template
LHD ATS 72 Sleeper Laid down Template LHS (Head Left Hand Side)
LHD ATS 72 Sleeper Laid down Template RHS (Head Right Hand Side)
LHD ATS 72 Sleeper Seat Template

Bonus presets:
LHD Refuel - Stood outside drivers door
LHD Refuel - Stood outside sleeper

RHD Refuel - Stood outside drivers door
RHD Refuel - Stood outside sleeper
Note: With refuel views you look back over outside but can't turn further towards the truck due to the limit set by the game. But at least you are stood between the truck and fuel pump whilst you refuel instead of being sat in the cab.
Refuel cameras have "Move To" disabled due to game limitations.
You can add a 'Refuel preset' to any of the menu buttons, they don't have to be passenger, sleeper seat or sleeper laid down presets.

***New 09/04/2022***
DEVCAM preset:
"Cam 0 - DEVCAM analogue control - Close Menu - Press '0'".
See "How to control DEVCAM using your analogue controls" section at the bottom of the post.

Image

The Menu Mod is in English only. - Access it via shift + numlock or shift + 9
Here's what each option does from top to bottom - if you need to translate them.

Enable ECC 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***

Select a 'Preset' then adjust sliders to suit & Save '+'
***See below "How to add your own preset" for more info***

Move Left / Right : Far Left=0.0 - Driving Seat=2.5 - Far Right=5.0

Move Up / Down : Low=0.0 - Driving Seat=2.5 - High=5.0

Move Forward / Backward : Driving Seat=0.0 - Behind=5.0

Pitch : 90 Degrees Down=0.0 - Level=2.5 - 90 Degrees Up=5.0 (Truck cam only allows ~70 degrees internally)

Rotate : 90 degrees Left=1.0 - Centre=3.0 - 90 degrees Right=5.0

Enable 'Move to camera location' - Adjust sliders first - TICK & SAVE - Centre real steering wheel & turn to passenger side.
***See below "How to 'Move to camera location'" for more info***

LHD Truck (Untick) or RHD Truck (Tick) - Set this to ensure 'Move to camera location' works correctly.

CAM Shift+2 - Passenger Seat or Refuel - Select a 'Preset'

CAM Shift+3 - Sleeper Area or Refuel - Select a 'Preset'

CAM Shift+4 - Sleeper Area or Refuel - Select a 'Preset'

Note: There's a Q & A Section lower down if you need help.

Setup - You need to do this:
Add the mod "Extra Cabin Cameras.scs" to your mod folder.
Previous downloads 14(v1), 79(v2), 21(v3)
***New 16/05/2022***
Extra Cabin Cameras v3.1.scs for game version 1.38-1.43
Extra Cabin Cameras v4.0.scs for game version 1.44
(Both mods have the exact same functions, just use the correct one for your game version).
Extra Cabin Cameras v3.1 & v4.0.zip
(71.04 KiB) Downloaded 28 times
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.

Here are the required 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 | ((keyboard.key2?0 | keyboard.key3?0 | keyboard.key4?0) * sign(keyboard.lshift?0 + keyboard.rshift?0)) * c_et_hv_mode * c_et_head`"

config_lines[192]: "mix cam2 `keyboard.key2?0 * ! sign(keyboard.lshift?0 + keyboard.rshift?0)`"

config_lines[193]: "mix cam3 `keyboard.key3?0 * ! sign(keyboard.lshift?0 + keyboard.rshift?0)`"

config_lines[194]: "mix cam4 `keyboard.key4?0 * ! sign(keyboard.lshift?0 + keyboard.rshift?0)`"

config_lines[195]: "mix cam5 `keyboard.key5?0 | semantical.cam5?0`" <-- This is game default

config_lines[196]: "mix cam6 `keyboard.key6?0 | semantical.cam6?0`" <-- This is game default

config_lines[197]: "mix cam7 `keyboard.key7?0 | semantical.cam7?0`" <-- This is game default

config_lines[198]: "mix cam8 `keyboard.key8?0 | semantical.cam8?0`" <-- This is game default

config_lines[199]: "mix camcycle `keyboard.key9?0 * ! sign(keyboard.lshift?0 + keyboard.rshift?0) * ! c_et_head`"

***Amended 22/06/2022***
config_lines[278]: "mix headtron `(c_et_hv_mode | (! sign(abs(c_et_gv_ext - 0.555555)) | ! sign(abs(c_et_gv_ext - 0.111111))) * ! c_et_hv_mode * c_ht_on) * c_et_head | (trackiron * ! c_et_head)`"

***Amended 22/06/2022***
config_lines[279]: "mix headtryaw `((((clamp((((-c_et_hv_exp + 3.0) * 0.25) * c_et_head) + sel(! trackiron, deadzone(pow(-sel(c_jilooklr, -j_look_lr?0, j_look_lr?0), 3), c_lr_dz), 0) + sel(trackiron, trackiryaw, 0) + sel(! trackiron, (0.4 * lookpos5?0) + (-0.4 * lookpos4?0) + (0.22 * lookpos3?0) + (-0.22 * lookpos2?0) + (0.31 * lookleft?0) + (-0.31 * lookright?0), 0), (-0.5 - ! sign(8.5 - c_et_hv_exp) - ! c_et_head - ! c_et_hv_mode - (0.5 * ! sign(abs(c_et_yawsc - 2.5)) * ! sign(abs(c_et_pitchsc - 2.5)) * ! sign(c_etwm_yawsc))), (0.5 + ! sign(c_et_hv_exp + 2.5) + ! c_et_head + ! c_et_hv_mode + (0.5 * ! sign(abs(c_et_yawsc - 2.5)) * ! sign(abs(c_et_pitchsc - 2.5)) * ! sign(c_etwm_yawsc))))) * ((! c_et_hv_ac + (sign(deadzone(clamp(steering, -1.0 * ! c_et_pos, 1.0 * c_et_pos), 0.98))) * sign(c_et_pos - 0.5) * c_et_hv_ac) + ! c_et_head)) + (((clamp(steering, -0.35 * ! c_et_pos, 0.35 * c_et_pos) * 2) - (deadzone(clamp(steering, -0.7 * ! c_et_pos, 0.7 * c_et_pos), 0.4) * 1.4) + ((-c_et_hv_exp + 3.0) * 0.25) * deadzone(clamp(steering, -1.0 * ! c_et_pos, 1.0 * c_et_pos), 0.7) * sign(c_et_pos - 0.5)) * (c_et_hv_ac - sign(deadzone(abs(steering), 0.98))) * (sign(c_et_hv_exp + 2.5) * sign(8.5 - c_et_hv_exp)) * c_et_hv_ac) + (((-c_et_hv_exp + 3.0) * 0.25) * c_et_hv_ac * (! sign(c_et_hv_exp + 2.5) + ! sign(8.5 - c_et_hv_exp)))) * sign(abs(c_et_gv_ext - 0.123456)) * c_et_head) + ((lookleft?0 * lookright?0 | lookpos2?0 * lookpos3?0 | lookpos4?0 * lookpos5?0) * ! sign(abs(c_et_yawsc - 2.5)) * ! sign(abs(c_et_pitchsc - 2.5)) * ! sign(c_etwm_yawsc) * sign(0.5 - c_et_pos) * ! trackiron * c_et_head) + (sel(trackiron, trackiryaw, 0) * ! c_et_head)`"

***Amended 09/04/2022***
config_lines[280]: "mix headtrpitch `(((clamp((((c_etwm_pitsc - 2.5) * 0.2) * c_et_head) + deadzone(pow(-sel(c_jilookud, -j_look_ud?0, j_look_ud?0), 3), c_ud_dz) + sel(trackiron, trackirpitch, 0), -0.5, 0.5) * ((! c_et_hv_ac + (sign(deadzone(clamp(steering, -1.0 * ! c_et_pos, 1.0 * c_et_pos), 0.98))) * sign(c_et_pos - 0.5) * (sign(c_et_hv_exp + 2.5) * sign(8.5 - c_et_hv_exp)) * c_et_hv_ac) + ! c_et_head)) + ((((c_etwm_pitsc - 2.5) * 0.2) * deadzone(clamp(steering, -1.0 * ! c_et_pos, 1.0 * c_et_pos), 0.5) * sign(c_et_pos - 0.5)) * (c_et_hv_ac - sign(deadzone(abs(steering), 0.98))) * (sign(c_et_hv_exp + 2.5) * sign(8.5 - c_et_hv_exp)) * c_et_hv_ac) + (((c_etwm_pitsc - 2.5) * 0.2) * c_et_hv_ac * (! sign(c_et_hv_exp + 2.5) + ! sign(8.5 - c_et_hv_exp)))) * sign(abs(c_et_gv_ext - 0.123456)) * c_et_head) + (! sign(abs(c_et_pitchsc + 100.0)) * -0.5 * c_et_head) + (sel(trackiron, trackirpitch, 0) * ! c_et_head)`"

***Amended 09/04/2022***
config_lines[281]: "mix headtrroll `(sel(trackiron & c_ht_roll, trackirroll, 0) * sign(! c_et_hv_ac + ! c_et_head)) + ((sel(trackiron & c_ht_roll, trackirroll, 0) * (sign(deadzone(clamp(steering, -1.0 * ! c_et_pos, 1.0 * c_et_pos), 0.98))) * sign(c_et_pos - 0.5) * c_et_hv_ac) + ((clamp(steering, -0.3 * ! c_et_pos, 0.3 * c_et_pos) - deadzone(clamp(steering, -0.5 * ! c_et_pos, 0.5 * c_et_pos), 0.3)) * 0.333 * c_et_hv_ac * (sign(c_et_hv_exp + 2.5) * sign(8.5 - c_et_hv_exp)))) * sign(abs(c_et_gv_ext - 0.123456)) * c_et_head`"

***Amended 10/08/2021***
config_lines[282]: "mix headtrx `(((((c_et_yawsc - 2.5) * 0.6) * ! c_et_hv_ac) + (clamp(-steering, -0.5 * c_et_pos, 0.5 * ! c_et_pos) - ((((c_et_yawsc - 2.5) * 0.6) - (0.5 * sign(-steering))) * deadzone(clamp(steering, -1.0 * ! c_et_pos, 1.0 * c_et_pos), 0.5) * sign(-steering))) * c_et_hv_ac * (sign(c_et_hv_exp + 2.5) * sign(8.5 - c_et_hv_exp))) * c_et_head) + (clamp(sel(trackiron, trackirx, 0), -0.1, 0.1) * sign(! c_et_hv_mode + ! c_et_head)) + (((c_et_yawsc - 2.5) * 0.6) * c_et_hv_ac * (! sign(c_et_hv_exp + 2.5) + ! sign(8.5 - c_et_hv_exp)) * c_et_head)`"

***Amended 10/08/2021***
config_lines[283]: "mix headtry `(((((c_et_pitchsc - 2.5) * 0.25) * ! c_et_hv_ac) + (clamp(abs(steering), -0.0, (0.15 + (c_etwm_yawsc * 0.04))) + ((((c_et_pitchsc - 2.5) * 0.25) - ((0.15 + (c_etwm_yawsc * 0.04)) * abs(steering))) * deadzone(clamp(abs(steering), -0.0, 1.0), 0.5))) * clamp(sign(steering) * sign(c_et_pos - 0.5), -0.0, 1.0) * c_et_hv_ac * (sign(c_et_hv_exp + 2.5) * sign(8.5 - c_et_hv_exp))) * c_et_head) + (clamp(sel(trackiron, trackiry, 0), -0.05, 0.05) * sign(! c_et_hv_mode + ! c_et_head)) + (((c_et_pitchsc - 2.5) * 0.25) * c_et_hv_ac * (! sign(c_et_hv_exp + 2.5) + ! sign(8.5 - c_et_hv_exp)) * c_et_head) + (! sign(abs(c_et_pitchsc + 100.0)) * -10 * c_et_head)`"

***Amended 10/08/2021***
config_lines[284]: "mix headtrz `((((c_etwm_yawsc * 0.5) * ! c_et_hv_ac) + ((c_etwm_yawsc * 0.5) * (clamp(steering, -1.0 * ! c_et_pos, 1.0 * c_et_pos) * sign(c_et_pos - 0.5) * c_et_hv_ac * (sign(c_et_hv_exp + 2.5) * sign(8.5 - c_et_hv_exp))))) * c_et_head) + (clamp(sel(trackiron, trackirz, 0), -0.2, 0.05) * sign(! c_et_hv_mode + ! c_et_head)) + ((c_etwm_yawsc * 0.5) * c_et_hv_ac * (! sign(c_et_hv_exp + 2.5) + ! sign(8.5 - c_et_hv_exp)) * c_et_head)`"

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

***New 09/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 09/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 09/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 09/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 09/04/2022***
config_lines[379]: "mix eyecfg `(modifier(shift_only, keyboard.key9?0) | modifier(shift_only, keyboard.numlock?0)) * (c_et_hv_mode | (! sign(abs(c_et_gv_ext - 0.111111)) | ! sign(abs(c_et_gv_ext - 0.122222))) * ! c_et_hv_mode) * sign(abs(c_et_gv_ext - 0.123456)) * (sign(c_et_hv_exp + 2.5) * sign(8.5 - c_et_hv_exp)) * c_et_head | (modifier(shift_only, keyboard.key9?0) | modifier(shift_only, keyboard.numlock?0)) * ! c_et_head`"

***New 22/06/2022***
config_lines[507]: "mix headtren `(keyboard.key1?0 * ! sign(abs(c_et_gv_ext - 0.111111)) | keyboard.key5?0 * ! sign(abs(c_et_gv_ext - 0.555555)) | (sign(abs(mouse.rel_position.x?0)) * ! sign(abs(c_et_yawsc - 2.5)) * ! sign(abs(c_et_pitchsc - 2.5)) * ! sign(c_etwm_yawsc) * c_ht_on * eyepause?0)) * ! trackiron * c_et_head`"

***New 22/06/2022***
config_lines[509]: "mix eyepause `0`" <-- Allow button toggle to switch game standard look control and auto centre.
OR
config_lines[509]: "mix eyepause `1`" <-- Allow above toggle and moving the mouse to switch from auto centre to game standard look control.

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

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

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

***Amended 22/06/2022***
config_lines[513]: "mix eyepreset4 `(keyboard.key1?0 | (sign(abs(mouse.rel_position.x?0)) * ! sign(abs(c_et_yawsc - 2.5)) * ! sign(abs(c_et_pitchsc - 2.5)) * ! sign(c_etwm_yawsc) * ! trackiron * eyepause?0)) * c_et_head`"

***Amended 09/04/2022***
config_lines[514]: "mix eyepreset5 `(keyboard.key2?0 | keyboard.key3?0 | keyboard.key4?0) * ! sign(keyboard.lshift?0 + keyboard.rshift?0) * c_et_head | (keyboard.key5?0 | keyboard.key6?0 | keyboard.key7?0 | keyboard.key8?0 | keyboard.key0?0 * sign(abs(c_et_gv_ext - 0.123456))) * c_et_head`"

Close & save.

Here is the required edit 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)

Set 'uset g_eye_preset_4' & 'uset g_eye_preset_5' to your preferred movement control for CAM 1 & CAM 5 (see "Example setups" for more info):

Setup when using TrackIR (LHD/RHD):
uset g_eye_preset_5 "g:tobii_head_only"
uset g_eye_preset_4 "g:tobii_4c"
OR
Setup when using analogue controller thumbstick look (LHD/RHD) or button look (LHD/RHD) that only has game standard look movement:
uset g_eye_preset_5 "g:tobii_5"
uset g_eye_preset_4 "g:default"
OR
Setup when using analogue controller thumbstick look (LHD/RHD) or button look (left/right & back over for LHD only):
uset g_eye_preset_5 "g:tobii_head_only"
uset g_eye_preset_4 "g:tobii_4c"
Press 'CAM 1' to toggle between game standard look control and auto centre.
Press 'CAM 5' to toggle between game standard look control and auto centre.
OR
Setup when using analogue controller thumbstick look (LHD/RHD) or button look (left/right & back over for LHD only):
uset g_eye_preset_5 "g:tobii_5"
uset g_eye_preset_4 "g:tobii_4c"
Press 'CAM 1' to toggle between game standard look control and auto centre.
CAM 5 will always have game standard look control.
OR
Setup when using button look (left/right & back over for RHD only):
uset g_eye_preset_5 "g:tobii_5"
uset g_eye_preset_4 "g:default"
In the ECC menu set CAM 'Shift+2' to "Driving Seat - RHD - Adjust sliders & save".
Note: You can use any of the 'Shift+2/3/4' cameras.
Press 'CAM 1' for game standard look left/right control.
Press 'Shift+2' for instant 'look left/right & back over' control.
CAM 5 will always have game standard look control.

Set these for default Passenger seat & Sleeper area cameras:
uset g_eye_preset_3 "g:0000000060edc36b"
uset g_eye_preset_2 "g:0000000060edc435"
uset g_eye_preset_1 "g:0000000060edc204"

As a default you'll have LHD ETS Passenger seat, Sleeper seat & Sleeper laid down cameras setup.
Then change to suit your truck in the Menu Mod as required.

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 22/06/2022***
Look Right (Default Number Pad *) = To Look 68 Degrees Right ***New 22/06/2022***
Interior Look Up Left (Default Number pad 7) = To Look 45 Degrees Left
Interior Look Left (Default Number pad 4) = To Look 90 Degrees Left
Interior Look Up Right (Default Number pad 9) = To Look 45 Degrees Right
Interior Look Right (Default Number pad 6) = To Look 90 Degrees Right
Note 1: 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 only - Pressing either pair of Left & Right buttons together will instant look back out of the drivers window. ***New 22/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".

That's it, go try it out.

When using CAM 1, 'Shift + 2', 'Shift + 3' or 'Shift + 4' 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

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

***New 22/06/2022***
Example setups:

1 - Wheel, gamepad or keyboard with 2 key/buttons assigned to 'look left' & 'look right' (LHD only)
uset g_eye_preset_5 "g:tobii_5"
uset g_eye_preset_4 "g:tobii_4c"
Press 'CAM 1' to toggle between game standard 'slow moving left/right' and 'instant look left/right & instant re-centre' and also 'instant look back out of the drivers window'.
Use standard 'slow moving look left/right' as required, reversing or when you need to set a fixed look position etc.
Use 'instant look left/right' when driving to make it easier to see at junctions, glance at the side mirror or look back when joining a motorway etc.
When using 'instant look left/right' you press and hold your assigned key/button for 'Look Left' or 'Look Right'.
When you stop pressing 'Look Left' or 'Look Right' the view will instant re-centre.
If you press both 'Look Left' or 'Look Right' at the same time you'll instantly look back out of the drivers window.
If enabled in the line edits "mix eyepause `1`" then instant movement control is turned off when you move the mouse.
When sat in the passenger seat or sleeper area press and hold your assigned key/buttons for 'Look Left' or 'Look Right'.

2 - Analogue controller thumbstick look (LHD/RHD) or button look (LHD/RHD) that only has game standard look movement:
uset g_eye_preset_5 "g:tobii_5"
uset g_eye_preset_4 "g:default"
CAM 1 will only have game standard look movement, thumbstick, button or mouse.
When sat in the passenger seat or sleeper area use your thumbstick to look around or press and hold your assigned key/buttons for 'Look Left', 'Look Right', 'Interior Look Up Left', 'Interior Look Left', 'Interior Look Up Right' or 'Interior Look Right.

3 - Analogue controller thumbstick look:
uset g_eye_preset_5 "g:tobii_head_only"
uset g_eye_preset_4 "g:tobii_4c"
Press 'CAM 1' to toggle between game standard look control and auto centre.
Press 'CAM 5' to toggle between game standard look control and auto centre.
Use standard 'slow moving look left/right' as required, reversing or when you need to set a fixed look position etc.
Use 'auto centre look left/right' when driving to make it easier to see at junctions, glance at the side mirror or look back when joining a motorway etc.
If enabled in the line edits "mix eyepause `1`" then 'auto centre' movement control is turned off when you move the mouse.
When sat in the passenger seat or sleeper area use your thumbstick to look around.

4 - TrackIR:
uset g_eye_preset_5 "g:tobii_head_only"
uset g_eye_preset_4 "g:tobii_4c"
Use your head to look around in the driving seat, passenger seat or sleeper area.
There's no toggle function when using TrackIR, it's always on.
If you use TrackIR and like having these extra cameras then you should really try 'TrackIR Driving Enhancements' for even more stuff.

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

How to 'Move to camera location':
With this TICKED you will move from the drivers seat to your selected cabin camera location rather than instant switching.
You need to be using an actual steering wheel (ideally) or analogue gamepad thumbstick / joystick for steering. Mouse or button steering won't work and can't work as they are not analogue devices.
Example:
Select the preset you want to use. TICK Enable 'Move to camera location' box and save as a 'Move To' preset and assign it to one of the shift + 2/3/4 buttons.
Using CAM 1 - Centre your real steering wheel - Select the 'Move Enabled' cabin camera (shift + 2/3/4) you want to move to.
You will still be sat in the driving seat until you turn your real steering wheel towards the passenger side.
You will then move through the cabin to the point where the selected camera is positioned at the speed that you turn your wheel.
So you can move from driving seat to laid down in the sleeper. Press 'sleep' and then wake up and turn your wheel back to the centre point to get back into the driving seat.
NOTE: Always press CAM 1 when ready to drive away.
NOTE 2: If you want to adjust a 'Move To' camera then UNTICK first, make adjustments and check position is ok before you TICK 'Move To' & SAVE again.

All the cabin cameras / templates are static by default and will therefore just switch when pressing (shift + 2/3/4).
TICK Enable 'Move to camera location' box and save as a 'Move To' preset so you have both options to choose from.
"LHD Freightliner Cascadia 2019 72 Sleeper Laid Down RHS" <-- Instant switch to Right Hand Side of sleeper.
"LHD Freightliner Cascadia 2019 72 Sleeper Move To Laid Down RHS" <-- Move to Right Hand Side of sleeper.

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

How to add your own preset:
Select CAM 1, 'Shift + 2', 'Shift + 3' or 'Shift + 4' 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 'Driving Seat - Adjust sliders & save' 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, 'Driving Seat' or 'Templates'.
All presets created are stored in the games 'eye_tracking_presets' folder and always listed below the 'templates' in the menu's drop down lists.

Your new preset is now selectable from the 'Shift + 2', 'Shift + 3' or 'Shift + 4' drop down lists.
Just repeat the above for other presets you make.

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

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

Select CAM 1 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.

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.

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

Q & A Section:

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 Mouse & Keyboard (Don't Use)' or 'Cam 5 TrackIR & Analogue Controller (Don't Use)' as a starting point. Use one of the other presets that best matches where you want the camera positioned and adjust sliders to suit.

Q - When I press shift + numlock or shift + 9 nothing happens... why doesn't the menu appear?
A - You must already be using CAM 1 or CAM's (shift + 2 / shift + 3 / shift + 4) 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's 'shift + 2', 'shift + 3' or 'shift + 4' then change to CAM 1 and then open menu.

Q - Why is the look left/right movement restricted to 90 degrees.
A - Looking beyond 90 degrees will cause the interior to change to low quality as the game thinks your head is now outside.
Camera rotation is also part of that 90 degrees limit. So if you rotate the camera 90 degrees left then you can't look any further.

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 - 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 - I've only developed/tested this with 1.40/1.41/1.42/1.43/1.44. It should work with 1.38/1.39. It will crash with 1.37. Use the correct mod for your game version.

Q - Do I have to reset to defaults all the line edits so I can play multiplayer as that doesn't support mods currently in 1.41?
A - No. Just open the menu mod and UNTICK 'Enable ECC code' to disable it and then remove the mod. Your cameras will then function exactly as the standard game. When you want to use 'ECC' again for singleplayer, just add mod and TICK 'Enable ECC code' in the menu mod.

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

Controls.sii file defaults if required.
"mix cam1 `keyboard.key1?0 | semantical.cam1?0`"
"mix cam2 `keyboard.key2?0 | semantical.cam2?0`"
"mix cam3 `keyboard.key3?0 | semantical.cam3?0`"
"mix cam4 `keyboard.key4?0 | semantical.cam4?0`"
"mix cam5 `keyboard.key5?0 | semantical.cam5?0`"
"mix cam6 `keyboard.key6?0 | semantical.cam6?0`"
"mix cam7 `keyboard.key7?0 | semantical.cam7?0`"
"mix cam8 `keyboard.key8?0 | semantical.cam8?0`"
"mix camcycle `keyboard.key9?0 | semantical.camcycle?0`"
"mix headtron `c_ht_on & (trackiron | hmdon | eyeposon)`"
"mix headtryaw `sel(trackiron, trackiryaw, 0) + sel(hmdon, hmdyaw, 0) + sel(eyeposon, eyeposyaw, 0)`"
"mix headtrpitch `sel(trackiron, trackirpitch, 0) + sel(hmdon, hmdpitch, 0) + sel(eyeposon, eyepospitch, 0)`"
"mix headtrroll `sel(trackiron & c_ht_roll, trackirroll, 0) + sel(hmdon, hmdroll, 0) + sel(eyeposon, eyeposroll, 0)`"
"mix headtrx `clamp(sel(trackiron, trackirx, 0) + sel(eyeposon, eyeposx, 0), -0.1, 0.1) + sel(hmdon, hmdx, 0)`"
"mix headtry `clamp(sel(trackiron, trackiry, 0) + sel(eyeposon, eyeposy, 0), -0.05, 0.05) + sel(hmdon, hmdy, 0)`"
"mix headtrz `clamp(sel(trackiron, trackirz, 0) + sel(eyeposon, eyeposz, 0), -0.2, 0.05) + sel(hmdon, hmdz, 0)`"
"mix eyecfg `modifier(shift_only, keyboard.numlock?0)`"
"mix headtren ``"
"mix eyepause ``"
"mix eyepreset1 ``"
"mix eyepreset2 ``"
"mix eyepreset3 ``"
"mix eyepreset4 ``"
"mix eyepreset5 ``"
Last edited by JHTrucker on June 22nd, 2022, 5:06 pm, edited 50 times in total.
User avatar
JHTrucker
Posts: 1118
Joined: February 7th, 2020, 3:19 pm
Location: UK

Re: Extra Cabin Cameras with look function for 1.38/1.39/1.40/1.41

Post by JHTrucker » August 10th, 2021, 3:10 pm

First post update.
What's new?
New menu mod v2.
Amended line edits: 242, 243, 245, 246 & 247.
New lines edits: 55, 77 & 244.

You now have an extra option of moving from the drivers seat to your selected cabin camera location rather than instant switching.
You need to be using an actual steering wheel (ideally) or analogue gamepad thumbstick / joystick for steering. Mouse or button steering won't work and can't work as they are not analogue devices.
Example:
Select the preset you want to use. TICK Enable 'Move to camera location' box and save as a 'Move To' preset and assign it to one of the shift + 2/3/4 buttons.
Using CAM 1 - Centre your real steering wheel - Select the 'Move Enabled' cabin camera (shift + 2/3/4) you want to move to.
You will still be sat in the driving seat until you turn your real steering wheel towards the passenger side.
You will then move through the cabin to the point where the selected camera is positioned at the speed that you turn your wheel.
So you can move from driving seat to laid down in the sleeper. Press 'sleep' and then wake up and turn your wheel back to the centre point to get back into the driving seat.
Always press CAM 1 when ready to drive away.

A few extra 'templates' added.
The supplied 'eye_tracking_presets' folder in the zip contains a few new 'Move To' presets as an example.
User avatar
JHTrucker
Posts: 1118
Joined: February 7th, 2020, 3:19 pm
Location: UK

Re: Extra Cabin Cameras v2 with look function for 1.38 to 1.43 - Updated 10/08/2021

Post by JHTrucker » April 9th, 2022, 5:37 pm

First post update.
What's new?
New 'Extra Cabin Cameras v3' mod.

Slightly increased the drop down lists to display more presets to help make it easier to find the one you want.

Added "Cam 0 - DEVCAM analogue control - Close menu - Press '0'" preset.
If selected, this allows you to control DEVCAM via your analogue controls for steering, accelerator, brake etc.
This requires extra line edits and is considered 'optional' as mouse & keyboard users can't use this.

Added missing TrackIR 'head roll' movement when in passenger seat and sleeper area.
Requires config_lines[56]: "constant c_ht_roll 1.000000"

Amended line edits: 273, 274,275, 368 & 501.
New lines edits: 289, 294, 295 & 299.
User avatar
JHTrucker
Posts: 1118
Joined: February 7th, 2020, 3:19 pm
Location: UK

Re: Extra Cabin Cameras v4 with look function for 1.38 to 1.44 - Updated 16/05/2022

Post by JHTrucker » May 16th, 2022, 7:22 pm

First post update.
What's new?
New ECC mods:
Extra Cabin Cameras v3.1.scs for game version 1.38-1.43
Extra Cabin Cameras v4.0.scs for game version 1.44
(Both mods have the exact same functions, just use the correct one for your game version).

The line edits have been re-numbered to match my 1.44 version, just match the "mix name" when applying to your game version.

NOTE: There's no actual changes to the line edits and so if you were using 'ECC v3' you only need to now change to the correct mod to suit your game version.

When using game version 1.44 and a preset that you previously created prior to 1.44 then you'll get a harmless yellow warnings in your console / game log:
<WARNING> Ignoring obsolete attribute 'gaze_view_scale' of unit...

To fix that warning just delete your preset and create & save it again.

--------------------------------

SCS broke ECC in 1.44 because they removed 2 existing Tobii Eye variables / menu sliders:
gaze_view_scale
head_view_scale
And replaced them with 6 new ones:
head_view_drive_yaw_scale
head_view_drive_pitch_scale
head_view_drive_roll_scale
head_view_walk_yaw_scale
head_view_walk_pitch_scale
head_view_walk_roll_scale
And yet SCS didn't even bother to tell Tobii Eye users that they have these new settings in the update Blog change log!
User avatar
JHTrucker
Posts: 1118
Joined: February 7th, 2020, 3:19 pm
Location: UK

Re: Extra Cabin Cameras v4 with look function for 1.38 to 1.44 - Updated 16/05/2022

Post by JHTrucker » June 22nd, 2022, 5:00 pm

UPDATE: Improvements for driving seat camera movement, CAM 1, when using Analogue Controller or Button look.

Added toggle function for CAM 1 & CAM 5 look left/right control (game standard or instant with auto centre).

Added option to allow any mouse movement to change look control for CAM 1 or CAM 5 back to game standard. Useful when you want to use the mouse to move the driving view without having to first toggle back to game standard control. But it will also change back to game standard control when you are accessing the game menus or world map etc and you are moving the mouse.

Added 'Look Left' & 'Look Right' buttons. These can be used instead of or as well as the existing 'Interior Look' buttons.

Added CAM 1 button look (left/right & back over out of the drivers window). Press both look left & right buttons to look back over out of the window.

Amended controls.sii line: 'config_lines[278]: "mix headtron...', 'config_lines[279]: "mix headtryaw...' & 'config_lines[513]: "mix eyepreset4...'
New controls.sii line: 'config_lines[285]: "mix headtrwmon...', 'config_lines[507]: "mix headtren...' & 'config_lines[509]: "mix eyepause...'

Re-written setup instructions for config_local.cfg edits to make it clear what 'look' options you have.
Set 'uset g_eye_preset_4' & 'uset g_eye_preset_5' to setup your preferred movement control for CAM 1 & CAM 5.
Added 'Example Setups' to help you choose the right movement control.

There's no changes to the ECC menu mods, keep using the currently available ones.

----------

Example - When using a wheel with 2 buttons assigned to 'look left' & 'look right':
Toggle CAM 1 between game standard 'slow moving left/right' and 'instant look left/right & auto centre' and also 'instant look back out of the drivers window'.
Use standard 'slow moving look left/right' as required, reversing or when you need to set a fixed look position etc.
Use 'instant look left/right' when driving to make it easier to see at junctions, glance at the side mirror or look back when joining a motorway etc.

When using 'instant look left/right' you press and hold your assigned key/button for 'Look Left' or 'Look Right'.
When you stop pressing 'Look Left' or 'Look Right' the view will instant re-centre.
If you press both 'Look Left' or 'Look Right' at the same time you'll instantly look back out of the drivers window.

These 2 buttons will now also work with instant look left/right when sat in the passenger seat or sleeper area.

----------

The first post has all this updated information added to it.
Post Reply