• 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.
Status
Not open for further replies.
There's something wrong with the column count in the ObjectEditor if the first object of the objects.txt uses the City XPos/YPos.

Province.csv count:
City XPos = Column 20
City YPos = Column 21
Army XPos = Column 22
Army YPos = Column 23
Port XPos = Column 24
Port YPos = Column 25

Editor count:
City XPos = Column 21
City YPos = Column 22
Army XPos = Column 23
Army YPos = Column 24
Port XPos = Column 25
Port YPos = Column 26

EDIT: Strange, now I can't reproduce it.


Make it possible to assign multiple images to an object.

The beach icon has an additional column "Beach Icon" which determines what icon to use.
 
Last edited:
Errrrhm is this normal?
 
Kertoxian: No. What happens when you zoom in? What did you change? Can you view in MapViewer correctly? Please upload the map files.

ADukes: How is figuring out everything going? Multiple images will be implemented, with the option of attaching a column to the image index or not. The beach icon position simply states offset*width of a beach in the beach image?
 
Jamie550 said:
But counterx and countery are usually empty :confused:
The counters have some form of default position, the precise relative position is unknown to me. But since provinces come in all forms and shapes, some of the default positions falls outside of the province, in these instances the counter position has been added.

http://forum.paradoxplaza.com/forum/showpost.php?p=7248608&postcount=51

In the above post you can see the counters for provinces in Northern India before and after i added counter positions. Some of the counters are clearly located in wrong provinces and if you look carefully you can see in one province there are two counters ontop of each other.
 
Gormadoc said:
The counters have some form of default position, the precise relative position is unknown to me. But since provinces come in all forms and shapes, some of the default positions falls outside of the province, in these instances the counter position has been added.

http://forum.paradoxplaza.com/forum/showpost.php?p=7248608&postcount=51

In the above post you can see the counters for provinces in Northern India before and after i added counter positions. Some of the counters are clearly located in wrong provinces and if you look carefully you can see in one province there are two counters ontop of each other.
So counter x and y are filled only if they are not the standard default position? And when there is nothing wrong with the default, counterx and y are set to 0, or they blank?

Do you know if the default position is calculated relative to to the army sprite or the province area?
 
Jamie550 said:
The beach icon position simply states offset*width of a beach in the beach image?
Probably yes.
The values in column "Beach Icon" go from 0 to 15, but the image contains 48 separate beaches; so the maximum value could be 47.


Jamie550 said:
Do you know if the default position is calculated relative to to the army sprite or the province area?
The default position is the center of the province.
 
Last edited:
ADukes said:
The default position is the center of the province.
This can not be correct, since if the default position is at the center of the provinces, counters could not be positioned outside the province as they are in many provinces of vanilla game.

I think it could be in the center of the smallest square that can be drawn around the province. That would explain the counters being shown on map outside of the province.
 
New version of ObjectEditor

Download here

Now you can have multiple image clauses.

Optionally, you can define a value called "IndexColumn", which will store the index of the selected image.

The indexes of the selected images are determined by the order they appear in the file.

Here is an incomplete sample:
Code:
object=
{
	name="Beach"
	xColumn=26
	yColumn=27
	IndexColumn=28
	image=
	{
		path="gfx\map\beach.bmp"
		bounds={x=0 y=0 width=34 height=37}
		transparency=
		{
			color={R=0 G=255 B=0}
			color={R=255 G=0 B=0}
		}
	}
	image=
	{
		path="gfx\map\beach.bmp"
		bounds={x=34 y=0 width=34 height=37}
		transparency=
		{
			color={R=0 G=255 B=0}
			color={R=255 G=0 B=0}
		}
	}
	image=
	{
		path="gfx\map\beach.bmp"
		bounds={x=0 y=0 width=34 height=37}
		transparency=
		{
			color={R=0 G=255 B=0}
			color={R=255 G=0 B=0}
		}
	}
}
 
Jamie, Is it possible to modify borders, to do something like this:
prprosrbgoe6.jpg
 
Vladimir II said:
Jamie, Is it possible to modify borders, to do something like this:
prprosrbgoe6.jpg
Yes. Change xxx.provid.png to change the underlying borders - what occurs when you click on a province.

Change xxx.grayscale.png so that the map looks like it has been changed.

Change xxx.tiles.png to move rivers to be correct.

Change xxx.borders.png to draw country borders correctly.

It may be easier to put all into photoshop, if so be sure to read the photoshop specs, included in the downloads under information folder, and also remember to update images.txt (might be called psd.txt in specs)
 
Gormadoc said:
I think it could be in the center of the smallest square that can be drawn around the province.
And that it is what I mean with the center of the province.
 
All right, thank you. Only problem is that neither I nor any other member of Uber Balkan Mod cannot start MapMaker program. If you have some free time, could you do that for us? The only problem is that I have applied quintelosky's modified map, with some province name changes, so I do not know will these changes disappear if you make these changes. If you are willing, I will give you better map, for that correction. Thank you very much in advance!
 
Vladimir II said:
All right, thank you. Only problem is that neither I nor any other member of Uber Balkan Mod cannot start MapMaker program. If you have some free time, could you do that for us? The only problem is that I have applied quintelosky's modified map, with some province name changes, so I do not know will these changes disappear if you make these changes. If you are willing, I will give you better map, for that correction. Thank you very much in advance!
First, you can use MapViewer to extract quintelosky's modified map and use that as a base. That will allow the changed province names to stay.

As for your problem with MapMaker, look at the help and troubleshooting threads (links on first post), and report the error as directed.
 
Now I have figured it out. I think. One more question, when I clicked the export button, it exported files Zoom_4_468_90.colorscales.png, Zoom_4_468_90.ProvID.png, Zoom_4_468_90.borders.png, but not grayscale and tiles. What is the problem?
 
Jamie550 said:
New version of ObjectEditor

Download here

Now you can have multiple image clauses.

Optionally, you can define a value called "IndexColumn", which will store the index of the selected image.

The indexes of the selected images are determined by the order they appear in the file.


Here's the complete for the beaches:
Code:
object = 
{
	name="Beach"
	xColumn=26
	yColumn=27
	IndexColumn=28
	image=
	{
		path="gfx\map\beach.bmp"
		bounds={x=0 y=0 width=34 height=37}
		transparency=
		{
			color={R=0 G=255 B=0}
		}
	}
	image=
	{
		path="gfx\map\beach.bmp"
		bounds={x=34 y=0 width=34 height=37}
		transparency=
		{
			color={R=0 G=255 B=0}
		}
	}
	image=
	{
		path="gfx\map\beach.bmp"
		bounds={x=68 y=0 width=34 height=37}
		transparency=
		{
			color={R=0 G=255 B=0}
		}
	}
	image=
	{
		path="gfx\map\beach.bmp"
		bounds={x=102 y=0 width=34 height=37}
		transparency=
		{
			color={R=0 G=255 B=0}
		}
	}
	image=
	{
		path="gfx\map\beach.bmp"
		bounds={x=136 y=0 width=34 height=37}
		transparency=
		{
			color={R=0 G=255 B=0}
		}
	}
	image=
	{
		path="gfx\map\beach.bmp"
		bounds={x=170 y=0 width=34 height=37}
		transparency=
		{
			color={R=0 G=255 B=0}
		}
	}
	image=
	{
		path="gfx\map\beach.bmp"
		bounds={x=204 y=0 width=34 height=37}
		transparency=
		{
			color={R=0 G=255 B=0}
		}
	}
	image=
	{
		path="gfx\map\beach.bmp"
		bounds={x=238 y=0 width=34 height=37}
		transparency=
		{
			color={R=0 G=255 B=0}
		}
	}
	image=
	{
		path="gfx\map\beach.bmp"
		bounds={x=272 y=0 width=34 height=37}
		transparency=
		{
			color={R=0 G=255 B=0}
		}
	}
	image=
	{
		path="gfx\map\beach.bmp"
		bounds={x=306 y=0 width=34 height=37}
		transparency=
		{
			color={R=0 G=255 B=0}
		}
	}
	image=
	{
		path="gfx\map\beach.bmp"
		bounds={x=340 y=0 width=34 height=37}
		transparency=
		{
			color={R=0 G=255 B=0}
		}
	}
	image=
	{
		path="gfx\map\beach.bmp"
		bounds={x=374 y=0 width=34 height=37}
		transparency=
		{
			color={R=0 G=255 B=0}
		}
	}
	image=
	{
		path="gfx\map\beach.bmp"
		bounds={x=408 y=0 width=34 height=37}
		transparency=
		{
			color={R=0 G=255 B=0}
		}
	}
	image=
	{
		path="gfx\map\beach.bmp"
		bounds={x=442 y=0 width=34 height=37}
		transparency=
		{
			color={R=0 G=255 B=0}
		}
	}
	image=
	{
		path="gfx\map\beach.bmp"
		bounds={x=476 y=0 width=34 height=37}
		transparency=
		{
			color={R=0 G=255 B=0}
		}
	}
	image=
	{
		path="gfx\map\beach.bmp"
		bounds={x=510 y=0 width=34 height=37}
		transparency=
		{
			color={R=0 G=255 B=0}
		}
	}
}

Is there a way to display all image clauses of an object at the same time?
If not, it would be a nice addition. Maybe IndexColumn=0 or -1?
Code:
object = 
{
	name="Antiair/Radar"
	xColumn=31
	yColumn=32
	IndexColumn=-1
	image=
	{
		path="gfx\map\antiair.bmp"
		bounds={x=0 y=0 width=32 height=32}
		transparency=
		{
			color={R=245 G=3 B=250}
		}
	}
	image=
	{
		path="gfx\map\radar.bmp"
		bounds={x=0 y=0 width=32 height=32}
		transparency=
		{
			color={R=245 G=3 B=250}
		}
	}
}

EDIT: Also nice would be to enable/disable beaches and ports, which is stored in the columns "Beaches" and "Port Allowed".
 
Last edited:
Vladimir II: Colorscales is actually grayscale. Tiles and border are not extracted unless they actually have information. In this case, there are apparently no rivers in the location, so tiles.png was not extracted. Also, it is recommended to do MapViewer -extract from the commandline, which creates a default images.txt as well as doing all maps at the same time.

ADukes: Do you have a complete objects.txt file? How exactly would all image clauses be displayed? As a popup with the possible images, then select one? Enable/disable beaches and ports would be doable. Is enabled=1 and disabled=0? The clause will be named EnabledColumn when it is implemented.
 
Never mind, I have extracted all images using command prompt. If I have understood your program it goes like this:

1. Use MapViewer to extract HoI map in an editable format;
2. Use Photoshop to edit map;
3. Use MapMaker to reintegrat changes into HoI map.

Is that correct?

Now one more question:

What to do to create new provinces?
 
Vladimir II said:
Never mind, I have extracted all images using command prompt. If I have understood your program it goes like this:

1. Use MapViewer to extract HoI map in an editable format;
2. Use Photoshop to edit map;
3. Use MapMaker to reintegrat changes into HoI map.

Is that correct?

Now one more question:

What to do to create new provinces?
Yes, remember to copy the exported maps and keep images.txt updated.

To create new provinces: First, you need to find the color to use while editing the provid layer. To do this, look in ids.csv (which is downloadable), find the id of the province that you want to add, and use the RGB value next to the id.
 
Jamie550 said:
Yes, remember to copy the exported maps and keep images.txt updated.

To create new provinces: First, you need to find the color to use while editing the provid layer. To do this, look in ids.csv (which is downloadable), find the id of the province that you want to add, and use the RGB value next to the id.
To copy exported maps; in the folder where MapMaker is?

And when I edit provid layer, then i edit other layers (define borders in borders.png, name in colourscale.png, etc)?

Could you post the link for that ids.csv file? Thank you very much in advance.
 
Vladimir II said:
To copy exported maps; in the folder where MapMaker is?

And when I edit provid layer, then i edit other layers (define borders in borders.png, name in colourscale.png, etc)?

Could you post the link for that ids.csv file? Thank you very much in advance.
Copying exported maps: Yes, or you could edit images.txt to have different paths

Order of editing layers doesn't matter, but probably easier to first do provid layer

ids.csv: Go to first post, click on download link, find link to ids.csv
 
Status
Not open for further replies.