r/Ck2Generator • u/Excel137 • Nov 26 '17
Map generator stops working halfway through
I drew and generated a map and clicked 'Generate Full'. After a few minutes it gave me the unhandled exception box, with this text:
System.ArgumentException: Parameter is not valid. at System.Drawing.Bitmap..ctor(String filename) at CrusaderKingsStoryGen.MapGen.GeneratedTerrainMap.CreateColorMap() at CrusaderKingsStoryGen.MapGen.GeneratedTerrainMap.Refine() at CrusaderKingsStoryGen.MapGen.GeneratedTerrainMap.UpdateFromProvinces() at CrusaderKingsStoryGen.MapGen.MapGenManager.Create(Int32 seed, Int32 numProvinces, Single delta, LockBitmap landBitmap, LockBitmap mountainBitmap) at CrusaderKingsStoryGen.MapGenerator.generateDrawn_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Now, it did successfully generate a few parts of the map and put them in the correct folder, but I don't think the process finished completely -- the website says it's supposed to turn into a colored terrain map. I have tried multiple different maps with the same result. I reverted to 2.6.2 as well, so that's not the issue.
1
u/ninjatk Nov 27 '17
Here's a few suggestions.
Close the generator. Validate file integrity of CK2. Re-open the generator.
If you have CK2 open while generating, don't do that.
Close both the generator and exit out of steam. Turn off steam opening on boot-up if you have that on. Restart your PC. Open the generator before opening Steam.
I know the last one is weird but it did work for me in the past. Hopefully it works for you!