Crusader Kings II

Crusader Kings II

scale_ui
ojii Oct 19, 2017 @ 3:29am
linux support
On Ubuntu, you can get the dependencies using apt install gimp-dds.

Follow the instructions in the mod description, in step 3, make sure to change the PROGRAM_BASE, in step4, instead of running the bat, create the following bash script and run it:
gimp -i --batch-interpreter=python-fu-eval -b "execfile('rescale_gfx.py'); pdb.gimp_quit(1)" cp scale_ui.mod ..
< >
Showing 1-15 of 15 comments
Sivik Nov 30, 2017 @ 4:54pm 
I am running the linux install and I'm getting a number of errors and the process just hangs:
sudo gimp -i --batch-interpreter=python-fu-eval -b "execfile('rescale_gfx.py'); pdb.gimp_quit(1)"

(gimp:26470): GLib-GObject-WARNING **: g_object_set_valist: object class 'GeglConfig' has no property named 'cache-size'

(gimp:26470): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1E53220 from "gimp:point-layer-mode" to "gimp:dissolve-mode"

(gimp:26470): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1E536C0 from "gimp:point-layer-mode" to "gimp:behind-mode"

(gimp:26470): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1E54800 from "gimp:point-layer-mode" to "gimp:multiply-mode"

(gimp:26470): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1E54A00 from "gimp:point-layer-mode" to "gimp:screen-mode"

(gimp:26470): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1E54DD0 from "gimp:point-layer-mode" to "gimp:overlay-mode"

(gimp:26470): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1E551C0 from "gimp:point-layer-mode" to "gimp:difference-mode"

(gimp:26470): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1E555B0 from "gimp:point-layer-mode" to "gimp:addition-mode"

(gimp:26470): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1E559F0 from "gimp:point-layer-mode" to "gimp:subtract-mode"

(gimp:26470): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1E55DB0 from "gimp:point-layer-mode" to "gimp:darken-only-mode"

(gimp:26470): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1E56200 from "gimp:point-layer-mode" to "gimp:lighten-only-mode"

(gimp:26470): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1E56610 from "gimp:point-layer-mode" to "gimp:hue-mode"

(gimp:26470): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1E56940 from "gimp:point-layer-mode" to "gimp:saturation-mode"

(gimp:26470): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1E56DA0 from "gimp:point-layer-mode" to "gimp:color-mode"

(gimp:26470): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1E57610 from "gimp:point-layer-mode" to "gimp:value-mode"

(gimp:26470): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1E57990 from "gimp:point-layer-mode" to "gimp:divide-mode"

(gimp:26470): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1E57E10 from "gimp:point-layer-mode" to "gimp:dodge-mode"

(gimp:26470): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1E58180 from "gimp:point-layer-mode" to "gimp:burn-mode"

(gimp:26470): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1E585D0 from "gimp:point-layer-mode" to "gimp:hardlight-mode"

(gimp:26470): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1E58970 from "gimp:point-layer-mode" to "gimp:softlight-mode"

(gimp:26470): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1E58D70 from "gimp:point-layer-mode" to "gimp:grain-extract-mode"

(gimp:26470): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1E591D0 from "gimp:point-layer-mode" to "gimp:grain-merge-mode"

(gimp:26470): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1E59580 from "gimp:point-layer-mode" to "gimp:color-erase-mode"

(gimp:26470): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1E59970 from "gimp:point-layer-mode" to "gimp:erase-mode"

(gimp:26470): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1E59D90 from "gimp:point-layer-mode" to "gimp:replace-mode"

(gimp:26470): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1E5A160 from "gimp:point-layer-mode" to "gimp:anti-erase-mode"
Traceback (most recent call last):
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 821, in _run
return apply(func, params[1:])
File "/usr/lib/gimp/2.0/plug-ins/python-eval.py", line 25, in code_eval
exec code in globals()
File "<string>", line 1, in <module>
File "rescale_gfx.py", line 12, in <module>
PROGRAM_BASE = os.environ["ProgramFiles(x86)"]
File "/usr/lib/python2.7/UserDict.py", line 40, in __getitem__
raise KeyError(key)
KeyError: 'ProgramFiles(x86)'
batch command experienced an execution error
goondo  [developer] Nov 30, 2017 @ 5:08pm 
I will not be supporting linux. I will say that I have gotten it to work on CentOS 7, but you will need to modify rescale_gfx.py to account for the difference in directory structues from Windows to Linux.
cannon.dt May 18, 2018 @ 10:53pm 
@ojii Can you please elaborate on your instruction? I see PROGRAM_BASE in the install scale ui python file but I dont see what to change it to. Running python install_scale_ui_mod.py results in this line in the debug log -
Trouble Files:
/.local/share/Steam/steamapps/common/Crusader Kings II/gfx/interface/store_filler.dds
What could be the issue?
Last edited by cannon.dt; May 18, 2018 @ 11:47pm
goondo  [developer] May 19, 2018 @ 4:15am 
I would say that you got it working if you saw that in the debug log. Did you also see other output like load *.dds in debug.log. You should only have to now select the mod in the ck2 launcher.
cannon.dt May 19, 2018 @ 8:43am 
You are right @goondo. Brilliant, I just did not bother to check with the game because I saw runtime execution errors in the terminal... Strange. Actually the linux part runs really well. I just ran python install....py and then the bash script that ojii posted above. I chose 1554 as I was using 4k monitor. The scaling is all well but the fonts are terribly small. The interface is still practically unusable as I cannot read anything :(
Is there any solution for that.
BTW, kudos on the mod, it is great :)
goondo  [developer] May 19, 2018 @ 2:26pm 
cannon.dt, Could you post a screenshot for me to see?
cannon.dt May 20, 2018 @ 4:31am 
Last edited by cannon.dt; May 20, 2018 @ 5:30am
goondo  [developer] May 20, 2018 @ 6:03am 
cannon-dt, Two possibilities.

1). You may have another mod on as well and it may be interfering with the fonts I included with the mod.

2). Or the contents of scale_ui/1544p was not copied to scale_ui_1544p.
cannon.dt May 20, 2018 @ 12:24pm 
I only enabled your mod, so that is certainly not an issue. I disabled everything else, I can screen shot that too if you want.
How do I fix the second issue? Rerun the whole thing? Choose a different option?
goondo  [developer] May 20, 2018 @ 1:36pm 
Do

cd /.paradoxinteractive/Crusader King II/mod
cp -r scale_ui/1544p scale_ui_1544p/.
cannon.dt May 21, 2018 @ 1:44am 
Thanks, am not at home this week. Will try this out and let you know
cannon.dt May 23, 2018 @ 9:30am 
Awesome !!
The scale_ui_1554p dir was protected. I had to chmod it and then manually copied gfx and interface directories from scale_ui/1554p and lo behold, it is all super good now. Fonts scale well too... Here is a screen shot...
https://steamcommunity.com/sharedfiles/filedetails/?id=1392878955
Thanks for all the help man, most appreciated :)
goondo  [developer] May 23, 2018 @ 3:36pm 
Glad its working.
Markus Jul 15, 2018 @ 2:44am 
I am here on Ubuntu 18.04 with Steam 8/2018 and the path are a tad bit different:

GIMP_DDS_PLUGIN = /usr/lib/gimp/2.0/plug-ins/dds
GAME_HOME = ~/.steam/steam/steamapps/common/Crusader Kings II

If you perhaps rewrote install_scale_ui.py to check a list of directories, not just one, it would be very easy to add all the different paths of the different operating systems.

Awesome mod btw.!
Bonecrusher Dec 22, 2021 @ 12:14pm 
Arch here

I have tried and tried but just cannot get it to work.

My method was to do "python install_scale_ui_mod.py" both with sudo and without sudo. At first I was getting this error, "TabError: inconsistent use of tabs and spaces in indentation," but I managed to correct the indentation on line 29.

Now I keep getting "Could not find GIMP at ( %s )" % GIMP_HOME." I have tried every possible location for Gimp, but it is unable to find it.
< >
Showing 1-15 of 15 comments
Per page: 1530 50