Update portrait for units

Updated the display for the Foot Carabinier (Royal Musketeer) for the Napolinec Revolt. The left arm was missing or it looked like it was missing. Added the arm and the gun. How do I create a mod to override the portrait image of the armless Foot Carabinier for this one?

Also, can I do specific displays for specific civs? For example: the Hussar, to only show an updated/modded display only for a dedicated civ like the USA?

Image open to be used by anyone btw

As far as I know, you just have to put the new image in a mod in the exact same route with the exact same name to override the game image.

2 Likes

Yes, see the USA and Mexico outlaws for an example. I think the portrait needs to be swapped first thing, because once you look at it the new one won’t show up.

Unfortunately this removes multiplayer compatibility, if that’s something you’re concerned about.

protoy.xml: <icon>and

1 Like

can this be done on the techtreemods xml?

You can check the Aztec settlers.
They have the code for " replace icon "

1 Like

Done. Is working good. Thnks

1 Like

This worked, thks. Just one thing, I created new icons for some Settlers. Portrait and icons work good but how can I Override the HomeCity Shipment to have the new icon too?

Like te Dutch or Otto Settlers

I think dutch and Otto have unique techs

It dose not seem to be the case.

evermind, I found it. I just replace the Shipment icon with new one: Inside the tech “DEAge0Mexicans” on techtree mods

	<effect mergeMode='add' type="Data" amount="0.00" subtype="CopyTechIcon" tech="MXHCSShipSettlerIcon" relativity="Absolute">
			<target type="Tech">HCShipSettlers2</target>
		</effect>

and created a tech with the new settler icon.

<tech name="DEHCREVMXShipSettlers1" type="Normal">
    <displaynameid>113118</displaynameid>
	<icon>resources\art\units\settler\mx_peasant_icon.pn</icon>
</tech>
1 Like