• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

yemmlie101

Captain
3 Badges
Aug 28, 2015
311
705
  • Crusader Kings II
  • Crusader Kings II: Conclave
  • Hearts of Iron IV Sign-up
Based on the now defunct CK2 History Generator of old, this tool will generate an entire random CK2 map for use within CK2 Holy Fury's Shattered World and Random World modes!

7MWqeUA.png

1O2cz6S.png


INSTRUCTIONS:

Lw1Q2v5.png


1) Load the tool, and set the Crusader Kings 2 main game folder in the dialog.
2) Click "Create a new map"
3) You have three options, available in the tabs to the top right:
  • Generate - This will generate a map entirely automatically, using the specified seed.
HpYiijr.png

  • Draw - This will provide drawing tools to plan out approximate land masses and mountain ranges. The tool will then add randomness to make it look natural, the randomness can be controlled via the tool options above the drawing canvas.
ub3fk5y.png

M4A9nwq.png

  • Heightmap - you can import a heightmap, then specify both the sea level and the relief amount.
KTKep5D.png

pmIiHOA.png


4) Type in the name you want to use for the map. Then make sure your choices for province count, map size and climate are set appropriately.
5) Click preview, and adjust until you're happy with the results.
6) Click Generate Full - this may take some time.
7) Once it's completed, click yes to generate a mod based on it.

90elFoU.png


8) On the next panel, type the name of your target mod into the edit box and click 'Generate' - this will generate a mod for you to use within CK2.

9) Load up the mod, and MAKE SURE you actually use Random World or Shatter Realm and click generate on them, as the default history within the mod will unlikely be playable.

v0.12 - DOWNLOAD HERE: https://www.dropbox.com/s/c2x9qr6z9ybr2sv/CK2MapGen_0_12.zip?dl=0

Changelist:
v0.12 - Fixed religious titles so popes can exist etc.
v0.11 - Fixed dynasty names for animal kingdoms

Report any issues here. More options, bugfixes and polish to come. Thanks!
 
Last edited:
  • 1Like
  • 1
  • 1Love
Reactions:
Animal Kingdoms all have Smith as their dynasty, but otherwise, this is really good. Will you be adding new features? Anything like adding the ability to paint climate or terrain type in draw mode?
 
This is awesome! Tried it just now, and it works like a charm. The fully random option does tend to result in some really strange snaky maps, but if you keep trying a few seeds you will usually get something interesting to work with. Definitely something every Holy Fury owner should try at least once.
 
Love it too, thanks!

Been quick playing in observe mode and notice a few things:

1. Can't turn off Chinese interaction. Rules can lower it to restricted, but the whole of my small map seem to interact and send characters to China.
2. After a few years many characters have missing traits. Just a blank space where a trait should be.
 
A couple other things, though they maybe not mod related: In 200 years the AI has created one bloodline, and it died with the founder having no children. Fedual rulers are sitting on their gold. One has 7,000 and none of his holdings have been upgraded past level 2.

Tons of fun watching this random world evolve though!
 
Not currently - its a planned feature but also really tough to do automatically - now I'm only focusing on the map and don't have to worry about the history gen and stuff though, it should be in before too long.
 
It might have actually been a computer issue on my end. Found some logs about access violations so I updated video driver, cleaned registry, and now it's zooming along just fine.
 
Nope its definitely the mod - I think a big disease outbreak may cause issues with the different provinces. Perhaps its the plague trying to originate in a province that doesn't exist any longer.

EDIT: Yeah crap the plague is all over trying to spawn in specific province IDs. Will need to look into that. Bah.
 
Last edited:
Theres a way to upload a map done using any image editor? like using the height editor to create a landmass without having to paint it over again?
 
Getting an unhandled exception error mid way though map creation

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentException: Parameter is not valid.
at System.Drawing.Bitmap..ctor(String filename)
at CrusaderKingsStoryGen.MapGen.GeneratedTerrainMap.CreateColorMap() in C:\ck2gen-master\CrusaderKingsStoryGen\MapGen\GeneratedTerrainMap.cs:line 190
at CrusaderKingsStoryGen.MapGen.GeneratedTerrainMap.Refine() in C:\ck2gen-master\CrusaderKingsStoryGen\MapGen\GeneratedTerrainMap.cs:line 161
at CrusaderKingsStoryGen.MapGen.GeneratedTerrainMap.UpdateFromProvinces() in C:\ck2gen-master\CrusaderKingsStoryGen\MapGen\GeneratedTerrainMap.cs:line 843
at CrusaderKingsStoryGen.MapGen.MapGenManager.Create(Boolean fromHeightMap, Int32 seed, Int32 numProvinces, Single delta, LockBitmap landBitmap, LockBitmap mountainBitmap) in C:\ck2gen-master\CrusaderKingsStoryGen\MapGen\MapGenManager.cs:line 84
at CrusaderKingsStoryGen.MapGenerator.exportButtonDo_Click(Object sender, EventArgs e) in C:\ck2gen-master\CrusaderKingsStoryGen\WizardDialogs\MapGenerator.cs:line 284
at CrusaderKingsStoryGen.MapGenerator.exportButton_Click(Object sender, EventArgs e) in C:\ck2gen-master\CrusaderKingsStoryGen\WizardDialogs\MapGenerator.cs:line 219
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)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
CrusaderKingsStoryGen
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/jfb83/OneDrive/Desktop/SecondMap/CrusaderKingsStoryGen.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
LibNoise
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/jfb83/OneDrive/Desktop/SecondMap/LibNoise.DLL
----------------------------------------
DevIL.NET2
Assembly Version: 1.1.2619.31671
Win32 Version:
CodeBase: file:///C:/Users/jfb83/OneDrive/Desktop/SecondMap/DevIL.NET2.DLL
----------------------------------------
msvcm80
Assembly Version: 8.0.50727.9445
Win32 Version: 8.00.50727.9445
CodeBase: file:///C:/WINDOWS/WinSxS/x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.9445_none_d08c58b4442ba54f/msvcm80.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
 
Same error, i pressed continue anyways to see what happens-
Consulte el final de este mensaje para obtener más detalles sobre cómo invocar a la depuración
Just-In-Time (JIT) en lugar de a este cuadro de diálogo.

************** Texto de la excepción **************
System.ArgumentException: El parámetro no es válido.
en System.Drawing.Bitmap..ctor(String filename)
en CrusaderKingsStoryGen.MapGen.GeneratedTerrainMap.CreateColorMap() en C:\ck2gen-master\CrusaderKingsStoryGen\MapGen\GeneratedTerrainMap.cs:línea 190
en CrusaderKingsStoryGen.MapGen.GeneratedTerrainMap.Refine() en C:\ck2gen-master\CrusaderKingsStoryGen\MapGen\GeneratedTerrainMap.cs:línea 161
en CrusaderKingsStoryGen.MapGen.GeneratedTerrainMap.UpdateFromProvinces() en C:\ck2gen-master\CrusaderKingsStoryGen\MapGen\GeneratedTerrainMap.cs:línea 843
en CrusaderKingsStoryGen.MapGen.MapGenManager.Create(Boolean fromHeightMap, Int32 seed, Int32 numProvinces, Single delta, LockBitmap landBitmap, LockBitmap mountainBitmap) en C:\ck2gen-master\CrusaderKingsStoryGen\MapGen\MapGenManager.cs:línea 84
en CrusaderKingsStoryGen.MapGenerator.exportButtonDo_Click(Object sender, EventArgs e) en C:\ck2gen-master\CrusaderKingsStoryGen\WizardDialogs\MapGenerator.cs:línea 282
en CrusaderKingsStoryGen.MapGenerator.generateFromHeightMap_Click(Object sender, EventArgs e) en C:\ck2gen-master\CrusaderKingsStoryGen\WizardDialogs\MapGenerator.cs:línea 1147
en System.Windows.Forms.Control.OnClick(EventArgs e)
en System.Windows.Forms.Button.OnClick(EventArgs e)
en System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
en System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
en System.Windows.Forms.Control.WndProc(Message& m)
en System.Windows.Forms.ButtonBase.WndProc(Message& m)
en System.Windows.Forms.Button.WndProc(Message& m)
en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Ensamblados cargados **************
mscorlib
Versión del ensamblado: 4.0.0.0
Versión Win32: 4.7.3221.0 built by: NET472REL1LAST_C
Código base: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
CrusaderKingsStoryGen
Versión del ensamblado: 1.0.0.0
Versión Win32: 1.0.0.0
Código base: file:///C:/Users/Antonio/Desktop/CK2mapo/CrusaderKingsStoryGen.exe
----------------------------------------
System.Windows.Forms
Versión del ensamblado: 4.0.0.0
Versión Win32: 4.7.3221.0 built by: NET472REL1LAST_C
Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Versión del ensamblado: 4.0.0.0
Versión Win32: 4.7.3190.0 built by: NET472REL1LAST_C
Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Versión del ensamblado: 4.0.0.0
Versión Win32: 4.7.3056.0 built by: NET472REL1
Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Versión del ensamblado: 4.0.0.0
Versión Win32: 4.7.3056.0 built by: NET472REL1
Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Versión del ensamblado: 4.0.0.0
Versión Win32: 4.7.3221.0 built by: NET472REL1LAST_C
Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Versión del ensamblado: 4.0.0.0
Versión Win32: 4.7.3056.0 built by: NET472REL1
Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
Versión del ensamblado: 4.0.0.0
Versión Win32: 4.7.3056.0 built by: NET472REL1
Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
LibNoise
Versión del ensamblado: 1.0.0.0
Versión Win32: 1.0.0.0
Código base: file:///C:/Users/Antonio/Desktop/CK2mapo/LibNoise.DLL
----------------------------------------
DevIL.NET2
Versión del ensamblado: 1.1.2619.31671
Versión Win32:
Código base: file:///C:/Users/Antonio/Desktop/CK2mapo/DevIL.NET2.DLL
----------------------------------------
msvcm80
Versión del ensamblado: 8.0.50727.9445
Versión Win32: 8.00.50727.9445
Código base: file:///C:/WINDOWS/WinSxS/x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.9445_none_d08c58b4442ba54f/msvcm80.dll
----------------------------------------
System.Drawing.resources
Versión del ensamblado: 4.0.0.0
Versión Win32: 4.7.3056.0 built by: NET472REL1
Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing.resources/v4.0_4.0.0.0_es_b03f5f7f11d50a3a/System.Drawing.resources.dll
----------------------------------------
System.Windows.Forms.resources
Versión del ensamblado: 4.0.0.0
Versión Win32: 4.7.3056.0 built by: NET472REL1
Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_es_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
mscorlib.resources
Versión del ensamblado: 4.0.0.0
Versión Win32: 4.7.3056.0 built by: NET472REL1
Código base: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_es_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------

************** Depuración JIT **************
Para habilitar la depuración Just In Time (JIT), el archivo de configuración de esta
aplicación o equipo (machine.config) debe tener el
valor jitDebugging establecido en la sección system.windows.forms.
La aplicación también se debe compilar con la depuración
habilitada

Por ejemplo:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

Cuando esté habilitada la depuración JIT, cualquier excepción no controlada
se enviará al depurador JIT registrado en el equipo
en lugar de controlarlo mediante el cuadro de diálogo.