Is there a way to remove the advertisements from the launcher?

  • We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Lord Antony

Private
93 Badges
Dec 3, 2018
12
10
  • Tyranny: Archon Edition
  • Crusader Kings II: Horse Lords
  • Stellaris: Federations
  • Age of Wonders: Planetfall Season pass
  • Crusader Kings II: Conclave
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Common Sense
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Together for Victory
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • BATTLETECH
  • Hearts of Iron IV: Death or Dishonor
  • Tyranny - Bastards Wound
  • Age of Wonders
  • Age of Wonders II
  • Cities: Skylines - Green Cities
  • Imperator: Rome - Magna Graecia
  • Stellaris: Lithoids
  • Age of Wonders: Planetfall Premium edition
  • Cities: Skylines - Campus
  • Battle for Bosporus
  • Age of Wonders: Planetfall - Revelations
  • Imperator: Rome Deluxe Edition
  • Age of Wonders: Planetfall
  • Europa Universalis IV: Golden Century
  • Europa Universalis IV
  • Age of Wonders: Planetfall Sign Up
  • Hearts of Iron IV: No Step Back
  • Europa Universalis 4: Emperor
  • Crusader Kings II: Holy Fury
  • Imperator: Rome Sign Up
  • Europa Universalis IV: Dharma
  • Age of Wonders: Planetfall Deluxe edition
  • Warlock: Master of the Arcane
  • Stellaris: Ancient Relics
  • Cities: Skylines - Parklife
  • Cities: Skylines
  • Stellaris: Necroids
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
Ashampoo_Snap_Tuesday, December 8, 2020_14h52m17s_001_Chrome Legacy Window.png
 
  • 5
Reactions:

Mousetick

Major
93 Badges
Oct 13, 2012
689
1.401
  • Crusader Kings II: Monks and Mystics
  • Age of Wonders II
Not that I know of. Other than brute-force denying network connections with an application firewall:

1607434578311.png


error [ModHandler]: Error occurred in getModsSource method: Error while getting default mods platform source for undefined: Error while getting default mods platform: Error while getting mods platform: Error while checking if game hoi4 has PDX mods: connect EACCES 151.101.122.217:443
warn [TelemetryService]: Failed sending telemetry: RequestError: Error: connect EACCES 52.206.171.113:443
warn [NewsFeedContainer]: Failed to get user segments: VError: Getting user marketing segments failed: connect EACCES 151.101.122.217:443

You can't just block specific IP addresses because the Launcher talks to CDNs which IP addresses will vary depending on your location and whatever network magic the CDN is performing. So all outgoing network traffic has to be blocked as a whole.

This also blocks Launcher update checks (not necessarily a bad thing), and downloading mod thumbnails. Other than that it seems to work ok.
I just did a quick test, not thorough enough to confirm there are no functional issues with regards to mod handling.

I had to clean the contents of the .launcher-cache folder (within the Documents > Paradox Interactive > Hearts of Iron IV folder) to completely get rid of the news/advertisements.

YMMV.
 
  • 5
Reactions:

bitmode

1st Reverse Engineer Battalion
Nov 10, 2016
3.824
7.024
Not that I know of. Other than brute-force denying network connections with an application firewall:

View attachment 660217



You can't just block specific IP addresses because the Launcher talks to CDNs which IP addresses will vary depending on your location and whatever network magic the CDN is performing. So all outgoing network traffic has to be blocked as a whole.

This also blocks Launcher update checks (not necessarily a bad thing), and downloading mod thumbnails. Other than that it seems to work ok.
I just did a quick test, not thorough enough to confirm there are no functional issues with regards to mod handling.

I had to clean the contents of the .launcher-cache folder (within the Documents > Paradox Interactive > Hearts of Iron IV folder) to completely get rid of the news/advertisements.

YMMV.
Thanks, blocking services.paradoxplaza.com seems to have done the trick.

Btw, is there a launch option to skip the launcher entirely when launching the game through steam? I virtually never change anything there. The old one used to have -nolauncher but that doesn't work anymore.
 
  • 1Like
Reactions:

Mousetick

Major
93 Badges
Oct 13, 2012
689
1.401
  • Crusader Kings II: Monks and Mystics
  • Age of Wonders II
Btw, is there a launch option to skip the launcher entirely when launching the game through steam? I virtually never change anything there.

Not sure if you're on Linux or Windows. But on Windows the executable that is started from Steam is dowser.exe in the HOI 4 game directory.
If you move dowser.exe out of the way and rename (or copy) hoi4.exe to dowser.exe, Steam launches the game directly. I just tried it and it works fine. No more horrid Launcher getting in the way - yeah!

Alternatively you can make a Windows shortcut (or a Linux symlink) to hoi4.exe and start it directly from your desktop instead of from Steam. If the Steam client is running in the background before running hoi4.exe, all Steam in-game features (overlay, achievements, multiplayer etc.) will still be available, at least on Windows but I'd expect the same on Linux.
 
  • 1Like
  • 1
Reactions:

Anaraxes

Lt. General
51 Badges
Jun 22, 2012
1.407
1.430
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Jade Dragon
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Crusader Kings II: Reapers Due
  • Cities: Skylines - Natural Disasters
  • Europa Universalis IV: Third Rome
  • Hearts of Iron IV: Death or Dishonor
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Apocalypse
  • Cities: Skylines - Parklife
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Crusader Kings III
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Victoria 2
  • Europa Universalis IV
  • Age of Wonders III
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Res Publica
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Cities: Skylines - After Dark
you can make a Windows shortcut (or a Linux symlink) to hoi4.exe and start it directly from your desktop
This is what I usually do.

I have noticed a couple of times that Steam installations aren't always really completed even though the Steam client says everything's been downloaded and installed. Sometimes you have to launch the game via Steam to get a patch to really, truly, be finalized correctly. But it's a nice timesaver most of the time.
 

bitmode

1st Reverse Engineer Battalion
Nov 10, 2016
3.824
7.024
Alternatively you can make a Windows shortcut (or a Linux symlink) to hoi4.exe and start it directly from your desktop instead of from Steam. If the Steam client is running in the background before running hoi4.exe, all Steam in-game features (overlay, achievements, multiplayer etc.) will still be available, at least on Windows but I'd expect the same on Linux.
When I run it like this on Linux, I don't get the steam overlay :(
 

Mousetick

Major
93 Badges
Oct 13, 2012
689
1.401
  • Crusader Kings II: Monks and Mystics
  • Age of Wonders II
When I run it like this on Linux, I don't get the steam overlay :(
You could try what's hinted here, in a wrapper script:
Q. The Steam Overlay won't work when launching from outside of Steam.
A.
On Linux you must set the LD_PRELOAD environment variable to load the gameoverlayrenderer.so

This will look something like:
export LD_PRELOAD=~/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so;~/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so

Taken from Developing for SteamOS and Linux.
 
  • 1
Reactions:

bitmode

1st Reverse Engineer Battalion
Nov 10, 2016
3.824
7.024
How did you block by hostname on Linux, using the /etc/hosts file?
Yes
You could try what's hinted here, in a wrapper script:
Neat! The library path seems to be outdated though; I ended up with Exec=env LD_PRELOAD=/home/USER/.steam/ubuntu12_64/gameoverlayrenderer.so /home/USER/.steam/steam/steamapps/common/Hearts\ of\ Iron\ IV/hoi4 in my .desktop file.

Also dug around a bit in the launcher code but found no additional launch options or config settings beyond the minimal stuff present in the default configuration. No way to inject CSS either as far as I can tell. In my opinion this thing is still strictly worse than the old launcher.
 
  • 2
Reactions:

grommile

Field Marshal
66 Badges
Jun 4, 2011
22.459
38.920
  • Europa Universalis IV
  • Crusader Kings III
  • Stellaris
  • Shadowrun Returns
  • Teleglitch: Die More Edition
  • Victoria 2
  • 500k Club
  • March of the Eagles
  • Knights of Pen and Paper 2
  • Crusader Kings II
  • Europa Universalis III
  • Hearts of Iron IV: Cadet
  • Cities: Skylines
  • Prison Architect
The library path seems to be outdated though
it's not outdated, it's just written for a different launching method (specifically, it's a short fragment of a shell script, rather than a .desktop file).

in most modern shells, ~ gets expanded to the home directory of the current user.
 

kettyo

General
11 Badges
Feb 11, 2017
2.429
1.260
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
Btw, is there a launch option to skip the launcher entirely when launching the game through steam? I virtually never change anything there. The old one used to have -nolauncher but that doesn't work anymore.

I think making a shortcut directly to HOI4. EXE works. It should skip the launcher. The game should use the mods used last time.
 

bitmode

1st Reverse Engineer Battalion
Nov 10, 2016
3.824
7.024
it's not outdated, it's just written for a different launching method (specifically, it's a short fragment of a shell script, rather than a .desktop file).

in most modern shells, ~ gets expanded to the home directory of the current user.
~/.local/share/Steam/ubuntu* does not exist on my system, it is not just the tilde expansion. The location of steam files seems to depend on the installation method. (I'm using Ubuntu)
I think making a shortcut directly to HOI4. EXE works. It should skip the launcher. The game should use the mods used last time.
Yep, I just like to start games through the Steam interface. Oh well.
 

Mousetick

Major
93 Badges
Oct 13, 2012
689
1.401
  • Crusader Kings II: Monks and Mystics
  • Age of Wonders II
Yep, I just like to start games through the Steam interface. Oh well.
Why don't you try the hack I described earlier for Windows, but transposed to Linux.
Something like:
- locate dowser.exe in HOI 4 game directory (I don't know how it's named exactly on Linux, might be 'dowser' without the .exe)
- rename it to something else (e.g. dowser.orig)
- create a symbolic link named dowser[.exe] in the HOI 4 game directory that points to the hoi4 executable (e.g. ln -s hoi4 dowser)
This should work.
 

bitmode

1st Reverse Engineer Battalion
Nov 10, 2016
3.824
7.024
Why don't you try the hack I described earlier for Windows, but transposed to Linux.
Something like:
- locate dowser.exe in HOI 4 game directory (I don't know how it's named exactly on Linux, might be 'dowser' without the .exe)
- rename it to something else (e.g. dowser.orig)
- create a symbolic link named dowser[.exe] in the HOI 4 game directory that points to the hoi4 executable (e.g. ln -s hoi4 dowser)
This should work.
Yep, the files lack the .exe extension. I'm just worried that an update or verifying local files undoes this solution. After realizing the game starts dowser without any further arguments, I've now set the launch "options" to ./hoi4 # %command% and it seems to work fine; maybe something like that works on Windows as well.
Is there a way to remove the launcher and back to previous one? It's pure shit.
The old launcher was part of hoi4.exe and it is not there anymore in newer patches. You can only get it by reverting to patch 1.7.1 or older.
 
  • 1Like
Reactions:

Mousetick

Major
93 Badges
Oct 13, 2012
689
1.401
  • Crusader Kings II: Monks and Mystics
  • Age of Wonders II
I'm just worried that an update or verifying local files undoes this solution.
Right, it would.

I've now set the launch "options" to ./hoi4 # %command% and it seems to work fine; maybe something like that works on Windows as well.
Wow, I had never heard of the %command% special value for Steam launch options, until now.

So I tried it on Windows, it works fine, except the full path to hoi4.exe has to be specified.
E.g. "C:\Program Files (x86)\Steam\steamapps\common\Hearts of Iron IV\hoi4.exe" %command%

Very cool trick, and cleaner too.
 
  • 1Like
Reactions: