How to autoload a console command every time the game is started?

  • 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.

fyrkrans

Captain
59 Badges
Aug 27, 2016
470
30
  • Europa Universalis IV: Third Rome
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Charlemagne
  • Crusader Kings II
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Field Marshal
  • Europa Universalis IV: Rule Britannia
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Megacorp
  • Stellaris: Apocalypse
  • Crusader Kings Complete
  • Stellaris: Distant Stars
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Dharma
  • Age of Wonders III
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Humanoids Species Pack
  • Stellaris: Galaxy Edition
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome Sign Up
  • Europa Universalis IV: Golden Century
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Stellaris
  • Crusader Kings II: Legacy of Rome
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Europa Universalis III
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
If one wants to use a console command every time the game is started (for example "tweakergui borders.usemesh") how would one do that?

AFAIR it's possible to do that and one has to edit a plain text file to achieve this. But I can't remember the details.

Does anybody know?
 

fyrkrans

Captain
59 Badges
Aug 27, 2016
470
30
  • Europa Universalis IV: Third Rome
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Charlemagne
  • Crusader Kings II
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Field Marshal
  • Europa Universalis IV: Rule Britannia
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Megacorp
  • Stellaris: Apocalypse
  • Crusader Kings Complete
  • Stellaris: Distant Stars
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Dharma
  • Age of Wonders III
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Humanoids Species Pack
  • Stellaris: Galaxy Edition
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome Sign Up
  • Europa Universalis IV: Golden Century
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Stellaris
  • Crusader Kings II: Legacy of Rome
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Europa Universalis III
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
I'll allow myself to post this quote from a conversation here, hoping that it might help others:
By now I fear that I was wrong about that [i.e. the possibility to autoload console commands] (and was thinking of a workaround for a CK2 bug on GNU/Linux instead).

However, there is at least a way to make the whole procedure a bit more convenient. I read about it here.

So apparently you could create a file in Steam's Stellaris directory and put all the console commands you want to use in there (on separate lines) and then load that file. I tested it (since there were users on Reddit who said it didn't work for them) and for me it worked to create such a file and then load it in-game. You could use an editor to create that file or write something like this into your shell:
Code:
echo -e "tweakergui borders.usemesh\ntweakergui draw.dust" > ~/.steam/steam/steamapps/common/Stellaris/fix #the e flag tells echo to interpret \n as newline character; instead of interpreting it literally

Note that if you only use one console command to fix the border/empire issue and don't really use other console commands when you actually play the game it might be easier for you to simply use the arrow keys to go back in Stellaris' console history to go back to the command you need.

edit: If you use an Intel chip and have that problem with the empires/borders too you might want to check out this bug report on FreeDesktop.
 
Last edited: