TOGGLE INTERIOR ZOOM FUNCTION

User avatar
Angel_Arrow
Posts: 75
Joined: 08 Jan 2015 07:13

TOGGLE INTERIOR ZOOM FUNCTION

#1 Post by Angel_Arrow » 08 Nov 2019 17:07

It's not always easy to park your truck backward. Using your mirrors is the key here. When you're using a head-tracking device it's even more intuitive. But what I miss here is a toggle function for the interior zoom function.

Maneuvering backward with a steering wheel is a nice thing to do. I drive a truck with the steering wheel at the left-hand side. Looking in my left mirror is more than okay but when I look in my right rearview mirror it looks like it's too far away. Too far to see something properly. When I press the interior zoom button that I've put on my steering wheel in order to have it close by, it is giving me difficulties to do my maneuvers properly. Having to turn the steering wheel AND having to keep that button pressed in is a hassle. This could be solved by simply adding the ability to toggle the interior zoom. One-click on the button is zoomed in, another click is zoomed out.

SUGGESTION: TOGGLE FUNCTION for INTERIOR ZOOM.
erik_de_ruijter
Posts: 1
Joined: 09 Nov 2019 11:34

Re: TOGGLE INTERIOR ZOOM FUNCTION

#2 Post by erik_de_ruijter » 09 Nov 2019 12:33

i also assignd a button to the zoom function, altough it is on a sepperate button board.
but i would love to be able to toggle on and of like you suggested.

so yesss i support this idea !!!!
User avatar
Angel_Arrow
Posts: 75
Joined: 08 Jan 2015 07:13

Re: TOGGLE INTERIOR ZOOM FUNCTION

#3 Post by Angel_Arrow » 21 Oct 2024 10:32

Unfortunately, this didn't get any more interest.
How cool would it be for maneuvering if you didn't have to hold a button all the time to zoom into the opposite driver-side rear-view mirror?!?!?!
User avatar
San_Sany4
Posts: 1181
Joined: 26 Nov 2013 12:37
Location: Tbilisi, Georgia (the good one)

Re: TOGGLE INTERIOR ZOOM FUNCTION

#4 Post by San_Sany4 » 21 Oct 2024 17:34

Oh, I made my button to be toggleable with some controls.sii editing years back, probably before your original post. I did not know there's a demand for it. Today is your lucky day, I guess.

Go to your profile folder and open controls.sii file in a text editor. Find the entry with the interior camera zoom. By default if you bound the zoom to key Z, it will look like that:

Code: Select all

"mix camzoom `keyboard.z?0 | semantical.camzoom?0`"
You can change the bind function in the backticks (`) to a custom one. I use Z as an example, you can use other key. For your button on the wheel, it will look something like "joy.b12?0" instead of "keyboard.z?0". I'm also leaving the "semantical" part as is, it's used for Steam Input API.

1. If you just want the key to only work as a toggle from now on:

Code: Select all

"mix camzoom `memory(keyboard.z?0, !camzoom)| semantical.camzoom?0`"
2. If you one key to work like it does in the game and a second one (in this example, X) to be toggle:

Code: Select all

"mix camzoom `abs(keyboard.z?0 - memory(keyboard.x?0, !camzoom)) | semantical.camzoom?0`"
In this case, pressing Z while the cam is togged by X will "unzoom" temporarily while you're holding Z. Note that if you have another bind on X already, it will trigger as well, you have to unbind it.

3. My personal choice: short press toggles zoom, long press holds zoom:

Code: Select all

"mix camzoom `abs(long_press(keyboard.z?0) - memory(short_press(keyboard.z?0), !camzoom)) | semantical.camzoom?0`"
Save the file and test in the game. If you need more help, feel free to ask.
My World of Trucks. My Steam.
ETS2 since 1.4, ATS since 1.0. Vanilla player.
Guide: How to create and use settings presets in ATS and ETS2.
Guide: How to make Interior Zoom toggleable (better than in-game version)
MirM
Posts: 456
Joined: 19 Sep 2014 02:49

Re: TOGGLE INTERIOR ZOOM FUNCTION

#5 Post by MirM » 21 Oct 2024 20:56

@San_Sany4

Thank you very much. :) I've been waiting for such a function for a long time.

Thanks to your guide, it already works on my keyboard and I'm very happy. :D

I wonder if it would be possible to change the settings for Steam Input for the XBOX One/X gamepad in a similar way.

But I don't know where Steam saves the profile settings, whether in the cloud or locally.

----
Sorry, I'm using a translator.
User avatar
San_Sany4
Posts: 1181
Joined: 26 Nov 2013 12:37
Location: Tbilisi, Georgia (the good one)

Re: TOGGLE INTERIOR ZOOM FUNCTION

#6 Post by San_Sany4 » 21 Oct 2024 21:30

If you are using Steam Input for your controller, you have two options. First, you can try to set it up in Steam, I believe it should have the option to make a button to toggle the input that's sent to the game. The second option is to use the "semantical.camzoom" instead of "keyboard.z" in the mixes I wrote above, deleting the part that starts with " | ". For example, the first bind would look like this:

Code: Select all

"mix camzoom `memory(semantical.camzoom?0, !camzoom)`"
My World of Trucks. My Steam.
ETS2 since 1.4, ATS since 1.0. Vanilla player.
Guide: How to create and use settings presets in ATS and ETS2.
Guide: How to make Interior Zoom toggleable (better than in-game version)
MirM
Posts: 456
Joined: 19 Sep 2014 02:49

Re: TOGGLE INTERIOR ZOOM FUNCTION

#7 Post by MirM » 21 Oct 2024 22:25

@San_Sany4

Thank you again for your quick response and willingness to help. :)
The "mix camzoom" function is already fully working on my XBOX gamepad. :D

I used the default Steam Input settings, but I changed the predefined zoom button on the gamepad to another button.

Currently, after previously changing/editing "controls.sii", as in your point 3., and assigning the "z" key to "mix camzoom", in the Steam Input wizard I assigned the action of the "z" key to the selected key on the gamepad.

And it works - a short press switches the zoom, a long press maintains the zoom. :D


----
Sorry, I'm using a translator.
User avatar
Bandit & The Snowman
Posts: 4161
Joined: 23 Oct 2014 15:55
Location: East Bound and Down

Re: TOGGLE INTERIOR ZOOM FUNCTION

#8 Post by Bandit & The Snowman » 27 Nov 2024 13:36

I tried option 3, only exchanging the key for a gamepad button, but instead of momentarily zooming in respectively toggling zoom, short-pressing does nothing and long-pressing waits for 0.5 seconds, then only zooms in until I release the button. This happens whether I use the standard or the XInput method.

Code: Select all

"mix camzoom `abs(long_press(joy.b4?0) - memory(short_press(joy.b4?0), !camzoom)) | semantical.camzoom?0`"
Has anything changed in ATS 1.53?
User avatar
San_Sany4
Posts: 1181
Joined: 26 Nov 2013 12:37
Location: Tbilisi, Georgia (the good one)

Re: TOGGLE INTERIOR ZOOM FUNCTION

#9 Post by San_Sany4 » 27 Nov 2024 22:28

Nothing that I know of. My bind still works in ETS2 1.53, it's like variant 3 but a little more complicated due to modifiers, and I also use a controller in XInput mode. The long hold part seems to be working for you, but not the short press toggle. Try variant 2 or 1, to see whether it works at all for you.
My World of Trucks. My Steam.
ETS2 since 1.4, ATS since 1.0. Vanilla player.
Guide: How to create and use settings presets in ATS and ETS2.
Guide: How to make Interior Zoom toggleable (better than in-game version)
User avatar
Bandit & The Snowman
Posts: 4161
Joined: 23 Oct 2014 15:55
Location: East Bound and Down

Re: TOGGLE INTERIOR ZOOM FUNCTION

#10 Post by Bandit & The Snowman » 28 Nov 2024 11:14

#1 and #2 work fine, also each term in the sum in #3 if singled out does. It's the abs() part that somehow makes the game ignore the short_press term (although it does work with #2...). I also tried swapping the short_press() and the long_press() terms but that ended up not working at all :?: Again whether I use XInput or not doesn't matter, also I had my local files verified and deleted controls.sii. I'm stumped.

Return to “Feature Wishlists and Suggestions”

Who is online

Users browsing this forum: CCBot [Bot]