• 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'm not sure I understand, the highest province ID I have is 79 as defined in definition.csv; the lake Cocolcin [ 79;127;141;219;Cocolcin;x ]

max_provinces is set to 80 (highest id = 79 + 1); I also have sea_starts = 58

And, yes, I am aware the map is sort of flake-y at the moment. Currently, I'm mostly concerned with stopping the crashes and getting it running at least.

Thanks for taking a look!
 
I'm not sure I understand, the highest province ID I have is 79 as defined in definition.csv; the lake Cocolcin [ 79;127;141;219;Cocolcin;x ]

max_provinces is set to 80 (highest id = 79 + 1); I also have sea_starts = 58

And, yes, I am aware the map is sort of flake-y at the moment. Currently, I'm mostly concerned with stopping the crashes and getting it running at least.

Thanks for taking a look!

What I meant with "your rivers.bmp contains too much black" is that a rivers.bmp usually doesn't have any black at all. But most likely this is not causing your problems.

I haven't checked the colors in your provinces.bmp (I have no graphical editor installed on my macbook). I might do that once I am at my other pc in the evening. Most likely the adjacencies file is the culprit after all so double check if the provinces that are used for portaging are the right ones. You most likely have corrected that already but in the uploaded version the file is called "_adjacencies.txt" with an extra underscore at the start.
 
See, this is what happens when you've been up the whole night trying to get the map to run, you accidentally colour the landmass black in rivers.bmp and completely forget to fix it.

I added underscores to both adjacencies and default.map so as to have the game load the vanilla files so that I could check the map in-game. So far, I've caught a colour contamination bug in the province of Samarah (fixed in latest version of provinces.bmp). So, yeah, the map loads if I run with vanilla files for "default.map" and "adjacencies.csv".


But whenever I try running with my modified adjacencies.csv OR default.map the game crashes violently.

Province 57 is the portage province (created only for that purpose). It should link 78 and 79 (river + lake).
 
I'm not sure whether this question belongs here, but anyway.

MappingProblems.png

A wise man on these forums said somewhere that the first step towards creating a map is coloring everything black & white. That may be easier said than done here, though. As you can see, the original creator of this map did some fancy stuff to make the land edges smooth over into the water. I know there's a Photoshop option that lets you color everything in one area in one color, while leaving everything else untouched. Does that option exist in Paint.NET or am I doomed to do this all by hand?
 
I'm not sure whether this question belongs here, but anyway.

View attachment 86627

A wise man on these forums said somewhere that the first step towards creating a map is coloring everything black & white. That may be easier said than done here, though. As you can see, the original creator of this map did some fancy stuff to make the land edges smooth over into the water. I know there's a Photoshop option that lets you color everything in one area in one color, while leaving everything else untouched. Does that option exist in Paint.NET or am I doomed to do this all by hand?
I got to the black and white bit with GIMP, but the basic thrust should be the same in Paint.NET if it's got the same functions. I started off with a map much like yours, desautrated it (made it greyscale, basically) and then used the brightness/contrast function to crank Contrast to its max value, which then turned the Greyscale image into black and white. Adjust brightness if necessary before cranking up the contrast, and bam, done.
 
Cross-posting from the Issues With Custom Maps thread, since this is probably a more appropriate thread for it:
How much does trees.bmp matter? I'm currently working on a 2816x2048 map, and vanilla's trees.bmp is 256x293 for what's normally a 2048x2048 map. To make the file work with the new map, do I have to resize it to (256*(2816/2048))x293?

e: I've getting an error in graphics.log which (in part reads)
Code:
[pdxmapgeneration.cpp:222]: Too small river found at 1503, 540
[pdxmapgeneration.cpp:222]: Too small river found at 1500, 538
For the sake of visual aid, I've colored in those two points in orange, cropped the image and blown it up to show what the map's referring to:
Blheb5x.png

Do I have to make the dark blue part of the river wider, or what?

e2: The river errors no longer appear in the logs, but
Code:
[gfx_dx9.cpp:1436]: Error create vertices -2005530516 8 0 28
[gfx_dx9.cpp:1439]: managed
is in error.log, and
Code:
[provincetemplate.cpp:244]: Province 0 has invalid origin
[eu3graphicalmap.cpp:2041]: Province 6 has illegal capital location, x: 2210.000, y: 548.000(Bounds x: 2201-3654, y: 537-566)
is in graphics.log. Isn't province 6's capital even within the bounds as defined by the output above? What the devil's going on?
 
Last edited:
I'm not sure whether this question belongs here, but anyway.

View attachment 86627

A wise man on these forums said somewhere that the first step towards creating a map is coloring everything black & white. That may be easier said than done here, though. As you can see, the original creator of this map did some fancy stuff to make the land edges smooth over into the water. I know there's a Photoshop option that lets you color everything in one area in one color, while leaving everything else untouched. Does that option exist in Paint.NET or am I doomed to do this all by hand?


I did it by hand for the Dragon Age mod that never got anywhere. If that map isn't alreadty made to make it easy then there's not much you can do. Some filters can help, but it really depends on the map you're using.
 
Back Again!

So I have advanced farther from my last post on the last page. My map now has five provinces, I've added two sea provinces, and made a portage. But now I'm having a problem with my map.

When I run my mod, the game crashes on startup at "Map Logic". Looking at the logs, I get this message in graphics.log:

Code:
[map.cpp:1335]: Province 1 has no pixels in provinces.bmp

I have no idea why I get this message since I do have province 1 defined in definition.csv and it matches exactly the RGB numbers that Photoshop gives me.

definition.csv:

Code:
province;red;green;blue;x;x

1;255;246;0;Coruscant;x
2;255;78;0;Mettellos;x
3;0;108;255;Core;x			# sea starts here
4;70;255;192;River1;x
5;68;255;192;River2;x

Here's a link to my code: http://www.mediafire.com/download/3t8hpbnkrolr4mm/SW_rewrite_2.zip

Any help would be appreciated!

P.S: I have also included my previous post if anyone's interested:

I have joined a small group of people who are trying to make a Star Wars mod for EUIV (we're trying to see if we can at least get started). Unfortunately, I’m the only one in the group that has any modding experience. So, that means I’m trying to learn how to make a custom map. I watched a group of videos that show how to make a pre-1.10 custom map (so, it's a little outdated), however the information is still mostly useful, so the only problems I am getting I think has to do with adding a major river and/or adjacencies, which I do not know how to do. Would someone be willing to look at my files to see if that's the only issue, and to teach me how to make major river and/or adjacencies?

Link:http://www.mediafire.com/download/sdwi6d6i6ifowwd/SW_test_map.zip

My map has 3 provinces, with the first two being land, and the last being a sea province.

The videos I was referring to, if anyone was interested:
part 1: http://www.youtube.com/watch?v=fFtGv0iMYAY
part 2: http://www.youtube.com/watch?v=SziwKIhPgSs
part 3: http://www.youtube.com/watch?v=IPa76AtL0hU


I left the vanilla adjacencies.csv file in the mod because I did not understand how to make the sea/Major rivers/portages.

Based on the code on the first line, I believe I figured out most of it.

Code:
From;To;Type;Through;-1;-1;-1;-1;Comment

The From and To part, both use numbers, which I believe corresponds to the province number. The Type part, tells the computer what type it is either sea, major_river, or portage. The Through part, is another number, which I believe represents the province that the thing is going through (why seas have this as well, I don't know). The four -1's are in everything, so I'll just leave that be. And the Comment part is just helpful info to modders. Do I have that all correct?

The static.txt I commented out, and positions.txt I left as vanilla (which probably needs to be changed, but don't know how).

So that's everything I know about. Hopefully, what I just said makes sense and someone is willing to help.

P.S. If anyone wants to join the group, that would be awesome! :happy:
 
My game is crashing at "calculating paths". The graphics log claims none of my provinces (completely custom map) have pixels in the provinces.bmp, but I've checked and every RGB value matches the ones in the definitions file.

The entirety of my errorlog consists of:

Code:
[texturehandler.cpp:181]: Couldn't find texture file: gfx//event_pictures//aztec_court.tga.
[spritetype.cpp:370]: Error initialising texture: gfx\\event_pictures\\aztec_court.tga for spritetype GFX_evt_emissary_mesoamerican
[spritetype.cpp:370]: Error initialising texture: gfx\\event_pictures\\aztec_court.tga for spritetype GFX_evt_throne_room_mesoamerican
[rome_bitmap.cpp:23]: We do not support bitdepth at 32
[rome_bitmap.cpp:23]: We do not support bitdepth at 32

and the first three appear in my vanilla log in addition to being completely irrelevant to maps. I'm completely stumped. Please help :(
 
@StLeibowitz

The last one implies that you saved one of the BMPs with the wrong bitdepth (which can be the cause of your problems!). The ones above mean that you haven't enabled Sunset Inavasion.
 
@StLeibowitz

The last one implies that you saved one of the BMPs with the wrong bitdepth (which can be the cause of your problems!). The ones above mean that you haven't enabled Sunset Inavasion.

Thank you. Mod now crashes when loading flags, but that's a problem for a different thread. Map works fine :)
 
Having trouble getting a modded map to work. I've decided to add my own little island with a number of provinces to the Project Balance map. I've done this before with other mods over other versions of the game, but this is the first since TOG.

The game crashes during calculating paths. My setup.log stops after the last province's adjacencies and does not reach "Map Initialized".

Any thoughts?

Map Folder: https://www.dropbox.com/s/th2dzesjyornpf7/map.zip
 
Having trouble getting a modded map to work. I've decided to add my own little island with a number of provinces to the Project Balance map. I've done this before with other mods over other versions of the game, but this is the first since TOG.

The game crashes during calculating paths. My setup.log stops after the last province's adjacencies and does not reach "Map Initialized".

Any thoughts?

Map Folder: https://www.dropbox.com/s/th2dzesjyornpf7/map.zip

Bump for the weekday crowd :)
 
Posting the whole mod won't hurt: That way anyone that tries to fix it can actually load it up and see the error himself. Also landed_titles and history/provinces + titles can also be the cause for trouble.

Didn't realize that could be the issue too. I'll take another attempt at fixing it and post the whole mod if necessary. Thanks for the tip!
 
I am also having problems with the "Province xx has no pixels in provinces.bmp" error logs. In my case every single province is listed. I am trying to add sail-able rivers to a custom maps someone else made. If I add just a small section and a portage it works fine. I went ahead and added all the rivers and now I crash.

If you get that you have an RGB code in your definition.csv that is not in the provinces.bmp. There's not much more to it.