• 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.
Well,now I tried to convert the Abyss scenario of Darkest hour light,and it crashed
 
The program indeed support converting inc and ai files, not savegame files.

This specific error, if you want to know, is the matter of the program using older version of EE.dll which presumes that braces are always used in this configuration:
name = { value1 value2 }, ie. braces are always preceded by some identifier and '=' sign. Back then, I wasn't aware that savegames contain braces which appear alone, like internal braces here: name = { { value1 value2 } {value3 value4} }. So the validator throws out an error. Replacing included EE.dll with some newer version could help but could also introduce some unforessen problems and after all, this specific app doesn't deal with savegames at all.

If you have any other problem with Abyss scenario, what is the error message now?
 
The program indeed support converting inc and ai files, not savegame files.

This specific error, if you want to know, is the matter of the program using older version of EE.dll which presumes that braces are always used in this configuration:
name = { value1 value2 }, ie. braces are always preceded by some identifier and '=' sign. Back then, I wasn't aware that savegames contain braces which appear alone, like internal braces here: name = { { value1 value2 } {value3 value4} }. So the validator throws out an error. Replacing included EE.dll with some newer version could help but could also introduce some unforessen problems and after all, this specific app doesn't deal with savegames at all.

If you have any other problem with Abyss scenario, what is the error message now?

Just starts loading,and have a APP crash,I have no idea about what is happening
 
Does this tool work also for savegames or just for scenario files?
 
Scenarios only.

Savegames in this regard are a superset of scenarios, bringing countries, ministers, leaders, province resources, etc. in, which are not converted and after converting a scenario for the new map are taken straight from DH Full.
 
I can't convert map (WERS battlescenario to DH Full map)

I get this when I try to convert

Code:
************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at EE.Container.AddNewWhitespace(Char[] data, Int32 start, Int32 end)
   at EE.Container.Parse()
   at EE.File.Process()
   at MapToMapConverter.winMMC.Validate(String dir, Boolean showMessage)
   at MapToMapConverter.winMMC.ConvertScenario(String destinationDir, String tablesDir, Country[] Countries)
   at MapToMapConverter.winMMC.convertToolStripMenuItem_Click(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.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.0.30319.18444 built by: FX451RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
MapToMapConverter
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///D:/GAMEZ/map%20to%20map%20converter/MapToMapConverter.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
EE
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///D:/GAMEZ/map%20to%20map%20converter/EE.DLL
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

getting the province ownership table results in

Code:
************** Exception Text **************
System.ArgumentNullException: Value cannot be null.
Parameter name: text
   at System.Windows.Forms.Clipboard.SetText(String text, TextDataFormat format)
   at System.Windows.Forms.Clipboard.SetText(String text)
   at MapToMapConverter.winMMC.menGetProvinceOwnershipTable_Click(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.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.0.30319.18444 built by: FX451RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
MapToMapConverter
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///D:/GAMEZ/map%20to%20map%20converter/MapToMapConverter.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
EE
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///D:/GAMEZ/map%20to%20map%20converter/EE.DLL
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
 
Hi Bizon,

Was wondering if this will be updated for the 1.04 patch? I converted a 1836 map from Victoria Revolutions to HOI2. It worked fine in DH with no mods as well as DH Lite. The source and destination validated successfully. Here are the files if you wish to look (no big deal either way)...I uploaded the source eur file from hoi 2 and the converted inc file which I could not load.

If this is no longer supported, no problem. I can play with it in my spare time ;)


Have a good one and a belated thanks...
 

Attachments

  • United Kingdom_1836_January_1.zip
    79,8 KB · Views: 43
  • United Kingdom_1836_January_1_INCfile.zip
    63,7 KB · Views: 35
Last edited:
  • 1
Reactions:
Hi,

This program is a bit unlucky because, and I lamented it 2 or 3 years ago already, I lost the source code of it at some point. Even if it were hard to make any edits and recompiles at this point, it would at least be handy to refresh my memory about what was going on.

BUT, I think the problems are elsewhere, not only in the program. I don't know if 1.04 itself brought many changes to the game that make the converter fail but it's probably a sum of developments of subsequent versions:
1. Some provinces don't convert well and even if they should be removed by the program they aren't. It's easy to catch, they generate a lot of "province" entries with empty "id = " field so all those entries must be deleted. Also, a couple of countries have their capitals in such places, so it's important to remove empty "capital =" entries.
2. There is a lot of redundancy in the source file itself so probably the Vicky->DH converter is also supplying a couple of problems. There are duplicated "AI" entries and resources definitions "energy=" etc. for practically every country.
3. There is "Invalid ... policy slider value [0]" because all sliders have been changed to accept only 1-10 values - easily fixed.
4. A lot of "ignored provinces" (blacked-out ones, just as in battlescenarios) have their buildings (ICs, bases, forts) set while they should be left empty.

All this results in the part of files not being parsed so in result the provinces are not given to their intended owners and this, from my experience, makes the game crash.

I fixed problems #1, #3 and partially #2 and at minimum you would have to work with those points on the file: https://onedrive.live.com/redir?res...3548&authkey=!AA-cd58gpXptVpk&ithint=file,zip. When you start the game and make it crash, savedebug.txt will hold information about all these errors with "ERROR" at the beginning of each log line describing a problem. They even give you lines in the file which must be fixed.

Even then, I guess there may be additional problems with division/brigade models which used to change along the subsequent patches but maybe it's worth trying to fix the listed issues firts.
 
Hi Bizon,

I DID IT. I converted a game from Victoria 1: Revolutions to Darkest Hour.
With your converter, it is now possible to play from 1836 to 1960s in darkest hour! Over 100 years of gameplay!
Thank you so much for making the map converter.

qing2.jpg

qing4.jpg

qing5.jpg

qinga1.jpg

qinga2.jpg


I found some issues with the Map converter.
The province IDs of ships are not converting properly, most of the ships are stuck on land.
guide10.jpg

A fleet with 50 aircraft carriers that I built from 1933-1935 teleported and stuck in African land.
guide12.jpg

As a result, I have to manually edit the savegame and set all ships from the world to Mexico Bay.

Also, that means it is now possible to do CK1 ---> EU2 ---> VIC1 ---> Darkest Hour
or
CK1 ---> EU3 ---> VIC1 ---> Darkest Hour

Over 1000 years of gameplay, ending in darkest hour! But I haven't tested it out yet.

Thank you for your map converter!

Here's the savefiles just in case anyone wants to try it.
 

Attachments

  • qing3.jpg
    qing3.jpg
    343,2 KB · Views: 0
  • savefiles.7z
    189,6 KB · Views: 0
  • 1Like
Reactions: