Hello,
I cant select my mod its greyed out.
I have made replacement files for dlc013.
I cant select my mod its greyed out.
I have made replacement files for dlc013.
Last edited:
do not use .zip for your mod,use direct file.Hello,
I cant select my mod its greyed out.
I have made replacement files for dlc013.
View attachment 501178
I have a folder and a fitting mod file.do not use .zip for your mod,use direct file.
1000260786 = {
...
dna="cfeai0bad00"
properties="rd00fk"
...
}
1000260788 = {
...
dna="aieh00eb0b0"
properties="vb0jak"
...
}
I can selet my mod now, but the portrait builder shows them broken and not like in game. It doesnt even show the new hair colors amd eye colors I set up in the gfx file.
Why is this happening? It seems like the portraits_norse.gfx is not read by the builder.
In your screenshot the mod doesn't appear to be selected ?
Did you check the log files for any errors (the tool can be more strict than vanilla for parsing gfx files) ?
019-10-11 22:58:50,554 ERROR PortraitReader - Lexical error in file portraits_norse.gfx, line @(616, 41) Unexpected token "16"; expected: CLOSE
2019-10-11 22:58:50,566 ERROR PortraitReader - Lexical error in file portraits_norse.gfx, line @(607, 41) Unexpected token "16"; expected: CLOSE
2019-10-11 22:59:13,911 WARN PortraitBuilderForm - Could not find frame count for Name: PORTRAIT_norsegfx_male, Layers: 49, HairColours: 7, EyeColours: 8 and Unused (d5), disabling dropdown.
2019-10-11 22:59:13,960 WARN PortraitBuilderForm - Could not find frame count for Name: PORTRAIT_norsegfx_male, Layers: 49, HairColours: 7, EyeColours: 8 and Unused (d10), disabling dropdown.
2019-10-11 22:59:13,960 WARN PortraitBuilderForm - Could not find frame count for Name: PORTRAIT_norsegfx_male, Layers: 49, HairColours: 7, EyeColours: 8 and Makeup (p14), disabling dropdown.
2019-10-11 22:59:13,960 WARN PortraitBuilderForm - Could not find frame count for Name: PORTRAIT_norsegfx_male, Layers: 49, HairColours: 7, EyeColours: 8 and Makeup2 (p15), disabling dropdown.
2019-10-11 22:59:13,960 WARN PortraitBuilderForm - Could not find frame count for Name: PORTRAIT_norsegfx_male, Layers: 49, HairColours: 7, EyeColours: 8 and Jewelry (p16), disabling dropdown.
2019-10-11 22:59:13,960 WARN PortraitBuilderForm - Could not find frame count for Name: PORTRAIT_norsegfx_male, Layers: 49, HairColours: 7, EyeColours: 8 and Immortality (p17), disabling dropdown.
2019-10-11 22:59:14,182 ERROR PortraitRenderer - Could not render layer GFX_character_german_male_physique:Custom (p21) from C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\interface\portraits\portraits_norse.gfx
2019-10-11 22:59:14,183 ERROR PortraitRenderer - Could not render layer GFX_german_male_cheeks:Cheeks (d4) from C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\interface\portraits\portraits_norse.gfx
2019-10-11 22:59:14,157 ERROR PortraitRenderer - Could not render layer :Headgear (p5) from C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\interface\portraits\portraits_norse.gfx
Yes, I dont know why. Its usually always selected with the same problems.
I have filtered all errors in the log file that have 'norse' in them:
Code:019-10-11 22:58:50,554 ERROR PortraitReader - Lexical error in file portraits_norse.gfx, line @(616, 41) Unexpected token "16"; expected: CLOSE 2019-10-11 22:58:50,566 ERROR PortraitReader - Lexical error in file portraits_norse.gfx, line @(607, 41) Unexpected token "16"; expected: CLOSE
Could you show what is between lines 600 -> 620 in portraits_norse.gfx ? There are some "16" that the parser doesn't like.
{ 20 20 20 } { 123 123 123 } { 200 200 200 } # hazel brown
{ 20 20 20 } { 123 123 123 } { 200 200 200 } # brown
{ 20 20 20 } { 123 123 123 } { 200 200 200 } # dark brown
}
eye_color_index = 9
eye_color = {
{ 58 109 193}
{ 190 216 225 }
{ 164 191 210 }
{ 94 121 140 }
{ 100 129 101 }
{ 146 176 173 }
}
headgear_that_hides_hair = {{ 6 10 11 16 17 18 }
}
# norse Male christian
portraitType = {
Could you also check if the file C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\interface\portraits\portraits_norse.gfx exists (I don't have it, it's supposed to be in dlc020) ? That could explain the mod checkbox if you modified base game files directly.
Ok. Line 600-620 from portraits_norse.gfx are:
Yes its changing files from dlc020 gfx/characters/, but there are files in interface/portraits: portraits_norse and portraits_norsegeal
headgear_that_hides_hair = {{ 6 10 11 16 17 18 }
Yes, thanks a lot. Its working now.It's the extra { that is likely causing the issue.
Yes these are an old version of my mod, Im removing them.If they are yours, you should move them into your mod folder instead, otherwise you can "verify integrity of game files" in steam to get rid of them.
2019-12-01 13:10:26,259 INFO Program - Starting application
2019-12-01 13:10:26,336 INFO PortraitBuilderForm - Portrait Builder Version 2.5.0
2019-12-01 13:10:26,338 INFO PortraitBuilderForm - Configuration: CK2 directory C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\\, Mod directory: C:\Users\User\Documents\Paradox Interactive\Crusader Kings II\mod, DLC directory: C:\Users\User\Desktop\PortraitBuilder\dlc\
2019-12-01 13:10:26,338 INFO PortraitBuilderForm - ----------------------------
2019-12-01 13:10:26,341 INFO PortraitBuilderForm - ----------------------------
2019-12-01 13:10:26,341 INFO PortraitBuilderForm - (Re-)loading data
2019-12-01 13:10:26,342 INFO Loader - Loading portraits from vanilla.
2019-12-01 13:10:26,455 ERROR PortraitReader - Lexical error in file chatfonts.gfx, line @(9, 3) Unexpected token "colorcodes"; expected: ASSIGN, SUPERIOR, INFERIOR, EQUAL, SUPERIOR_OR_EQUAL, INFERIOR_OR_EQUAL
2019-12-01 13:10:26,474 ERROR PortraitReader - Lexical error in file DefaultDialog.gfx, line @(44, 47) Unexpected character ';' (U+3B)@(45, 2) Unexpected token "}"; expected: ASSIGN, SUPERIOR, INFERIOR, EQUAL, SUPERIOR_OR_EQUAL, INFERIOR_OR_EQUAL
2019-12-01 13:10:26,504 ERROR PortraitReader - Lexical error in file EU3_mapitems.gfx, line @(3, 1) Unexpected token "}"; expected: OPEN, IDENTIFIER, NUMBER
2019-12-01 13:10:26,518 ERROR PortraitReader - Lexical error in file fonts.gfx, line @(20, 3) Unexpected token "colorcodes"; expected: ASSIGN, SUPERIOR, INFERIOR, EQUAL, SUPERIOR_OR_EQUAL, INFERIOR_OR_EQUAL
2019-12-01 13:10:26,534 WARN PortraitReader - File is empty: C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\\\interface\mainmenu.gfx
2019-12-01 13:10:26,535 ERROR PortraitReader - Lexical error in file mapitems.gfx, line @(128, 3) Unexpected token "cull_distance"; expected: ASSIGN, SUPERIOR, INFERIOR, EQUAL, SUPERIOR_OR_EQUAL, INFERIOR_OR_EQUAL
2019-12-01 13:10:26,821 INFO Loader - Loading DLCs from C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\\dlc\
2019-12-01 13:10:26,864 INFO Loader - Extracting Mongol Face Pack to C:\Users\User\Desktop\PortraitBuilder\dlc\dlc002\
2019-12-01 13:10:26,878 FATAL Program - Fatal error.System.ArgumentException: 1 is not a supported code page.
Parameter name: codepage
at System.Text.Encoding.GetEncoding(Int32 codepage)
at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries()
at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor(Stream stream)
at ICSharpCode.SharpZipLib.Zip.FastZip.ExtractZip(Stream inputStream, String targetDirectory, Overwrite overwrite, ConfirmOverwriteDelegate confirmDelegate, String fileFilter, String directoryFilter, Boolean restoreDateTime, Boolean isStreamOwner)
at PortraitBuilder.Engine.Loader.UnzipDLCs(List`1 dlcs) in c:\Users\Romain\git\PortraitBuilder\PortraitBuilder\Engine\Loader.cs:line 128
at PortraitBuilder.Engine.Loader.LoadDLCs() in c:\Users\Romain\git\PortraitBuilder\PortraitBuilder\Engine\Loader.cs:line 106
at PortraitBuilder.UI.PortraitBuilderForm.loadDLCs(Boolean clean) in c:\Users\Romain\git\PortraitBuilder\PortraitBuilder\UI\PortraitBuilderForm.cs:line 144
at PortraitBuilder.UI.PortraitBuilderForm.load(Boolean clean) in c:\Users\Romain\git\PortraitBuilder\PortraitBuilder\UI\PortraitBuilderForm.cs:line 125
at PortraitBuilder.UI.PortraitBuilderForm..ctor() in c:\Users\Romain\git\PortraitBuilder\PortraitBuilder\UI\PortraitBuilderForm.cs:line 77
at PortraitBuilder.Program.StartUI(String[] args) in c:\Users\Romain\git\PortraitBuilder\PortraitBuilder\Program.cs:line 85
It says right there: "2019-12-01 13:10:26,878 FATAL Program - Fatal error.System.ArgumentException: 1 is not a supported code page." Paradox programs typically use code page 1252. I can't even find info on code page 1. You should probably check your code page: https://knowledgebase.progress.com/articles/Article/4677Hi, I've been trying to start up the portrait builder but I get problems when it tries to download the DLC.
This is what shows up in the log:
Do you have any suggestions on what I could do?Code:2019-12-01 13:10:26,259 INFO Program - Starting application 2019-12-01 13:10:26,336 INFO PortraitBuilderForm - Portrait Builder Version 2.5.0 2019-12-01 13:10:26,338 INFO PortraitBuilderForm - Configuration: CK2 directory C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\\, Mod directory: C:\Users\User\Documents\Paradox Interactive\Crusader Kings II\mod, DLC directory: C:\Users\User\Desktop\PortraitBuilder\dlc\ 2019-12-01 13:10:26,338 INFO PortraitBuilderForm - ---------------------------- 2019-12-01 13:10:26,341 INFO PortraitBuilderForm - ---------------------------- 2019-12-01 13:10:26,341 INFO PortraitBuilderForm - (Re-)loading data 2019-12-01 13:10:26,342 INFO Loader - Loading portraits from vanilla. 2019-12-01 13:10:26,455 ERROR PortraitReader - Lexical error in file chatfonts.gfx, line @(9, 3) Unexpected token "colorcodes"; expected: ASSIGN, SUPERIOR, INFERIOR, EQUAL, SUPERIOR_OR_EQUAL, INFERIOR_OR_EQUAL 2019-12-01 13:10:26,474 ERROR PortraitReader - Lexical error in file DefaultDialog.gfx, line @(44, 47) Unexpected character ';' (U+3B)@(45, 2) Unexpected token "}"; expected: ASSIGN, SUPERIOR, INFERIOR, EQUAL, SUPERIOR_OR_EQUAL, INFERIOR_OR_EQUAL 2019-12-01 13:10:26,504 ERROR PortraitReader - Lexical error in file EU3_mapitems.gfx, line @(3, 1) Unexpected token "}"; expected: OPEN, IDENTIFIER, NUMBER 2019-12-01 13:10:26,518 ERROR PortraitReader - Lexical error in file fonts.gfx, line @(20, 3) Unexpected token "colorcodes"; expected: ASSIGN, SUPERIOR, INFERIOR, EQUAL, SUPERIOR_OR_EQUAL, INFERIOR_OR_EQUAL 2019-12-01 13:10:26,534 WARN PortraitReader - File is empty: C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\\\interface\mainmenu.gfx 2019-12-01 13:10:26,535 ERROR PortraitReader - Lexical error in file mapitems.gfx, line @(128, 3) Unexpected token "cull_distance"; expected: ASSIGN, SUPERIOR, INFERIOR, EQUAL, SUPERIOR_OR_EQUAL, INFERIOR_OR_EQUAL 2019-12-01 13:10:26,821 INFO Loader - Loading DLCs from C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\\dlc\ 2019-12-01 13:10:26,864 INFO Loader - Extracting Mongol Face Pack to C:\Users\User\Desktop\PortraitBuilder\dlc\dlc002\ 2019-12-01 13:10:26,878 FATAL Program - Fatal error.System.ArgumentException: 1 is not a supported code page. Parameter name: codepage at System.Text.Encoding.GetEncoding(Int32 codepage) at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries() at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor(Stream stream) at ICSharpCode.SharpZipLib.Zip.FastZip.ExtractZip(Stream inputStream, String targetDirectory, Overwrite overwrite, ConfirmOverwriteDelegate confirmDelegate, String fileFilter, String directoryFilter, Boolean restoreDateTime, Boolean isStreamOwner) at PortraitBuilder.Engine.Loader.UnzipDLCs(List`1 dlcs) in c:\Users\Romain\git\PortraitBuilder\PortraitBuilder\Engine\Loader.cs:line 128 at PortraitBuilder.Engine.Loader.LoadDLCs() in c:\Users\Romain\git\PortraitBuilder\PortraitBuilder\Engine\Loader.cs:line 106 at PortraitBuilder.UI.PortraitBuilderForm.loadDLCs(Boolean clean) in c:\Users\Romain\git\PortraitBuilder\PortraitBuilder\UI\PortraitBuilderForm.cs:line 144 at PortraitBuilder.UI.PortraitBuilderForm.load(Boolean clean) in c:\Users\Romain\git\PortraitBuilder\PortraitBuilder\UI\PortraitBuilderForm.cs:line 125 at PortraitBuilder.UI.PortraitBuilderForm..ctor() in c:\Users\Romain\git\PortraitBuilder\PortraitBuilder\UI\PortraitBuilderForm.cs:line 77 at PortraitBuilder.Program.StartUI(String[] args) in c:\Users\Romain\git\PortraitBuilder\PortraitBuilder\Program.cs:line 85
Thanks!
Thanks! I'll try that!It says right there: "2019-12-01 13:10:26,878 FATAL Program - Fatal error.System.ArgumentException: 1 is not a supported code page." Paradox programs typically use code page 1252. I can't even find info on code page 1. You should probably check your code page: https://knowledgebase.progress.com/articles/Article/4677