Sunglasses, put on or take off, as required - For the 'new lighting system' 1.40+

Post Reply
User avatar
JHTrucker
Expert
Posts: 1334
Joined: February 7th, 2020, 3:19 pm
Location: UK

Sunglasses, put on or take off, as required - For the 'new lighting system' 1.40+

Post by JHTrucker » August 31st, 2022, 3:42 pm

Sunglasses

That's right, when driving, if the sunny weather is just too bright... put your sunglasses on, with just a press of a button!
But don't forget to take them off again at night, you're not a rockstar.
Image
You can choose between sunglasses with a 'dark tint' (shown in above ATS pic) or 'light tint' (shown in above ETS2 pic) if you prefer only a subtle darkening.
The pics illustrate the difference between sunglasses on or off only. You are free to choose when you want them on or off.

This isn't a graphics mod
You can keep using whatever graphics/weather/seasons mods you might have, your game will look exactly the same as it always has, but now you can, if you want to or need to, at any time, put sunglasses on to reduce the brightness.

It's actually an Advisor mod
If you use an Advisor mod already, then don't use this mod as well, but instead test it to see if you like it, then you can apply the edits & files listed below to your preferred mod, if you can or ask the mod author to include my sunglasses.

Why is this an Advisor mod?
The game has 2 on screen Advisors, 'full & mini', I changed 'full' to have it's transparent background shown at fullscreen, leaving 'mini' untouched. You now have the illusion of putting on sunglasses as and when required and then taking them off again when not needed. The on screen advisor isn't affected by the 'tint' and so remains easily readable with or without your sunglasses on.

How does it work?
Press F3 to toggle between "Full Advisor" & "Mini Advisor". <-- Or your assigned key/button.
Sunglasses on = "Full Advisor"
Sunglasses off = "Mini Advisor"

There's 4 mods to choose from for both ATS & ETS2 (all use game standard Advisor look and location):
ATS 1.45 Sunglasses DT (Advisor FM).scs - 'Dark Tint' Advisor Full & Mini.
ATS 1.45 Sunglasses LT (Advisor FM).scs - 'Light Tint' Advisor Full & Mini.
ATS 1.45 Sunglasses DT (Advisor MM).scs - 'Dark Tint' Advisor Mini & Mini (Full has been cut down to Mini so there is no visual difference when wearing sunglasses).
ATS 1.45 Sunglasses LT (Advisor MM).scs - 'Light Tint' Advisor Mini & Mini (Full has been cut down to Mini so there is no visual difference when wearing sunglasses).

ETS2 1.45 Sunglasses DT (Advisor FM).scs - 'Dark Tint' Advisor Full & Mini.
ETS2 1.45 Sunglasses LT (Advisor FM).scs - 'Light Tint' Advisor Full & Mini.
ETS2 1.45 Sunglasses DT (Advisor MM).scs - 'Dark Tint' Advisor Mini & Mini (Full has been cut down to Mini so there is no visual difference when wearing sunglasses).
ETS2 1.45 Sunglasses LT (Advisor MM).scs - 'Light Tint' Advisor Mini & Mini (Full has been cut down to Mini so there is no visual difference when wearing sunglasses).

The supplied mods are for game version 1.45.
For 1.40+ look at "How can I add your sunglasses to my preferred Advisor mod?" at the bottom of this post.
ATS 1.45 Sunglasses v1.zip --> https://mega.nz/file/bkBFhSRK#1B2ZNcrFn ... sPrdsBrQQA
ETS2 1.45 Sunglasses v1.zip --> https://mega.nz/file/LhZiXC5C#A_Xv33A2e ... k1SFz7F3M8
Use only one mod at a time to see which one looks best for you, then just keep using that one.

For single screen setups:
Add the mod of your choice.
If you use NPI AA then you can edit your 'step 2 multimon_config.sii' file to expand the ui slightly to avoid seeing untinted screen edges (if required).
Single monitor multimon_config.sii file:
normalized_ui_x: 0.00005
normalized_ui_width: 0.9999 (don't use 1.0 as it will break NPI AA).

For multi screen setups:
Add the mod of your choice.
Sunglasses will only appear on the same screen that displays your menu (usually centre screen with a triple setup).
If you want sunglasses across all driving screens and therefore the menu will also have to span all screens, edit your 'multimon_config.sii' file to expand the ui.
Multi monitor multimon_config.sii file:
normalized_ui_x: 0.00005
normalized_ui_width: 0.9999 (don't use 1.0 as it will break NPI AA, if you use it).

You'll then need an advisor mod that relocates the advisor to the centre and modify it to add my sunglasses. You'll still be stuck with a massive menu spanning all your screens, but if you spend all your time driving, what does a massive menu matter? Your choice.

Here's an example of a triple setup:
Left has standard centered menu and sunglasses only on the centre screen.
Right has the menu spanning all screens and therefore your sunglasses also span all screens.
Image

That's it.

How can I add your sunglasses to my preferred Advisor mod?
Important note: The highlighted edits below add sunglasses to a game default advisor mod, like my supplied 1.45 mod does.
All advisor mods require 2 advisors within them, just like the game default one (mini & full), otherwise you can't toggle sunglasses on/off. If your preferred mod only has 1 advisor within it, you can't add sunglasses.


You need to edit your mods "ui\adviser.sii" file with only the highlighted changes listed below and then steal my "material\ui\adviser\JHT_sungl.*" files and add them to your mod.

SiiNunit
{
ui::window : _nameless.0049c8dd1 {
window_handler: _nameless.0049c8dd0
clip_children: true
keep_aspect: none
user_string_data: ""
first_direction_focus_id: 0
fitting: false
my_children: 5
my_children[0]: _nameless._.tutorial.standard
my_children[1]: _nameless._.tutorial.uk
my_children[2]: _nameless._.adviser.standard
my_children[3]: _nameless._.adviser.uk
my_children[4]: _nameless._.adviser.area
coords_l: -5760
coords_r: 5760
coords_t: 900
coords_b: 0
area_l: -5760
area_r: 5760
area_t: 900
area_b: 0


ui::text : _nameless._.full.mode.bcg {
text: "<img src=/material/ui/adviser/JHT_sungl.mat xscale=stretch yscale=stretch>"
coords_l: -5760
coords_r: 5760
coords_t: 900
coords_b: 0
area_l: 0
area_r: 0
area_t: 0
area_b: 0
id: 0
layer: 1

Extra notes:
1 - Game versions 1.41/1.42/1.43 also need the above highlighted changes made to "ui\multiplayer\multiplayer_adviser.sii" file because SCS some how made the game only use that file instead of the original one for singleplayer. They've now fixed that since 1.44.

That's it.

Final note:
For it to work, you need 2 advisors within the mod that are identical apart from one of them has a fullscreen light grey background. The default game puts that background only on the advisor.
That way you toggle between them and the only thing you see different is one of them gives the full screen a light grey tint.

I have no interest in creating advisor mods, there's plenty already, but simply giving this working idea to those who want to incorporate it into their mod, if they can.
Last edited by JHTrucker on February 12th, 2023, 3:36 pm, edited 13 times in total.
multimon_config.sii files: viewtopic.php?p=17658#p17658
controls.sii edits: viewtopic.php?p=24744#p24744
TrackIR edits: viewtopic.php?p=46613#p46613
Extra Cameras: viewtopic.php?p=46034#p46034
User avatar
Arayas
Site Admin
Posts: 7377
Joined: December 15th, 2018, 3:25 am
Location: Romania
Contact:

Re: Sunglasses - Coming very soon...

Post by Arayas » August 31st, 2022, 5:13 pm

Image

finally no more that ugly bright light!
ImageImage Image
support@roextended.ro
www.roextended.ro
User avatar
Tapir
VIP
Posts: 4216
Joined: December 15th, 2018, 3:07 pm
Location: Stratford, UK

Re: Sunglasses - Coming very soon...

Post by Tapir » August 31st, 2022, 5:33 pm

Looking at your pictures JHTrucker, it`s looking really fine with sunglasses!!

System: Windows 11 PRO
Processor: Intel i7-12700KF 5GHZ
Motherboard: Gigabyte B760 DS3H AX
Memory: Corsair DDR5-6000 32 GB
Storage: Samsung 990 M2 SSD + 2 Samsung 870 SSD
Graphics: Asus GeForce Dual RTX 3060 V2 12GB GDDR6
Olsbyn
PPM
Posts: 29
Joined: December 30th, 2019, 8:03 pm

Re: Sunglasses - Coming very soon...

Post by Olsbyn » September 1st, 2022, 8:33 am

This is something I have been wanting for ages, a small ( not saying easy to implement ) mod that will make a world of difference !
User avatar
JHTrucker
Expert
Posts: 1334
Joined: February 7th, 2020, 3:19 pm
Location: UK

Re: Sunglasses - Coming very soon...

Post by JHTrucker » September 1st, 2022, 1:37 pm

Strangely, I woke up the other morning with this 'simple' idea, even though I hadn't been thinking about it. With a bit of fiddling around I got it to work and then created more work for myself by thinking of extra options... 2 mods became 8!

The important thing to note is that this isn't a graphics mod and so your game will still just look like it always has until you put on your sunglasses, when you want to or need to, at any time or weather condition, you choose. But do take them off at night.

My only disappointment, not thinking of this idea when 1.40 first came out... any way, enough of all this nonsense, I need to update the first post with all the info and mods!

Hope you all like it.
multimon_config.sii files: viewtopic.php?p=17658#p17658
controls.sii edits: viewtopic.php?p=24744#p24744
TrackIR edits: viewtopic.php?p=46613#p46613
Extra Cameras: viewtopic.php?p=46034#p46034
User avatar
Tapir
VIP
Posts: 4216
Joined: December 15th, 2018, 3:07 pm
Location: Stratford, UK

Re: Sunglasses, put on or take off, as required - For the 'new lighting system' 1.40+

Post by Tapir » September 5th, 2022, 12:50 am

I need sunglasses very badly, as you can see.


Image

System: Windows 11 PRO
Processor: Intel i7-12700KF 5GHZ
Motherboard: Gigabyte B760 DS3H AX
Memory: Corsair DDR5-6000 32 GB
Storage: Samsung 990 M2 SSD + 2 Samsung 870 SSD
Graphics: Asus GeForce Dual RTX 3060 V2 12GB GDDR6
User avatar
Don
PPM
Posts: 66
Joined: February 18th, 2020, 1:56 pm
Location: Worcestershire

Re: Sunglasses, put on or take off, as required - For the 'new lighting system' 1.40+

Post by Don » September 5th, 2022, 11:27 am

I just need Glasses lol
User avatar
JHTrucker
Expert
Posts: 1334
Joined: February 7th, 2020, 3:19 pm
Location: UK

Re: Sunglasses, put on or take off, as required - For the 'new lighting system' 1.40+

Post by JHTrucker » September 5th, 2022, 6:56 pm

Tapir wrote:
September 5th, 2022, 12:50 am
I need sunglasses very badly, as you can see.
Well, I can only supply them... it's up to you to wear them or not...
multimon_config.sii files: viewtopic.php?p=17658#p17658
controls.sii edits: viewtopic.php?p=24744#p24744
TrackIR edits: viewtopic.php?p=46613#p46613
Extra Cameras: viewtopic.php?p=46034#p46034
Katarsis
Posts: 9
Joined: February 5th, 2023, 8:52 pm

Re: Sunglasses, put on or take off, as required - For the 'new lighting system' 1.40+

Post by Katarsis » February 9th, 2023, 8:38 pm

Aw. I really want to use this mod, the only reason i cant play ATS is precisely the overexposed scenery that is destroying my eyes.
But im currently using this advisor mod

https://forum.scssoft.com/viewtopic.php?t=234726

and i want to keep it since i want the mini advisor on top without the big gps (that is annoying as h3ck once you get used to the game)

Tried to implement the sunglasses in it without success (i dont have a clue what im doing). Also there is no "fullmode.bcg" in that mod, so i dont know where to make the changes.

Any guide would be really appreciated. In any case i will do the opposite, i will also ask in the scs forums to the author if he can implement this, but im afraid i already know the answer lol.
User avatar
JHTrucker
Expert
Posts: 1334
Joined: February 7th, 2020, 3:19 pm
Location: UK

Re: Sunglasses, put on or take off, as required - For the 'new lighting system' 1.40+

Post by JHTrucker » February 10th, 2023, 6:29 pm

@Katarsis - Did you actually try my sunglasses to see if it helps?
If not, try first, in case it doesn't help in the way you think it will.

I thought at the time I created this that other advisor mods may remove the parts they don't need and then you can't add my 'sunglasses'... but modders like making their mods better, so you never know... it might get updated, there's always someone in the SCS forum saying "add sunglasses" to the game, it's too bright...

For it to work, you need 2 advisors within the mod that are identical apart from one of them has a fullscreen light grey background. The default game puts that background only on the advisor.
That way you toggle between them and the only thing you see different is one of them gives the full screen a light grey tint.

I have no interest in creating advisor mods, there's plenty already, but simply giving this working idea to those who want to incorporate it into their mod.
multimon_config.sii files: viewtopic.php?p=17658#p17658
controls.sii edits: viewtopic.php?p=24744#p24744
TrackIR edits: viewtopic.php?p=46613#p46613
Extra Cameras: viewtopic.php?p=46034#p46034
Post Reply