HowTo: autocenter the interior-cam-view

CJoke
Posts: 66
Joined: 29 Dec 2012 10:09

HowTo: autocenter the interior-cam-view

#1 Post by CJoke » 23 Nov 2013 11:10

autocenter the interior-cam-view

cam behavior like a racing-game

this workarround use the ingame trackir-code in ets2 to autocenter the cam. ;)


HowTo:
you have to edit the controls.sii
in the folder "..Documents\Euro Truck Simulator 2\profiles\YourProfileNumber"

change the following lines:
config_lines[132]: "mix trackiron `1 - (mouse.button_left?0 + keyboard.num4?0 + keyboard.num6?0)`"
config_lines[133]: "mix trackiryaw `0.0`"
config_lines[134]: "mix trackirpitch `0.0`"
config_lines[135]: "mix trackirx `0.0`"
config_lines[136]: "mix trackiry `0.0`"
config_lines[137]: "mix trackirz `0.0`"

(edit 2021: the line numbers may be different, depends on GameVersion)

the cam-behavior now change:

for mouseview you have to hold left-mousebutton and move the mouse to look arround.
if you release the left mousebutton the cam will automatic autocenter.

you now need to hold numpad 4 or numpad 6 to view left or right
by release numpad 4 or numpad 6 the cam will automatic autocenter.

you also are able to change mouse.button_left to mouse.button_right or whatever you want.
:D

only for use without trackIR-device

---------
with a trackir-device you only have to change the first line, to something like that:
config_lines[132]: "mix trackiron `trackir.device.active?0- (mouse.button_left?0 + keyboard.num4?0 + keyboard.num6?0)`"


C.Joke ;-)

(edit: Im still using it in 2021 with V1.40)
Last edited by CJoke on 27 Apr 2021 16:34, edited 1 time in total.
User avatar
zrex01
Posts: 368
Joined: 22 Mar 2013 12:52
Location: Moncton N.B. Canada

Re: HowTo: autocenter the interior-cam-view

#2 Post by zrex01 » 23 Nov 2013 12:46

I'm using mouse and keyboard combination.
I use letter A to look left and letter B to look right.
If you don't mind telling me how if possible to do this.
TNX :ugeek:
CJoke
Posts: 66
Joined: 29 Dec 2012 10:09

Re: HowTo: autocenter the interior-cam-view

#3 Post by CJoke » 23 Nov 2013 12:51

zrex01 wrote: I use letter A to look left and letter B to look right.
then use
config_lines[132]: "mix trackiron `1 - (mouse.button_left?0 + keyboard.a?0 + keyboard.b?0)`"
instead

;)
User avatar
Reinhard
Posts: 4709
Joined: 20 Dec 2012 16:46
Location: Berlin, Germany

Re: HowTo: autocenter the interior-cam-view

#4 Post by Reinhard » 23 Nov 2013 13:35

CJoke wrote: with a trackir-device you only have to change the first line
I think I understood what this "autocenter" does for people which doesn't use trackir: snapping back the view after having issued a keystroke for looking to the side. Okay, that seems to make sense, but after several years with trackIR it is hard for me to remember how it was without.

But what I didn't get is how snapping back (if my above assumption was correct) could do me any good with trackIR. There is already a button in the software of the device, of free choice, to reset the view. So I guess this is not what you are intending?

Sorry if this sounds clueless, but the only racing sim I ever played was a Mercedes Truck racing game, and that was twelve years ago. Please enlighten me. :)
CJoke
Posts: 66
Joined: 29 Dec 2012 10:09

Re: HowTo: autocenter the interior-cam-view

#5 Post by CJoke » 23 Nov 2013 15:22

Reinhard wrote:
CJoke wrote: with a trackir-device you only have to change the first line
(...)
But what I didn't get is how snapping back (if my above assumption was correct) could do me any good with trackIR.
it has nothing to do with resting a trackir-device to head-centerposition.

I played many racing games before ets2 and most of the racing games have autocenter-keys for look left and right, so I missed that bevavior in ets2.

This workarround is not made for trackIR-users, but it should work with trackIR to.

default ets2 disable mouseview if you use a trackIR-device.
But if you use
config_lines[132]: "mix trackiron `trackir.device.active?0 - (mouse.button_left?0)`"
then you are able to use the mouseview by hold the left mousebutton, if you release left mousebutton the view return to your trackIR view-position.
For example reverse parking and looking back outside left window with mouse, instead of turn the head to left while the eyes keep looking forward.
;)
Last edited by CJoke on 23 Nov 2013 15:28, edited 1 time in total.
User avatar
Reinhard
Posts: 4709
Joined: 20 Dec 2012 16:46
Location: Berlin, Germany

Re: HowTo: autocenter the interior-cam-view

#6 Post by Reinhard » 23 Nov 2013 15:27

Thanks for explaining it, now i get it.
User avatar
SiSL
SCS Software
Posts: 8683
Joined: 27 Oct 2013 06:23
Contact:

Re: HowTo: autocenter the interior-cam-view

#7 Post by SiSL » 23 Nov 2013 15:31

CJoke wrote:I played many racing games before ets2 and most of the racing games have autocenter-keys for look left and right, so I missed that bevavior in ets2.
Actually pressing "1" would auto-center view again, is that what you mean?
CJoke
Posts: 66
Joined: 29 Dec 2012 10:09

Re: HowTo: autocenter the interior-cam-view

#8 Post by CJoke » 23 Nov 2013 15:42

SiSL wrote:
CJoke wrote:I played many racing games before ets2 and most of the racing games have autocenter-keys for look left and right, so I missed that bevavior in ets2.
Actually pressing "1" would auto-center view again, is that what you mean?
yes with default ets2 you have to press 1 (or numpad 5),
this workarround is to do that full automatic by release the left/right-key
User avatar
zrex01
Posts: 368
Joined: 22 Mar 2013 12:52
Location: Moncton N.B. Canada

Re: HowTo: autocenter the interior-cam-view

#9 Post by zrex01 » 24 Nov 2013 12:15

Thank's for the reply.
Will try it out.
TNX :D
RWMatze
Posts: 2
Joined: 04 Jan 2014 22:14

Re: HowTo: autocenter the interior-cam-view

#10 Post by RWMatze » 04 Jan 2014 22:17

Hi ETS2-Simmers,

can someone confirm this workaround is working with the latest patch?

Cheers,
Matze
Post Reply

Return to “Help center - player to player”

Who is online

Users browsing this forum: No registered users and 1 guest