Advertisement
Civilization Fanatics' Center  

Welcome to Civilization Fanatics' Center.

You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support.

Go Back   Civilization Fanatics' Forums > CIVILIZATION V > Civ5 - Creation & Customization

Notices

Reply
 
Thread Tools
Old Nov 11, 2010, 10:31 AM   #1
Lord Alderaan
Chieftain
 
Join Date: Oct 2009
Posts: 73
[HELP]UnitArtInfo ignored

For some strange reason a custom unit I made works perfectly except it ignores the UnitArtInfo tag.

Using the code below the unit still uses the art of a caravel instead of a carrier.

Code:
<GameData>
	<Units>
		<Row>
			<Class>UNITCLASS_CARAVEL</Class>
			<Type>UNIT_INDIAMAN</Type>
			<PrereqTech>TECH_ASTRONOMY</PrereqTech>
			<Combat>15</Combat>
			<RangedCombat>10</RangedCombat>
			<Cost>100</Cost>
			<Moves>8</Moves>
			<HurryCostModifier>30</HurryCostModifier>
			<Range>2</Range>
			<CombatClass>UNITCOMBAT_NAVAL</CombatClass>
			<Domain>DOMAIN_SEA</Domain>
			<DefaultUnitAI>UNITAI_EXPLORE_SEA</DefaultUnitAI>
			<Description>TXT_KEY_UNIT_INDIAMAN</Description>
			<Civilopedia>TXT_KEY_CIVILOPEDIA_UNITS_RENAISSANCE_INDIAMAN_TEXT</Civilopedia>
			<Strategy>TXT_KEY_UNIT_INDIAMAN_STRATEGY</Strategy>
			<Help>TXT_KEY_UNIT_HELP_INDIAMAN</Help>
			<MilitarySupport>true</MilitarySupport>
			<MilitaryProduction>true</MilitaryProduction>
			<Pillage>true</Pillage>
			<Mechanized>true</Mechanized>
			<ObsoleteTech>TECH_ELECTRICITY</ObsoleteTech>
			<AdvancedStartCost>50</AdvancedStartCost>
			<MinAreaSize>20</MinAreaSize>
			<XPValueAttack>3</XPValueAttack>
			<XPValueDefense>3</XPValueDefense>
			<UnitArtInfo>ART_DEF_UNIT_CARRIER</UnitArtInfo>
			<UnitFlagIconOffset>42</UnitFlagIconOffset>
			<IconAtlas>UNIT_ATLAS_1</IconAtlas>
			<PortraitIndex>43</PortraitIndex>
			<MoveRate>BOAT</MoveRate>
		</Row>
	</Units>
Can anybody see any reason why?
Lord Alderaan is offline   Reply With Quote
Old Nov 11, 2010, 07:05 PM   #2
Garett20
Prince
 
Garett20's Avatar
 
Join Date: Aug 2010
Location: Toronto,Canada
Posts: 429
The art define info is set to carrier
__________________
There is no shame in losing to me.
Mars, Now for Civ 5!!!
Garett20 is offline   Reply With Quote
Old Nov 11, 2010, 08:13 PM   #3
Justicex
Prince
 
Justicex's Avatar
 
Join Date: Dec 2007
Posts: 332
Quote:
<Class>UNITCLASS_CARAVEL</Class>
Change this in every place on your mod. Because it is named the exact same as another unit, it's loading those definitions.
Justicex is offline   Reply With Quote
Old Nov 12, 2010, 03:31 AM   #4
Lord Alderaan
Chieftain
 
Join Date: Oct 2009
Posts: 73
LOL

I solved it. Believe or not it was because I had two versions (v2 as on the Mod Browser and v3 my WIP) of the mod in the mod directory. I had only the v3 mod enabled in-game but I guess it still somehow conflicted with v2.

@Garett20: Yeah, I was trying to get the carrier art to load instead of the caravel art.
@Justicex: The unit in question is a unique unit replacing the caravel for the Dutch, hence the caravel class.
Lord Alderaan is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION V > Civ5 - Creation & Customization > [HELP]UnitArtInfo ignored

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Advertisement

All times are GMT -6. The time now is 07:12 PM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
This site is copyright © Civilization Fanatics' Center.
Support CFC: Amazon.com | Amazon UK | Amazon DE | Amazon CA | Amazon FR