Firstly, I don't actually own Photoshop, so what I next say might be stupid.XieChengnuo said:Hi Jamie,
Good on you for work on the HoI2 map editor! My suggestion is to follow the precedent made by Inferis and have there be several layers in a photoshop .psd file:
1) Lightmaps, this is a grayscale layer 0-255 ranging from pure black to pure white with grays in between. (If in photoshop, you could make this layer start in the "Multiply" blend mode, that would be great.
2) For the border province, you could make a clear layer with pure red indicating the borders (a cool thing you could also add would be if the user could draw green or blue lines to either indicate bridges across islands or blockable straits, which would add the appropriate lines to the adj_defs.csv file)
3) For the province IDs, to use the RGB values - it will be a lot clearer to people which provinces are different if you try and make the colours as far apart from each other as possible, if they are all varying shades of purple, then it can get very difficult to tell at a glance if that's one big province i see or two smaller ones.
3) The rivers overlay could be yet another layer, with actual RGB values, this time
OK, now the extra cool stuff - those nice-to-haves:
a) Some sort of colorscales.csv previewer, where you insert the R,G,B,index values in some sort of slider form, and a picture to the left of your sliders immediately shows you what your province would look like. This would be GREAT as a separate .exe file for people that just want to play around with colorscales.csv without worrying any of the other map-editing stuff.
b) Please have the ability to be able to edit the map as manageable chunks rather than only the whole thing, because the map is pretty huge and we don't all have a million GBs or RAM ^__^. It would be even cooler if we could set the parameters of what exactly which sizes we wanted so we could have a "europe" map and a "iran" map or whatever.
c) Do you have any idea what those artifacts at the bottom of the map are when you go out to maximum zoom? any way to fix that?
Is it possible to, after using photoshop, save the layers as different image files (I have not yet worked with psd files, and figuring out how to now would be a very diverting (as in distracting) experience)
Then there could be several maps, each representing the same area
1) A grayscale from 0-255 for the lightmap colorscales
2) Borders continue to remain frustrating, I will think more on this
3) In another layer? OK, but how will RGB values match to province IDs?
For rivers:
This is actually completely separate from the other files, and I perfer to process them separetely, to avoid running out of memory.
A single layer with RGB values will do. But is it possible to fill those chunks that you do not put anything in with that yellowish color on the bottom of map\tiles.bmp? If not thats fine.
The river overlay is actually so simple that I could probably finish that part today, if I get information fast enough (its 8AM for me right now)
Other stuff
a) There are complications...
b) Definitely need chunks. The lightmaps are divided into tiles of 32x32. I was thinking chunks of either 36x36 tiles or 72x72 tiles. The former would require 260 maps, in an arrangement of 26x10, and the latter would require 65 maps, in the arrangement of 13x5
Unfortuantly specifying where the chunks are would be too complicated for now.
c) Could you specify? Are you viewing by province or by colorscales?