• 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.
Jamie550 said:
Do you have a complete objects.txt file?
Code:
ProvinceNameColumn=1

object = 
{
	name="Capital"
	xColumn=29
	yColumn=30
	image=
	{
		path="gfx\map\city.bmp"
		bounds={x=0 y=0 width=32 height=32}
		transparency=
		{
			color={R=245 G=3 B=250}
			color={R=0 G=255 B=255}
		}
	}
}
object = 
{
	name="Airfield/Rocketsite/Reactor"
	xColumn=20
	yColumn=21
	image=
	{
		path="gfx\map\airfield.bmp"
		bounds={x=0 y=0 width=32 height=32}
		transparency=
		{
			color={R=245 G=3 B=250}
			color={R=0 G=255 B=255}
		}
	}
	image=
	{
		path="gfx\map\rocket.bmp"
		bounds={x=0 y=0 width=32 height=32}
		transparency=
		{
			color={R=245 G=3 B=250}
			color={R=0 G=255 B=255}
		}
	}
	image=
	{
		path="gfx\map\nuke.bmp"
		bounds={x=0 y=0 width=32 height=32}
		transparency=
		{
			color={R=245 G=3 B=250}
			color={R=0 G=255 B=255}
		}
	}
}
object = 
{
	name="Army/Counter"
	xColumn=22
	yColumn=23
	image=
	{
		path="gfx\map\units\bmp\T-INFANTRY A-STAND C-MIN L-1.bmp"
		bounds={x=0 y=0 width=96 height=96}
		transparency=
		{
			color={R=0 G=255 B=255}
			color={R=255 G=0 B=255}
		}
	}
	image=
	{
		path="gfx\palette\counter.bmp"
		bounds={x=0 y=0 width=32 height=34}
		transparency=
		{
			color={R=0 G=255 B=255}
		}
	}
}
object = 
{
	name="Port"
	xColumn=24
	yColumn=25
	image=
	{
		path="gfx\map\harbour.bmp"
		bounds={x=0 y=0 width=32 height=32}
		transparency=
		{
			color={R=245 G=3 B=250}
			color={R=0 G=255 B=255}
		}
	}
}
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}
		}
	}
}
object = 
{
	name="Land/Coastal Fort"
	xColumn=29
	yColumn=30
	image=
	{
		path="gfx\map\fortification.bmp"
		bounds={x=0 y=0 width=32 height=32}
		transparency=
		{
			color={R=245 G=3 B=250}
		}
	}
}
object = 
{
	name="Antiair/Radar"
	xColumn=31
	yColumn=32
	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}
		}
	}
}
object = 
{
	name="Counter"
	xColumn=33
	yColumn=34
	image=
	{
		path="gfx\palette\counter.bmp"
		bounds={x=0 y=0 width=32 height=34}
		transparency=
		{
			color={R=0 G=255 B=255}
		}
	}
}

Jamie550 said:
How exactly would all image clauses be displayed? As a popup with the possible images, then select one?
Just normally, so that you can see the AA and radar icon (or airfield, reactor and rocket) at the same time.
To show it what I mean I made it with additional objects (radar and reactor):


Jamie550 said:
Enable/disable beaches and ports would be doable. Is enabled=1 and disabled=0?
Yes. But there should be a problem if a province with enabled port has 0 as "Port Seazone". Either disallow to enable ports for provinces without valid sea zones or make it possible to determine the sea zone.
 
I have edited one province name (added i in Novi Pazar) to test the editor. When it created all files, and I replaced them in appropriate folder, I tried to start the game. It reported that I need the newest Milestone, and game did not start. Do you know what is the problem? Thank you.
 
Vladimir II said:
I have edited one province name (added i in Novi Pazar) to test the editor. When it created all files, and I replaced them in appropriate folder, I tried to start the game. It reported that I need the newest Milestone, and game did not start. Do you know what is the problem? Thank you.
Did you download adj-mod.txt and place it in MapMaker's folder? If you did not, then do so (it is on the downloads page) and do steps 3 and 5.
 
Latest objects.txt, forgot that capital and the forts share the columns.
Code:
ProvinceNameColumn=1

object = 
{
	name="Capital/Forts"
	xColumn=29
	yColumn=30
	image=
	{
		path="gfx\map\city.bmp"
		bounds={x=0 y=0 width=32 height=32}
		transparency=
		{
			color={R=245 G=3 B=250}
			color={R=0 G=255 B=255}
		}
	}
	image=
	{
		path="gfx\map\fortification.bmp"
		bounds={x=0 y=0 width=32 height=32}
		transparency=
		{
			color={R=245 G=3 B=250}
		}
	}
	image=
	{
		path="gfx\map\coastal_fortification.bmp"
		bounds={x=0 y=0 width=32 height=32}
		transparency=
		{
			color={R=245 G=3 B=250}
		}
	}
}
object = 
{
	name="Airfield/Rocketsite/Reactor"
	xColumn=20
	yColumn=21
	image=
	{
		path="gfx\map\airfield.bmp"
		bounds={x=0 y=0 width=32 height=32}
		transparency=
		{
			color={R=245 G=3 B=250}
			color={R=0 G=255 B=255}
		}
	}
	image=
	{
		path="gfx\map\rocket.bmp"
		bounds={x=0 y=0 width=32 height=32}
		transparency=
		{
			color={R=245 G=3 B=250}
			color={R=0 G=255 B=255}
		}
	}
	image=
	{
		path="gfx\map\nuke.bmp"
		bounds={x=0 y=0 width=32 height=32}
		transparency=
		{
			color={R=245 G=3 B=250}
			color={R=0 G=255 B=255}
		}
	}
}
object = 
{
	name="Army/Counter"
	xColumn=22
	yColumn=23
	image=
	{
		path="gfx\map\units\bmp\T-INFANTRY A-STAND C-MIN L-1.bmp"
		bounds={x=0 y=0 width=96 height=96}
		transparency=
		{
			color={R=0 G=255 B=255}
			color={R=255 G=0 B=255}
		}
	}
	image=
	{
		path="gfx\palette\counter.bmp"
		bounds={x=0 y=0 width=32 height=34}
		transparency=
		{
			color={R=0 G=255 B=255}
		}
	}
}
object = 
{
	name="Port"
	xColumn=24
	yColumn=25
	image=
	{
		path="gfx\map\harbour.bmp"
		bounds={x=0 y=0 width=32 height=32}
		transparency=
		{
			color={R=245 G=3 B=250}
			color={R=0 G=255 B=255}
		}
	}
}
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}
		}
	}
}
object = 
{
	name="Antiair/Radar"
	xColumn=31
	yColumn=32
	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}
		}
	}
}
object = 
{
	name="Counter"
	xColumn=33
	yColumn=34
	image=
	{
		path="gfx\palette\counter.bmp"
		bounds={x=0 y=0 width=32 height=34}
		transparency=
		{
			color={R=0 G=255 B=255}
		}
	}
}
 
ADukes said:
Latest objects.txt, forgot that capital and the forts share the columns.
Thanks.

Since objecteditor is mainly to make positioning objects easier, setting seazones and deciding whether enabled or not may be out of its purview.

As for showing everything, probably, though are all those really stacked on top of the other?

Meanwhile... :cool:

Code:
/*New stuff: Now can have multiline comments like this

Also, can "DEFINE" stuff by
@DEFINE
Name
stuff
@

So
@DEFINE
Path
path="gfx\sde.bmp"
@

and if you had *Path
the *Path would be replaced by path="gfx\sde.bmp"
*/

ProvinceNameColumn=1

object = 
{
	name="Capital/Forts"
	xColumn=29
	yColumn=30
	image=
	{
		path="gfx\map\city.bmp"
		bounds={x=0 y=0 width=32 height=32}
		transparency=
		{
			color={R=245 G=3 B=250}
			color={R=0 G=255 B=255}
		}
	}
	image=
	{
		path="gfx\map\fortification.bmp"
		bounds={x=0 y=0 width=32 height=32}
		transparency=
		{
			color={R=245 G=3 B=250}
		}
	}
	image=
	{
		path="gfx\map\coastal_fortification.bmp"
		bounds={x=0 y=0 width=32 height=32}
		transparency=
		{
			color={R=245 G=3 B=250}
		}
	}
}
object = 
{
	@DEFINE
	AirfieldCommon

	bounds={x=0 y=0 width=32 height=32}
	transparency=
	{
		color={R=245 G=3 B=250}
		color={R=0 G=255 B=255}
	}
	@
	name="Airfield/Rocketsite/Reactor"
	xColumn=20
	yColumn=21
	image=
	{
		path="gfx\map\airfield.bmp"
		*AirfieldCommon
	}
	image=
	{
		path="gfx\map\rocket.bmp"
		*AirfieldCommon
	}
	image=
	{
		path="gfx\map\nuke.bmp"
		*AirfieldCommon
		
	}
}
object = 
{
	name="Army/Counter"
	xColumn=22
	yColumn=23
	/* Unfortuantly, I deleted the sprites, so this doesn't work
	image=
	{
		path="gfx\map\units\bmp\T-INFANTRY A-STAND C-MIN L-1.bmp"
		bounds={x=0 y=0 width=96 height=96}
		transparency=
		{
			color={R=0 G=255 B=255}
			color={R=255 G=0 B=255}
		}
	}*/
	image=
	{
		path="gfx\palette\counter.bmp"
		bounds={x=0 y=0 width=32 height=34}
		transparency=
		{
			color={R=0 G=255 B=255}
		}
	}
}
object = 
{
	name="Port"
	xColumn=24
	yColumn=25
	image=
	{
		path="gfx\map\harbour.bmp"
		bounds={x=0 y=0 width=32 height=32}
		transparency=
		{
			color={R=245 G=3 B=250}
			color={R=0 G=255 B=255}
		}
	}
}
object = 
{
	name="Beach"
	xColumn=26
	yColumn=27
	IndexColumn=28
	@DEFINE
	BeachCommon
	path="gfx\map\beach.bmp"
	transparency=
	{
		color={R=0 G=255 B=0}
	}
	@
	image=
	{
		bounds={x=0 y=0 width=34 height=37}
		*BeachCommon
	}
	image=
	{
		bounds={x=34 y=0 width=34 height=37}
		*BeachCommon
	}
	image=
	{
		bounds={x=68 y=0 width=34 height=37}
		*BeachCommon
	}
	image=
	{
		bounds={x=102 y=0 width=34 height=37}
		*BeachCommon
	}
	image=
	{
		bounds={x=136 y=0 width=34 height=37}
		*BeachCommon
	}
	image=
	{
		bounds={x=170 y=0 width=34 height=37}
		*BeachCommon
	}
	image=
	{
		bounds={x=204 y=0 width=34 height=37}
		*BeachCommon
	}
	image=
	{
		bounds={x=238 y=0 width=34 height=37}
		*BeachCommon
	}
	image=
	{
		bounds={x=272 y=0 width=34 height=37}
		*BeachCommon
	}
	image=
	{
		bounds={x=306 y=0 width=34 height=37}
		*BeachCommon
	}
	image=
	{
		bounds={x=340 y=0 width=34 height=37}
		*BeachCommon
	}
	image=
	{
		bounds={x=374 y=0 width=34 height=37}
		*BeachCommon
	}
	image=
	{
		bounds={x=408 y=0 width=34 height=37}
		*BeachCommon
	}
	image=
	{
		bounds={x=442 y=0 width=34 height=37}
		*BeachCommon
	}
	image=
	{
		bounds={x=476 y=0 width=34 height=37}
		*BeachCommon
	}
	image=
	{
		bounds={x=510 y=0 width=34 height=37}
		*BeachCommon
	}
}
object = 
{
	name="Antiair/Radar"
	xColumn=31
	yColumn=32
	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}
		}
	}
}
object = 
{
	name="Counter"
	xColumn=33
	yColumn=34
	image=
	{
		path="gfx\palette\counter.bmp"
		bounds={x=0 y=0 width=32 height=34}
		transparency=
		{
			color={R=0 G=255 B=255}
		}
	}
}
 
Jamie550 said:
As for showing everything, probably, though are all those really stacked on top of the other?
Yes they are.
Some are placed differently in the image file (example of the original files: AA gun is placed in the lower left and radar in the upper right), so that the images are stacked but the content doesn't interfere each other.

A good example are the StonyRoad icons.
There they solved it for the capital/forts and airfield/reactor/rocketsite) too, which is not the case with the original icons:
mapiconpreview_q23.gif
 
Jamie said:
Kertoxian: No. What happens when you zoom in? What did you change? Can you view in MapViewer correctly? Please upload the map files.

When i zoom the map stills views like that, only that in different zooms. I changed the name of a province using photoshop cs2 (erasing the province name first and copy/pasteing every character into the renamed province (IE, selecting an "E" over here, an "U" from there instead of writing because i don't know what font to use)

Yes the mapviewer shows the map correctly, even with the province name changed (BTW i changed Bilbao for Euskadi)

Map files uploaded:
http://rapidshare.com/files/118328042/map.rar.html
 
Last edited:
Vladimir II said:
Which files to upload? I will upload them tomorrow morning (GMT+1).
If you used photoshop, upload the photoshop files that you used. If not, upload the images that you edited.



Here is the new objecteditor and objects.txt file: link.

Notice the ViewAllAtOnce=yes clause
 
ViewAllAtOnce=yes should be available for the AA/radar clause only (at least for the vanilla icons).

And that's how the army clause should look like:
Code:
object = 
{
	name="Army/Counter"
	xColumn=22
	yColumn=23
	image=
	{
		path="gfx\palette\counter.bmp"
		bounds={x=0 y=0 width=32 height=34}
		transparency=
		{
			color={R=0 G=255 B=255}
		}
	}
#Note: Comment out if you deleted sprites
/*	image=
	{
		path="gfx\map\units\bmp\T-INFANTRY A-STAND C-MIN L-1.bmp"
		bounds={x=0 y=0 width=96 height=96}
		transparency=
		{
			color={R=0 G=255 B=255}
			color={R=255 G=0 B=255}
		}
	}*/
}

Did you change something on the icon positioning, because it looks a bit different than on my first shot posted earlier (post #432)? The icons are closer together.
It's probably caused by the ViewAllAtOnce=yes.
 
Last edited:
ADukes said:
ViewAllAtOnce=yes should be available for the AA/radar clause only (at least for the vanilla icons).

And that's how the army clause should look like:
Code:
object = 
{
	name="Army/Counter"
	xColumn=22
	yColumn=23
	image=
	{
		path="gfx\palette\counter.bmp"
		bounds={x=0 y=0 width=32 height=34}
		transparency=
		{
			color={R=0 G=255 B=255}
		}
	}
#Note: Comment out if you deleted sprites
/*	image=
	{
		path="gfx\map\units\bmp\T-INFANTRY A-STAND C-MIN L-1.bmp"
		bounds={x=0 y=0 width=96 height=96}
		transparency=
		{
			color={R=0 G=255 B=255}
			color={R=255 G=0 B=255}
		}
	}*/
}

Did you change something on the icon positioning, because it looks a bit different than on my first shot posted earlier (post #432)? The icons are closer together.
It's probably caused by the ViewAllAtOnce=yes.
But isn't the counter in the center of the province boundbox by default, unless specifically set, so that it won't be the same as the army sprite?

For the icon positioning, I'll check when I get home, but if the individual images are the same size I don't think that there should be any problems.
 
ADukes said:
And that it is what I mean with the center of the province.
OK, it was probably a lott more obvious for you than it was for me, that it is like that. Since i was guessing and from the look of it in this tread you actually knew what you where talking about. :)
 
Can someone post an actual installation guide? I've been trying to install this for the past half hour with no success.

Where is images.txt? Where should the files go? Main folder or \map folder? Is it necessary to set the gamepath in the setting.txt file manually?
 
mib said:
Can someone post an actual installation guide? I've been trying to install this for the past half hour with no success.

Where is images.txt? Where should the files go? Main folder or \map folder? Is it necessary to set the gamepath in the setting.txt file manually?
Yes you must set GamePath manually

Here is "installation" and help: Link
 
mib said:
Sorry, but it's still really confusing. Which is step 4? For that matter, which are steps 1 to step 6?
Those are steps in MapMaker.

Have you successfully extracted files with MapViewer?


ADukes: Couldn't replicate the incorrect movement. Could post a screenshot with them together and ViewAllAtOnce=yes, and another with them in separate object={} clauses?
 
Last edited:
Jamie550 said:
But isn't the counter in the center of the province boundbox by default, unless specifically set, so that it won't be the same as the army sprite?
Argh, of course.

Jamie550 said:
ADukes: Couldn't replicate the incorrect movement. Could post a screenshot with them together and ViewAllAtOnce=yes, and another with them in separate object={} clauses?
Here are both screens again.

separate object={} clauses:


ViewAllAtOnce=yes:
 
Status
Not open for further replies.