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

Bizon

Lt. General
39 Badges
Apr 4, 2004
1.479
126
  • Hearts of Iron IV: Cadet
  • 500k Club
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Cities: Skylines - Snowfall
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • 200k Club
  • Hearts of Iron IV: Together for Victory
  • Cities: Skylines - Mass Transit
  • Hearts of Iron IV: Death or Dishonor
  • Age of Wonders III
  • Cities: Skylines - Green Cities
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Parklife
  • Cities: Skylines Industries
  • Cities: Skylines - Campus
  • Europa Universalis IV
  • Hearts of Iron II: Armageddon
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III: Chronicles
  • Arsenal of Democracy
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For The Glory
  • Hearts of Iron III
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Victoria 2
dhpe.png


Download and info

In addition to the list generation tool I recently posted here on the forums there is another app that some might find useful. I created it originally using various snippets of code, to support mumia in his map-editing endeavors but maybe someone else will too find it useful. The application allows for easy click-and-change editing of various province properties, showing thing like terrain types, region/area affiliations and productivity stats using colorscales.

While most modding tools are useful for something like 1% of potential readers, this particular one would be of use for perhaps 0.1% ;) If you want to use this utility to edit provinces for your map, you will need files (bitmap/PNG pictures) for your maps, in particular colorscales map (with provinces names, borders, etc.), ID map (with every province painted unique) and ID conversion table which will translate those colors into province ids. There is no map included with this release.

If you think that tool may be useful for you anyway and need some guidance to how use map files to work with program, here's the place to ask!
 
Last edited:
  • 1Like
Reactions:
Where do we must put both files to make it work?
 
You'll have to put the files anywhere on the disk and then look at the following entry in DHProvEd.xml:

<ColorscalesMap>D:\colorscales_</ColorscalesMap>

The program will look for any PNG file (BMP also should do, AFAIR) in "D:\" location, beginning with "colorscales_" so you'll have to change the path to the location of the files on your disk. If there is one big file, OK; if there are more files, they'll be accessible through "Map" dropdown box in the toolbar. Performance of editing one huge file can be quite low, though.

Similarly, there is another setting for ID map file(s):

<IDMap>D:\ID_</IDMap>

If the map is divided into four parts, you'll need the following files in "D:\" location:

colorscales_R1C1.png
colorscales_R1C2.png
colorscales_R2C1.png
colorscales_R2C2.png
id_R1C1.png
id_R1C2.png
id_R2C1.png
id_R2C2.png

And colorscales_R1C1.png and id_R1C1.png should correspond to the exactly same area of the world, and so on.

The part after underscores doesn't need to follow any pattern but it's the style that I get from TileMage app which I use to divide images into tiles.
 
  • 1
Reactions:
You'll have to put the files anywhere on the disk and then look at the following entry in DHProvEd.xml:

<ColorscalesMap>D:\colorscales_</ColorscalesMap>

The program will look for any PNG file (BMP also should do, AFAIR) in "D:\" location, beginning with "colorscales_" so you'll have to change the path to the location of the files on your disk. If there is one big file, OK; if there are more files, they'll be accessible through "Map" dropdown box in the toolbar. Performance of editing one huge file can be quite low, though.

Similarly, there is another setting for ID map file(s):

<IDMap>D:\ID_</IDMap>

If the map is divided into four parts, you'll need the following files in "D:\" location:

colorscales_R1C1.png
colorscales_R1C2.png
colorscales_R2C1.png
colorscales_R2C2.png
id_R1C1.png
id_R1C2.png
id_R2C1.png
id_R2C2.png

And colorscales_R1C1.png and id_R1C1.png should correspond to the exactly same area of the world, and so on.

The part after underscores doesn't need to follow any pattern but it's the style that I get from TileMage app which I use to divide images into tiles.

That's a great tools for modders:laugh:
however i fail to open this tools though i have downloaded all the essential parts. Is there any further requirements for this software to operate?
I have all the files needed and the address of the DHProvEd.xml has already been corrected. However, when the EXE still fail to launch
Thanks again
 
Last edited:
I assume you have PNG files at hand that represent map files (colorscales and ID map), as well as ID conversion table. First, did you point to those files in DHProvEd.xml? Even if you have only one file representing whole map, you have to use "C:\DHProvEd\colorscales", because ".png" extension will be added automatically. Second, do you have an ID table in the format "id;r;g;b", where id stands for a province id while r,g,b are composite RGB colors in the range of 0-255 each?

If you write more about your case, I can help and potentially change the program so it's free of most troubling idiosyncracies (currently, I'm sure, it's not).
 
Everything looks OK concerning the config file. Do you get any error message, if so what does it tell? Do you have .NET Framework 4 installed?

EDIT: Rainbow Crash, I suppose you are interested in files for DH Full map, but I don't have them, I don't edit provices just write tools to facilitate it. ;) Maybe someone else in this thread would help.
 
Hey Bizon, would that be possible for you to enable users to load scenario files with this tool and change provinces owners?
Would it also be possible, in case one wants to create a battlescenario, to edit the cfg file from your tool and choose what provinces he wants to display on the game map? (since you may want to skip some provinces, for instance make a battlescenario focused on Europe)
I have no idea how difficult these two would be to add, I'm just asking as it could be very useful for me.
 
OK, I think I made changes that should at least partially answer your needs.

If you download the dhpe.zip archive and look into XML config file, you will find now a new entry "OwnershipData", pointing to some txt file (you may point it at nonexistent file, it will create a blank file then). If such an entry is present, the editor will have some new functionality:

1. There is an "Owner" parameter for each province (a country tag), by default blank. You change it as usual, that is: click a province, choose it from the list.
2. To speed up things, if you change the parameter for one province, have it selected and Ctrl+click other provinces, they will too change their owner status to the one of selected province.
3. There is a new map mode for ownership.

Also now, the program by default loads the first map available.

The program is not that brilliant to generate scenario files itself. I could do it but it would need employing my parser and more coding. What it does, it generates on save such list in the txt file:

Code:
AFG: 56 57 58
ALI: 890 956 957 959 960
AST: 11 15 17
BEL:

with IDs assigned for each country. To get nationalprovinces, ownedprovinces, controlledprovinces, you'll have to copy those entries by hand.

If you need it to create a battlescenario, it's easy: you choose one arbitrary tag, set the owner of intended provinces and get the tag list in the output file. Then in Notepad++, you replace a space with "\r\nyes = ", that is endline + "yes = " and insert it into your map = { } container.

That is for now. If you really need editing scenario files, I may do it later but it will probably be a separate tool.