rquinio / PortraitBuilder

:art: Portrait Builder tool for Crusader Kings II
http://www.ckiiwiki.com/Portrait_Builder
GNU Lesser General Public License v3.0
15 stars 3 forks source link

1 is not a supported code page #11

Open rquinio opened 6 years ago

rquinio commented 6 years ago
2018-06-28 22:35:20,980 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
Gloweye commented 6 years ago

Still getting this Windows 10:

2018-09-03 21:15:34,642 INFO  Loader - Loading DLCs from D:\Spel\Steam\steamapps\common\Crusader Kings II\\dlc\
2018-09-03 21:15:34,649 INFO  Loader - Extracting Legacy of Rome to C:\Users\Jacco\Downloads\PortraitBuilder-2.5.0\dlc\dlc011\
2018-09-03 21:15:34,656 FATAL Program - Fatal error.System.ArgumentException: 1 is not a supported code page.
Parameter name: codepage
[same as previous reporter]

Any way I can be of assistance by supplying more information ? Or a workaround to supply the correct code page ?

Apologies for the notification if the above commit already solves it but hasn't made it to public yet.

rquinio commented 6 years ago

@Gloweye I've just released v3.0-RC.2 which contains the commit you mentioned, could you please check whether the issue is gone ?

Note .NET required version has been upgraded from 4.5 to 4.6, which comes pre-installed starting with Windows 10.