• 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.
I Killed Kenny said:
Can anyone tell me how do I save into grayscale in photoshop or in gimp? Because right now every time I save as grayscale it becames indexed

Copy your image in GIMP and paste it into the same file now opened with Paint. Then save it in Paint..
 
So I have a problem again. This time Mapmaker reports an error at step 1, this is the log:

#################################
An exception has occurred.
#################################
Exception: System.ArgumentException
Derived from System.SystemException
Derived from System.Exception
4.9.2008 18:06:53
Message: An item with the same key has already been added.
Source: mscorlib

STACK TRACE
Void ThrowArgumentException(System.ExceptionResource)
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
at MapUtility.ColorToId.get_Item(RgbData color)
at MapEditor.RadishMaker..ctor(LineData data)
at MapEditor.RadishMaker.MakeFile(LineData data)
at MapEditor.MakeFileTask.TaskOverride()
at CoreLib.Task.DoTask(Int32 index, TaskQueue tq)
at CoreLib.TaskQueue.DoWork(Object value)
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart(Object obj)

I guess it has something to do with ProvID.png because MapMaker reported around 10 errors with RGB colors (color not found). Those must be the grey dots I accidentally left behind in Paint. Is there any easy way to locate them, other than staring at the picture? My eyes will fall out if I continue to do so :)

MapViewer also crashes when zooming at the edited map segment, probably because of the same problem. Log:

************** Exception Text **************
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at MapUtility.MapBlock.GetProvinceIdsNewWay(Int32& Offset)
at MapUtility.MapBlock.EnsureDecompressed()
at MapUtility.Lightmap.Draw[T](Graphics g, Rectangle bounds, Func`2 colorer, Int32 xStart, Int32 yStart, Int32 xMax, Int32 yMax)
at MapUtility.Lightmap.Draw[T](Graphics g, Rectangle bounds, Func`2 colorer, Int32 xStart, Int32 yStart)
at MapUtility.Lightmap.Draw[T](Graphics g, Rectangle bounds, Func`2 colorer)
at MapUtility.Display.canvas_Paint(Object sender, PaintEventArgs e)
at System.Windows.Forms.Control.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.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)
 
Hello, it's me again :eek:o

Look at this:







Can anyone tell me what's the problem? It must be something with the 468_90 colorscales image because all other aspects work fine. Tiles and borders are visible and I can select provinces. The image is properly saved in grayscale. It's as if MapMaker simply ignores that part of the map, but it didn't report any errors. I don't know what to do, please help.
 
A truly grand tool I must say, excellent work! A true gift to the modding community.

I've just successfully modified the HoI2 map, added three new provinces and looks and works all good except for one small problem: two of the provinces are inland and do not have sea connections and work just fine. One is an island with a connection to one sea province and a sea connection to a land province (the same way as for example Komanderskiye island). In province.csv I removed the Höfn sea connection and added beach & port entry to my new province. The province itself seems fine, I can move units there, send ships to the port but when I try to click the province, I just don't seem to be able to select it. I can select it using the Provinces-button on the top left button row but not by clicking it on the map. Strange thing, I must have missed something in the CSV files or something, any clues? The map .tbl-files should be all ok since everything else seems to be working.
 
Maybe you skipped the id map?
 
Prinz Wilhelm said:
Maybe you skipped the id map?

Nope, wasn't skipped. The province area is still darkened like all provinces when it's selected, I just can't select it by clicking in the province area. Using the "View the provinces you are currently controlling" button I can select it and the province area gets darkened. It's quite weird. The two other provinces I created do not have this problem.
 
Has anyone ever encountered the missing province borders error? After running the game with my modified map, I noticed it lacks those red lines at certain points of the Chinese and Saudi Arabian borders. But MapMaker reported no errors in all 6 steps. What could be the cause of this?

It's not something crucial as the game works fine, but it's weird and ugly to see :)
 
fourth edit (last one I promise...):

I edited the map I wanted edited completely and tried to run mapmaker.exe. Originally, i had all the first five files that were to put together in the exported maps file (along with the extracted maps), but when i ran mapmaker.exe it didn't work. So I exported ALL of the files from the subfolder to the main folder and ran mapmaker. This time it worked; however, after I put in choice 1 so it would run it, several fatal errors occurred, and the log noted several exclusions....

I think I may not completely understand how I should be grouping these files into folders (the same problem occurred with mapextractor.exe until I removed the files from the subfolder to the main one) so could someone please help me? Finishing my first map edit is on the horizon, and I don't want it to fade away now... (sorry for the people who hate metaphors.... :p )
 
Last edited:
Followed the instructions half expecting what I was trying to do would not work but surprisingly it did.

I put an underlying texture in one province just to test could you do this and you can so I was wondering if you just play around with the maps textures do you affect game play in anyway?



ScreenSave0.jpg
[/IMG]
 
I think my problem is in the part 6 of the tutorial, can anyone help me?
Log of MapMaker v2.2.5.0
Logging started at: 10/1/2009 03:47:39 UTC



#################################
An exception has occurred.
#################################
Exception: System.ArgumentException
Derived from System.SystemException
Derived from System.Exception
10/1/2009 03:48:10
Message: bitmap must be Format24bppRgb
Source: CoreLib

STACK TRACE
CoreLib.Graphics.ImageData`1[T] ToData(System.Drawing.Bitmap)
em CoreLib.Graphics.ImageData`1.ToData(Bitmap b) na E:\Projects\CoreLib\Graphics\ImageData.cs:linha 401
em MapEditor.SimpleImageRadishMaker.LoadAPic(Boolean required, String path, ColorType type) na E:\Projects\MapUtility\MapMaker\RadishMaker.cs:linha 446
em MapEditor.SimpleImageRadishMaker.LoadFile() na E:\Projects\MapUtility\MapMaker\RadishMaker.cs:linha 403
em MapEditor.RadishMaker..ctor(LineData data) na E:\Projects\MapUtility\MapMaker\RadishMaker.cs:linha 44
em MapEditor.RadishMaker.MakeFile(LineData data) na E:\Projects\MapUtility\MapMaker\RadishMaker.cs:linha 380
em MapEditor.MakeFileTask.TaskOverride() na E:\Projects\MapUtility\MapMaker\RadishMaker.cs:linha 540
em CoreLib.Task.DoTask(Int32 index, TaskQueue tq) na E:\Projects\CoreLib\TaskQueue.cs:linha 249
em CoreLib.TaskQueue.DoWork(Object value) na E:\Projects\CoreLib\TaskQueue.cs:linha 89
em System.Threading.ThreadHelper.ThreadStart_Context(Object state)
em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
em System.Threading.ThreadHelper.ThreadStart(Object obj)

:confused: