• 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 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:

I had the same problem and I think that this is the problem:

As a last procedure with the colourscale-file you must convert you modified picture to have the correct indexed grayscale. For this you should press “ctrl + a” in order to select the whole picture, and then “ctrl + x” to put it on your pastboard. After this you should open the unmodified “map_468_90.colorscales.png” in paint, and press “ctrl + v” in order to paste the modified picture into it and by this get the correct indexed colours. After this you should save (ctrl + s) the picture.

Note: When you close down GIMP, remember to say you will not implement changes (This is because you’ve already implemented them using paint.)


It worked for me :cool:
 
question: instead of editing, i want to write a whole new map. i've got my original hoi2 backed up already, so is it alright if i just wipe out the original map folder and use one of the original map names for my new map? thanks ^_^
 
another question...when i'm drawing the map in gimp, it blurs the color distinction a bit...how do i turn that off? thanks!

EDIT: kay, nvm, for everyone having my problem, i switched from brush to pencil, and it worked out
 
Last edited:
Uhh...doesn't work. It says an error is occured when I run MapExtractor.exe, here's the log:

Code:
Log of MapExtractor v1.0.1.0
Logging started at: 18.1.2009 13:19:26 UTC

Successfully reached start


#################################
An exception has occurred.
#################################
Exception: System.IO.FileNotFoundException
18.1.2009 13:19:27
Message: Tiedostoa tai kokoonpanoa System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 tai jotakin sen riippuvuutta ei voi ladata. Määritettyä tiedostoa ei löydy.
Source: CoreLib

STACK TRACE
System.String ChangeTrimEnd(System.String, Char[])
   kohteessa CoreLib.FastString.ChangeTrimEnd(String s, Char[] trimChars)
   kohteessa CoreLib.FastString.ChangeTrim(String s, Char[] trimChars)
   kohteessa CoreLib.FastString.ChangeTrim(String s)
   kohteessa CoreLib.Io.File.<ReadAndCleanLines>b__0(String s)
   kohteessa System.Collections.Generic.List`1.ForEach(Action`1 action)
   kohteessa CoreLib.Io.File.ReadAndCleanLines(String path, Encoding encoding)
   kohteessa CoreLib.Io.File.ReadAndCleanLines(String path)
   kohteessa MapUtility.Settings..cctor()



#################################
An exception has occurred.
#################################
Exception: System.TypeInitializationException
18.1.2009 13:19:27
Message: Kohteen MapUtility.Settings tyypin alustaja aiheutti poikkeuksen.
Source: MapExtractor

STACK TRACE
System.String get_GamePath()
   kohteessa MapUtility.Settings.get_GamePath()
   kohteessa MapUtility.Program.StartupWork(String[] args)
   kohteessa MapUtility.Program.Main(String[] args)
 
EDIT:

arrgh...

it keeps telling me i have colors just 1 or 2 points off of the 'correct' color...anyone have any idea how to solve this? thanks!
 
Last edited:
Got a few Q's.
I am trying to make a large map of Cuba as an experiement.

- I am planning to use about 5 or 7 of the map files for that, can I dump the rest of the mapfiles or does the game stop working without them?

- How to create sea provinces?

- How to 'blank' the 5 to 7 map files so I can make out the new map from nothing?

- What colors to make coastline, and new land areas.
 
Last edited:
Got a few Q's.
I am trying to make a large map of Cuba as an experiement.

- I am planning to use about 5 or 7 of the map files for that, can I dump the rest of the mapfiles or does the game stop working without them?

- How to create sea provinces?

- How to 'blank' the 5 to 7 map files so I can make out the new map from nothing?

- What colors to make coastline, and new land areas.

I have the same question too...
 
I have a question again. When i run the map maker, it say that i have two colors, that are not in the ids.txt but i don't chance or add any colors of it.

Whats wrong?
 
Ok, the old problem is gone but i got another one. :rofl:

When calculating the adj-devs I get the message that i have 17 connection more than possible but i did not chancg this file. Furthermore i must now adding and deleting many connections.

Here is a picture and my list for the changes i wanna do:

Code:
#This file modifies the creation of adjacent.tbl by MapMaker
#It overrides the default calculations of province adjancies
#To be used, this file must be placed in the same directory as MapMaker
#This default file may be needed for HoI, use it if not using it causes a milestone error
#The format is from;to;action
#From is the first province, to is the second, and the action is either Add or Delete

759;2573;Delete
2573;759;Delete

78;79;Delete
79;78;Delete

81;85;Delete 
85;81;Delete
 
85;310;Delete
310;85;Delete 

87;86;Delete 
86;87;Delete 

88;86;Delete 
86;88;Delete 

79;81;Delete 
81;79;Delete 

79;77;Delete 
77;79;Delete 

67;75;Delete 
75;67;Delete 

77;76;Delete 
76;77;Delete 

66;50;Delete 
50;66;Delete 

75;69;Delete 
69;75;Delete 

70;72;Delete 
72;70;Delete 

76;74;Delete 
74;76;Delete 

74;313;Delete 
313;74;Delete 

74;82;Delete 
82;74;Delete 

376;465;Delete 
465;376;Delete 

312;466;Delete 
466;312;Delete 

312;374;Delete 
374;312;Delete 

472;309;Delete 
309;472;Delete 

306;302;Delete 
302;306;Delete 

306;303;Delete 
303;306;Delete 

306;304;Delete 
304;306;Delete 

306;305;Delete 
305;306;Delete 

306;307;Delete 
307;306;Delete 

306;308;Delete 
308;306;Delete 

306;483;Delete 
483;306;Delete 

304;305;Delete 
305;304;Delete 

304;510;Delete 
510;304;Delete 

509;209;Delete 
209;509;Delete 

509;486;Delete 
486;509;Delete 

509;505;Delete 
505;509;Delete 

509;511;Delete 
511;509;Delete 

508;507;Delete 
507;508;Delete 

#ID Hinzu


80;78;Add
78;80;Add

80;85;Add
85;80;Add

87;79;Add
79;87;Add

88;87;Add
87;88;Add

67;81;Add
81;67;Add

77;66;Add
66;77;Add

75;84;Add
84;75;Add

70;75;Add
75;70;Add

74;315;Add
315;74;Add

74;84;Add
84;74;Add

314;376;Add
376;314;Add

65;49;Add
49;64;Add

471;83;Add
83;471;Add

472;311;Add
311;472;Add

475;479;Add
479;475;Add

306;479;Add
479;306;Add

306;481;Add
481;306;Add

306;482;Add
482;306;Add

306;473;Add
473;306;Add

306;474;Add
474;306;Add

306;475;Add
475;306;Add

304;509;Add
509;304;Add

303;509;Add
509;303;Add

303;305;Add
305;303;Add

303;307;Add
307;303;Add

303;308;Add
308;303;Add

508;511;Add
511;508;Add

506;486;Add
486;506;Add

508;305;Add
305;508;Add

85;88;Add
88;85;Add

504;507;Add
507;504;Add

511;206;Add
206;511;Add
 
I bump this thread. I've made for training new province between Leningrad and Viipuri. It works well but I don't know how to delete connection between Leningrad and Viipuri now. I tried to add
Code:
145;187;Delete
187;145;Delete
to adj-mod but program says that there isn't connection between those two provinces so it won't have affect. In game there is still connection between those two even I've tried to copy those files again and overwrited.

What do I do wrong? :eek:o

And thanks for great tutorial, everything except this works now. :)
 
Last edited:
You can try to remove the connection delete, sometimes it works.
 
I bump this thread. I've made for training new province between Leningrad and Viipuri. It works well but I don't know how to delete connection between Leningrad and Viipuri now. I tried to add
Code:
145;187;Delete
187;145;Delete
to adj-mod but program says that there isn't connection between those two provinces so it won't have affect. In game there is still connection between those two even I've tried to copy those files again and overwrited.

What do I do wrong? :eek:o

And thanks for great tutorial, everything except this works now. :)

145;187;River;0;Neva is in the adj-def.csv file in the map directory which takes priority. Either delete the line or make it impassable.:wacko:
 
Last edited:
145;187;River;0;Neva is in the adj-def.csv file in the map directory which takes priority. Either delete the line or make it impassable.:wacko:
If I delete them from there, does mapmaker count them as deleted connections as well?

Also, how do I make river connection for new province? Thanks for answers :)
 
Last edited:
Cool!!!
 
There is the possibility to reduce the number of image files to extract?

For example, the default MapExtractor execution, extract 64 groups of image files (i means i have 64 quartets of borders.png, colorscales.png, ProvID.png and tiles.png) all sized 3744 x 1440.

Is it possible to have almost half the quartets or better 1/4 of them?
 
There is the possibility to reduce the number of image files to extract?

For example, the default MapExtractor execution, extract 64 groups of image files (i means i have 64 quartets of borders.png, colorscales.png, ProvID.png and tiles.png) all sized 3744 x 1440.

Is it possible to have almost half the quartets or better 1/4 of them?

Ok,

after several attempts, i figure to obtain 9 quartets of .png files.

If someone is interested here is the command line you have to launch in dos prompt:

mapextractor -extract(0,0,312,120,3,3)
 
Last edited:
I have a problem with the borders:

I'm using the MapUtility v1.2.5 beta; i only extracted images with mapextractor, i made no image editing, and i created the map with Mapmaker directly, all works fine except that i can't see the national borders that divide the countries.

Normal map (red borders visible):

Borders.jpg



My map with MapUtility (no image editing made, but no red borders):

NoBorders.jpg


Someone knows what could be the problem?