• 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.
Hi. I just got another problem: I can't run MapViewer or MapExtractor. Path is correct, map is vanilla and settings are HoI settings. So what's the problem, they don't even run, when I open them they immediately give error message:



Log is looking this
Code:
Log of MapViewer v6.2.5.0
Logging started at: 9.8.2008 13:35:05 UTC

Successfully reached start
Since there were no arguments, now starting normally
In Display .ctor()
Exiting Display .ctor()
Loading colorscales...

#################################
An exception has occurred.
#################################
Exception: System.ArgumentOutOfRangeException
	Derived from System.ArgumentException
	Derived from System.SystemException
	Derived from System.Exception
9.8.2008 13:35:07
Message: Non-negative number required.
Parameter name: capacity
Source: System

STACK TRACE
Void ThrowArgumentOutOfRangeException(System.ExceptionArgument, System.ExceptionResource)
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at System.Collections.Generic.Stack`1..ctor(Int32 capacity)
   at MapUtility.Colorscales.Color..ctor(String line1, String line2, String line3, String line4) in E:\Projects\MapUtility\Shared\Colorscales.cs:line 124
   at MapUtility.Colorscales..ctor() in E:\Projects\MapUtility\Shared\Colorscales.cs:line 27
   at MapUtility.Lightmap..cctor() in E:\Projects\MapUtility\Shared\Lightmap.cs:line 142



#################################
An exception has occurred.
#################################
Exception: System.TypeInitializationException
	Derived from System.SystemException
	Derived from System.Exception
9.8.2008 13:35:07
Message: The type initializer for 'MapUtility.Lightmap' threw an exception.
Source: MapViewer

STACK TRACE
Void Window_Loaded(System.Object, System.Windows.RoutedEventArgs)
   at MapUtility.Display.Window_Loaded(Object sender, RoutedEventArgs e) in E:\Projects\MapUtility\MapViewer\Display.xaml.cs:line 254
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at MS.Internal.FrameworkObject.OnLoaded(RoutedEventArgs args)
   at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
   at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
   at MS.Internal.LoadedOrUnloadedOperation.DoWork()
   at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)
   at System.Windows.Interop.HwndTarget.OnResize()
   at System.Windows.Interop.HwndTarget.HandleMessage(Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)



Misc data
System.Object     Could not write misc data
Can anybody help?
 
You mean colorscales.csv? Well, I use Kaiserreich colorscales... Should I use vanilla colorscales?
EDIT: Whoa, now it runs! Thanks a lot.
 
Just downloaded this and started fiddlin' around. I read that there is no flexibility regarding the number of province connections, but is there a limit to the number of provinces?
 
Thanks a lot for this great tool. ^^
There is a question. I using 1.2.5B version. I cannot check how my map have many connection. Is there a way to check the number my connetions? I am getting milestone error. So I need to check the number of connetions but there seem to be no way to check.
 
Thanks for the help, Jaime, but my learning process has run into a snag. I'm following HannibalBarca2's tutorial, and there's one part I can't figure out:

Hannibal Barca2 said:
Part 6 – Editing the Borders.png

Open both “map_468_90.colorscales.png” (your modified one) and “map_468_90.borders.png”.

a) In “map_468_90.colorscales.png”, do the same process as when you should edit the provID in order to paint everything except the border white.

b) Copy it and make it transparent above the “map_468_90.borders.png”-file. (If new borders should go across some old… Delete the old!)

c) Use the eyedropper tool to get the red colour you see surrounding the blue border dots.

d) Use the pencil tool to paint red line around your black strips.

e) Copy the whole picture into a GIMP picture without transparent background.

f) Use the colourpicker-tool (shift + O) to select everything that are NOT red nor white, and delete it in order to make it white.

g) Copy the whole picture above your old “map_468_90.borders.png”-file, and use the eyedropper tool to get blue colour that you should paint inside the red lines.

h) Eventually, if you are making mayor changes, colour everything in a random colour, and press “ctrl + x”. Make white transparent background colour, and paint everything in the blue you wants inside the dots, before pressing “ctrl + v”. Now you can change the random colour back to white, and everything should be as it should.

Now you will have to make the white colour “real” transparent, and for this you will need GIMP. Save your “map_468_90.borders.png”-file as it is, and open it in GIMP.

Use the colourpickertool to select everything that’s white, and press delete. If you’ve done everything right, all the white should turn into transparent.

Hint: In order to make process faster, zoom very much in and press “ctrl + a” before you save your finished picture.

I've followed all the directions through e) in Paint, but when I paste it over to GIMP, I can't figure out how to delete all non-red, non-white colors. Whenever I hit "delete", it clears the entire screen. Right now, I have the plain white background, the new borders with its dots outlined in red; looks fine on the surface. I'm just not sure if the transparencies are going to work.

Step F just looks strange, and I'm wondering if I'm not reading it entirely wrong. 99.99% of all the stuff on the screen at that step is either red or white; the only part that isn't is the gray bits inside the dots in the new border, and it would be an easy matter to just color those blue like the others, but I suspect that would mess things up somehow, or the tutorial would have skipped that part.

I have the latest GIMP, the one the tutorial directs me to. Does anyone have any suggestions for where I should go from here? :confused:
 
Yuni: did you copy the latest settings.txt from download folder\HoI? There should be an entry like this:
Code:
#The number of entries that should be in the adjacent table
#This is strictly optional
#Usually used only with HoI
AdjacentTableEntryCount=14860

Thistletooth: I have no experience with GIMP. But in the latest MapUtility, you shouldn't have to worry about transparencies. Only red (255,255,0,0) and blue(255,0,0,255) will be recorded (hopefully).
 
Well, I haven't been able to make any further headway by following the tutorial. I have the new border map (and the other maps) all ready, but I still wasn't able to figure out any step after e). Assuming transparency isn't an issue, I wondering if I've done all I need to do.

I started up MapMaker, ran step 1, and was told there were errors. I checked check.txt (which is over 9 Megs), and it's telling me that every single block is missing, from (0,0) to (935,359). I must have missed something big, but since I followed the tutorial, I have no idea what it could be.

A) I have Net Framework 3.5 installed
B) Core.dll is in the main folder
C) OS is XP Service Pack 2
D) Error message: "there were errors with the radish files! Check check.txt for details"
E) Log.txt is empty
G) I have version 1.2.5
I) HoI2
H)

Code:
#This contains settings for MapUtility, and can be shared among the programs

#The path to the game
#If the game exe is at C:\DD\HoI.exe, this would be GamePath=C:\DD
GamePath=C:\Resurrection Map Experiment

#The max province number
MaxProvinceNumber=2608

#The width and height of lightmap1, the biggest one.
#The width and height are in blocks (each block is 32x32 pixels)
Lightmap1Width=936
Lightmap1Height=360

#The number of lightmaps
#Currently, only NumLightmaps=3 and NumLightmaps=4 are supported
NumLightmaps=4

#The width in bytes of each offset in the lightmap header
#Currently only 3 and 4 are supported
LightmapOffsetWidth=4

IdsAreNewWay=true

#The width of each value in index.tbl, in bytes
#Currently only 2 and 4 are supported
IndexTblValueWidth=4

#The number of entries that should be in the adjacent table
#This is strictly optional
#Usually used only with HoI
AdjacentTableEntryCount=14860
 
Last edited:
Are your maps still in their blahblah.[colorscales/provid/borders].png form? Are they copied to the main folder where MapMaker is in?

Look at your images.txt (should be in MapMaker's folder) and verify that all of those files listed inside are where they are reported. (Note that for png files, an entry of blah.png goes to blah.provid.png + blah.colorscales.png + etc.)
 
Hi

One question, it is possible to create only 4 files of borders,colorscales,provid and tiles ?. Only 4 superbigs files of each them

Because I work better with only one file for each type
 
Jamie550 said:
If your computer is good enough

"I want to believe" :)

How I can do these?