Could anybody tell me how to add unit strategy icons?

xxhe

Prince
Joined
Mar 10, 2008
Messages
410
Location
California
Hi!

The icon information is saved in civ5artdefines_sv_units.xml. This file does not begin with <Gamedata>. So after .674 patch, does anybody know how to add unit strategy icons? Can I directly add it through XML?

Thank you in advance!:goodjob:
xxhe
 
Hi,

I believe you could add them prior to the patch, but apparently (at least according to everyone i've spoken with) it would screw up the other Strategic View icons in the process - but don't quote me on it.

As for the artdefines, post the new patch it now uses SQL to add custom art into a game. You need to make an SQL file in your mod and add the relevant information.

This thread may help get you on your way:
http://forums.civfanatics.com/showthread.php?p=11532796

I know many new G&Ks Civs seem to put SV icons in their Civ, whether they work properly or not I haven't play tested enough to tell you. Best thing to do is load a mod that has one, see if it works and then see if you can duplicate the results in your own mod.

Good luck,
-Mars
 
As people have saiud you use the database to add Art now. Like so:-
Code:
INSERT INTO ArtDefine_StrategicView (StrategicViewType, TileType, Asset)
	VALUES	('ART_DEF_RESOURCE_COFFEE_BEANS',[B] 'Resource'[/B], [U]'Art/Resources/Coffee/SV_CoffeeBean.dds'[/U]);

Changing the TileType(In Bold) to represent what you are adding and also pointing at the right file in your mod(Part underlined).
 
You can also do it in XML, here is an example from the "Galleys for Civs" mod by jpbar81 (it should be inside <GameData> tags):

Code:
	<ArtDefine_StrategicView>
		<Row>
			<StrategicViewType>ART_DEF_UNIT_BATTLE_GALLEY</StrategicViewType>
			<TileType>Unit</TileType>
			<Asset>sv_galley.dds</Asset>
		</Row>
	</ArtDefine_StrategicView>
 
Yes I use custom Strategic View icons in Sengoku Jidai. Give me one sec.

Here you go:

Spoiler :

Code:
<GameData>
	<ArtDefine_StrategicView>
		<Row>
			<StrategicViewType>ART_DEF_UNIT_ASHIGARU</StrategicViewType>
			<TileType>Unit</TileType>
			<Asset>sv_warrior.dds</Asset>
		</Row>
		<Row>
			<StrategicViewType>ART_DEF_UNIT_BUSHI</StrategicViewType>
			<TileType>Unit</TileType>
			<Asset>sv_swordsman.dds</Asset>
		</Row>
		<Row>
			<StrategicViewType>ART_DEF_UNIT_LIGHT_CAVALRY</StrategicViewType>
			<TileType>Unit</TileType>
			<Asset>sv_horseman.dds</Asset>
		</Row>
		<Row>
			<StrategicViewType>ART_DEF_UNIT_HEAVY_CAVALRY</StrategicViewType>
			<TileType>Unit</TileType>
			<Asset>sv_hakkapeliitta.dds</Asset>
		</Row>
		<Row>
			<StrategicViewType>ART_DEF_UNIT_SJ_BOWMAN</StrategicViewType>
			<TileType>Unit</TileType>
			<Asset>sv_compositebowman.dds</Asset>
		</Row>
		<Row>
			<StrategicViewType>ART_DEF_UNIT_SAMURAI_ARCHER</StrategicViewType>
			<TileType>Unit</TileType>
			<Asset>sv_crossbowman.dds</Asset>
		</Row>
		<Row>
			<StrategicViewType>ART_DEF_UNIT_RONIN</StrategicViewType>
			<TileType>Unit</TileType>
			<Asset>sv_samurai.dds</Asset>
		</Row>	
		<Row>
			<StrategicViewType>ART_DEF_UNIT_YARI_ASHIGARU</StrategicViewType>
			<TileType>Unit</TileType>
			<Asset>sv_yariashigaru.dds</Asset>
		</Row>
</ArtDefine_StrategicView>
</GameData>
 
Glad to see it is as easy as it sounds, I swear I saw people do this with XML and it screwed up the other icons - but it's been a while since I was modding, something must've changed, glad to see it all works and it can be done different ways.
 
You also have to make sure you check "Reload Strategic View System" or something similar in the Mod Properties tab under where you write the description otherwise it won't show up in the game even with the proper XML.
 
Back
Top Bottom