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

milkan

Colonel
22 Badges
Sep 30, 2013
1.056
127
  • Crusader Kings II: Charlemagne
  • The Showdown Effect
  • Europa Universalis IV: Res Publica
  • Magicka
  • Knights of Pen and Paper +1 Edition
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • Europa Universalis IV
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Stellaris Sign-up
  • Crusader Kings III Referal
I recently bought three new monitors and want to try triple monitor gaming with CK2.

I was hoping to make a Interface/HUD mod for myself (my bezel corrected resolution is 5930x1080) and was hoping for someone to point to me which files I would need to modify to get all the interface buttons and such on the central monitor only.

The minimap is in main.gui but I am unsure about the other icons and interface bars and which files they are located in.

I am able to get the minimap in the central monitor by modifying the following (line 736) in main.gui
Code:
position = { x=-280 y=-248 }

Any help with the rest of the interface would be greatly appreciated.

-----------------------

EDIT : I finished most of the mod but am stuck in one place only.

I have also decided to release my Triple Monitor Interface HUD mod for now. Hope it helps someone else as well.

Current Bugs :

  • Sometimes the diplomacy interaction window opens in the leftmost monitor instead of the central monitor
 

Attachments

  • Triple_Monitor_HUD.rar
    3,1 MB · Views: 3
Last edited:
  • 1
Reactions:

milkan

Colonel
22 Badges
Sep 30, 2013
1.056
127
  • Crusader Kings II: Charlemagne
  • The Showdown Effect
  • Europa Universalis IV: Res Publica
  • Magicka
  • Knights of Pen and Paper +1 Edition
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • Europa Universalis IV
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Stellaris Sign-up
  • Crusader Kings III Referal
So after lots and lots of messing around in the interface files I finally got ALMOST of the interface elements in the central screen.
The modding itself was not very difficult but finding out where each interface element was a right pain.
Not to mention having to load CK2 a few thousand times just to check every change.
Wish the debug command reloadinterface was not locked to the developers only.

Anyways I am now stuck with only the right click menu not working correctly in every case. Basically if I am right clicking a character the diplomatic interface is opening correctly.

However if I am clicking an alert, or clicking on the peace button in the war menu, or right clicking a holding in the province view then the menus are opening in the left monitor again.

93izDZg.jpg


In this image you can see that clicking the alert icon (1) opens the diplomatic interaction box in the left monitor (2).

ViqpkUz.jpg


In this case right clicking the Castle Holding (1) creates the holding menu (2) in the left monitor again.

I messed around in the interface/domestic_diplomacy.gui but it doesn't seem to be exactly what I am looking for. I am pretty sure that this mod is almost complete but here's hoping someone can help with this little bit left.
 
  • 1
Reactions:

milkan

Colonel
22 Badges
Sep 30, 2013
1.056
127
  • Crusader Kings II: Charlemagne
  • The Showdown Effect
  • Europa Universalis IV: Res Publica
  • Magicka
  • Knights of Pen and Paper +1 Edition
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • Europa Universalis IV
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Stellaris Sign-up
  • Crusader Kings III Referal
Code:
-debug -debugscripts
for reloadinterface. Good luck

Wow this has been immensely helpful for some of the elements that I have not touched yet. Although I still cannot resolve the issues highlighted in the 2nd post, I have found some things.

  • I find that I need to press the console key (~) in the main menu and then all the interface elements get highlighted with a red box with corresponding filename and gui element details, so good! This only works in the main menu and not once a savegame has been loaded though.
  • Another thing I noticed is that using the console commands (reloadinterface) and (reload <filename>) need to be done while a save game is loaded BUT it is possible to resign, quit to the main menu and reload the save game and the files are reloaded correctly. This has saved me a lot time.
--------------

Regarding the issues in the 2nd post, I find the interface element is in
Code:
interface\domestic_diplomacy.gui, Line 15
domestic_diplomacy::right_part

Changing Line 18 from
Code:
position = { x = 0 y = 0 }
to
position = { x = 2006 y = 0 }
gets the dialogue box in the correct position in the following cases
  • For dialogue box generated when clicking an alert
  • When clicking the Peace button from the War screen
  • When right clicking a holding in a province
However when I am right clicking a portrait in any screen the dialogue box is opening in another monitor.

NOTE : 2006 is the offset number needed to move interface elements from one of my monitors to another for my setup. It can and probably will vary for other people having different resolutions.
---------------

So I am stuck in this final thing. Everything else has been resolved I think.
 
  • 1
Reactions:

milkan

Colonel
22 Badges
Sep 30, 2013
1.056
127
  • Crusader Kings II: Charlemagne
  • The Showdown Effect
  • Europa Universalis IV: Res Publica
  • Magicka
  • Knights of Pen and Paper +1 Edition
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • Europa Universalis IV
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Stellaris Sign-up
  • Crusader Kings III Referal
I am releasing the mod for anyone else who also wants to play CK2 in triple monitor setup. As mentioned there is 1 bug which I have been unable to fix. For anything else if I missed a window or such do inform me and I will see if I can fix that.

Paging @Captain Gars and/or @Meneth, I wonder if either of you can help me fixing what I am missing here.

Also can some mod please change the title to show that the post to [Release]Triple Monitor Interface
 

Divine

Tech Lead
Paradox Staff
33 Badges
Dec 26, 2005
582
1.011
  • Semper Fi
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Europa Universalis III Complete
  • Magicka
  • March of the Eagles
  • Europa Universalis III Complete
  • Victoria: Revolutions
  • For the Motherland
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Magicka: Wizard Wars Founder Wizard
  • Magicka 2 - Signup Campaign
  • Stellaris Sign-up
  • Crusader Kings II
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Diplomacy
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
Cool interface mod.
I've updated the thread title for you.

About the right click issue I unfortunately don't have time to look into it right now.
 
  • 1
Reactions:

ngppgn

Field Marshal
19 Badges
Jan 29, 2011
3.508
656
  • Crusader Kings III
  • Imperator: Rome
  • Imperator: Rome Deluxe Edition
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Stellaris
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Res Publica
  • Crusader Kings II
  • Heir to the Throne
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Conquest of Paradise
  • Divine Wind
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Crusader Kings II: The Old Gods
@milkan
Thanks you about posting the tips on reload interface - I'be found them inmensely helpful!
One question though: reloadinterface seems to reload the actual graphical assets (tga and dds files) but if I chamge values in e.g. a gui file and use reloadinterface, then save and reload, thr changes are not reflected.

So I wanted to ask, have you found a way to refresh changes in guibfiles without having to exit/reboot the game?
 

milkan

Colonel
22 Badges
Sep 30, 2013
1.056
127
  • Crusader Kings II: Charlemagne
  • The Showdown Effect
  • Europa Universalis IV: Res Publica
  • Magicka
  • Knights of Pen and Paper +1 Edition
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • Europa Universalis IV
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Stellaris Sign-up
  • Crusader Kings III Referal
Nice to see some interest. And of course I'll be happy to help.

So when I am editing .gui files (which to be honest for interfaces is always 95% of the time), I found that you need to use the console to reload the file from your mod using the command
Code:
reload <filename.gui>

As long as your mod has the file in the correct location it loads it. Afterwards all you need to do is exit to main menu and reload the game.

Hope this helps.
 

Meneth

Crusader Kings 3 Programmer
153 Badges
Feb 9, 2011
10.056
5.378
www.paradoxwikis.com
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Holy Knight (pre-order)
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Republic
  • Hearts of Iron IV: Expansion Pass
  • Steel Division: Normand 44 Sign-up
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Way of Life
  • Mount & Blade: With Fire and Sword
  • Mount & Blade: Warband
  • Magicka: Wizard Wars Founder Wizard
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: El Dorado
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Surviving Mars: Digital Deluxe Edition
  • BATTLETECH: Flashpoint
  • Crusader Kings II: Conclave
  • Surviving Mars
  • Cities: Skylines Industries
  • Stellaris: Galaxy Edition
  • BATTLETECH
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Stellaris: Humanoids Species Pack
  • Prison Architect
  • Crusader Kings II: The Old Gods
  • Cities: Skylines - Campus
  • Hearts of Iron IV: No Step Back
  • BATTLETECH - Digital Deluxe Edition
  • Crusader Kings Complete
  • Cities: Skylines - Parklife
  • Europa Universalis IV
  • Age of Wonders III
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Cradle of Civilization
  • 500k Club
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis III Complete
  • Cities: Skylines - Mass Transit
  • Europa Universalis III Complete
  • Cities: Skylines - Green Cities
  • Teleglitch: Die More Edition
  • Europa Universalis IV: Rule Britannia
In the case of some parts of the UI, "reloadgui" will cause it to update. This doesn't work for everything though.
Other than that, exiting to the main menu after reloading a specific file should generally work, since that causes that particular UI to be recreated from the now reloaded file, like @milkan says.
 

goondo

Second Lieutenant
50 Badges
Jul 11, 2012
143
21
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Mare Nostrum
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings III
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Stellaris: Galaxy Edition
  • Europa Universalis IV
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Jade Dragon
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
@milkan
I checked out your mod just to see what fields you had edited to re-position everything. I was surprised to see that that you had included the plot.dds file in the gfx/interface directory. Why was that necessary? I didn't see a difference in the images in gimp.

Thanks for putting up the useful console commands, and great job on the mod.
 
Last edited:

milkan

Colonel
22 Badges
Sep 30, 2013
1.056
127
  • Crusader Kings II: Charlemagne
  • The Showdown Effect
  • Europa Universalis IV: Res Publica
  • Magicka
  • Knights of Pen and Paper +1 Edition
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • Europa Universalis IV
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Stellaris Sign-up
  • Crusader Kings III Referal
@milkan
I checked out your mod just to see what fields you had edited to re-position everything. I was surprised to see that that you had included the plot.dds file in the gfx/interface directory. Why was that necessary? I didn't see a difference in the images in gimp.

Thanks for putting up the useful console commands, and great job on the mod.

That is because I increased my intrigue decision window from 4 to 6 like in the mod BiggerDecisionWindow. It was just personal preference on my part and other than the Intrigue window it doesn't have any other effects.

My pleasure, it took a while and I tried commenting everywhere I changed the values so that it could help others. Modding in Paradox games is kinda obtuse yet easy. Sadly I could not make everything i wanted happen but its a nice start I think.