Crusader Kings II

Crusader Kings II

scale_ui
Shadrach Jul 31, 2018 @ 2:43pm
Errors on running install_scale_ui_mod.bat
OK so I tried to run this. After editing the .bat file because I have a different GIMP install directory like this:
if exist "d:\bin\GIMP\32\bin\python.exe" ( "d:\bin\GIMP\32\bin\python.exe" install_scale_ui_mod.py )

I then get prompted for the location of GIMP as well as the game, and also the game version (how do I find this?).

This is the following output I get:
https://pastebin.com/pVUjesr9

I also get the following popup:
https://imgur.com/a/ZstV2wY

After this it just hangs there, and there's no indication in Task Manager that any work is being done.

After Ctrl-C interrupt:

Traceback (most recent call last): File "install_scale_ui_mod.py", line 140, in <module> subprocess.check_output([GIMP_CONSOLE, "-i", "--batch-interpreter=python-fu-eval", "-b", "execfile('rescale_gfx.py')", "-b", "pdb.gimp_quit(1)"]) File "d:\bin\GIMP\32\lib\python2.7/subprocess.py", line 218, in check_output output, unused_err = process.communicate() File "d:\bin\GIMP\32\lib\python2.7/subprocess.py", line 406, in communicate stdout = _eintr_retry_call(self.stdout.read) File "d:\bin\GIMP\32\lib\python2.7/subprocess.py", line 126, in _eintr_retry_call return func(*args) KeyboardInterrupt Terminate batch job (Y/N)?

This is on:
Windows 10 x64
Scale_ui takes about 205MB of disk space on drive with ~62GB free.
GIMP is installed at: d:\bin\GIMP
Steam is installed at: f:\games\Steam

debug.log:
USER_HOME = C:\Users\username\Documents\Paradox Interactive\Crusader Kings II\mod\scale_ui PROGRAM_BASE = C:\Program Files (x86) GIMP_HOME=d:\bin\GIMP GAME_HOME = f:\games\Steam\SteamApps\common\Crusader Kings II\ MOD_DIR = C:\Users\username\Documents\Paradox Interactive\Crusader Kings II\mod/scale_ui_1035p SCALE_FACTOR = 1.34067357513
Last edited by Shadrach; Jul 31, 2018 @ 2:45pm
< >
Showing 1-4 of 4 comments
goondo  [developer] Aug 11, 2018 @ 4:48pm 
What verison of gimp are you running?
Shadrach Aug 12, 2018 @ 4:10am 
Hey - I'm running at the moment 2.10.4 but when I tried this it was 2.10.2 I think.
Shadrach Aug 12, 2018 @ 4:24am 
I just tried again - turns out, the popup I was getting from GIMP seems to have caused your script to fail because GIMP would not launch properly.

This has later been fixed (see https://gitlab.gnome.org/GNOME/gimp/issues/1673#note_290300 )

I started it again, and now it's running. I will let you know how it goes.

Also you need to avoid the hard-coding of the GIMP path in the bat file, as this will need to be edited before running the script or it will just fail. Better to prompt the user to paste in their GIMP path, than to blindly assume they have it installed under C:\Program Files. My path for instance is "d:\bin\GIMP\"

Then you would not need to prompt for GIMP path later during the py script if you make it a variable or something to be read.
Last edited by Shadrach; Aug 12, 2018 @ 4:39am
Shadrach Aug 12, 2018 @ 4:37am 
OK, so it finished, and I launched the game. It seems to have worked, didn't see any obvious faults.

Here are the logs:
https://pastebin.com/mkVpmxpm

As you can see, I got some warnings so those should probably be looked at.

Also it might be an idea to tell users to temporarily disable their AV during the process. I noticed Avast was using a lot of CPU while the script ran, and disabling Avast caused script to go from 10-15% CPU use to 20-25% usage which would mean it would finish faster.

Took about 10-15 minutes for me.
Last edited by Shadrach; Aug 12, 2018 @ 3:13pm
< >
Showing 1-4 of 4 comments
Per page: 1530 50